Finally changed module name

finally changed the module name and fixed the error.
with_posts
surya 2024-07-07 08:20:32 +05:30
parent 1e7ff8f38d
commit 28a1d92549
10 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
""" """
ASGI config for TechBlog project. ASGI config for BH project.
It exposes the ASGI callable as a module-level variable named ``application``. It exposes the ASGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TechBlog.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BH.settings')
application = get_asgi_application() application = get_asgi_application()

View File

@ -53,7 +53,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'TechBlog.urls' ROOT_URLCONF = 'BH.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -71,7 +71,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'TechBlog.wsgi.application' WSGI_APPLICATION = 'BH.wsgi.application'
# Database # Database

View File

@ -1,5 +1,5 @@
""" """
WSGI config for TechBlog project. WSGI config for BH project.
It exposes the WSGI callable as a module-level variable named ``application``. It exposes the WSGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TechBlog.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BH.settings')
application = get_wsgi_application() application = get_wsgi_application()

View File

@ -5,7 +5,7 @@ import sys
def main(): def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TechBlog.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BH.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc: