Not Found The requested resource was not found on this server - Django-Cpanel

Viewed 12

I'm trying to deploy the Django project.I don't know the problem is with the WHM&cpanel or my code I configured the python app from Cpanel

passenger_wsgi.py

import os
import sys

from selenium.wsgi import application

urls.py

from django.contrib import admin
from django.urls import path, include


urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('bulk.urls'))
]

views.py

from django.shortcuts import render

def ime_bot(request):
    return render(request, 'Ibot.html')

settings.py

INSTALLED_APPS = [
'bulk.apps.BulkConfig'
]
TEMPLATES = [
{'DIRS': ['bulk/templates'],}
]

bulk/urls.py

from django.urls import path
from . import views

urlpatterns = [
    path('', views.ime_bot, name='bot_here'),
    ]

Also I'm able to acces url.com/admin in the wierd html content

I'm done with makemigrations,migrate,createsuper user and settings.py

here is my error.log

App 1193039 output: /opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/wsgi-loader.py:26: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
App 1193039 output:   import sys, os, re, imp, threading, signal, traceback, socket, select, struct, logging, errno

Please comment below if I need to update any kind of configuration

0 Answers
Related