diff --git a/manage.py b/manage.py index 1a1453b..a628884 100644 --- a/manage.py +++ b/manage.py @@ -6,7 +6,7 @@ def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_name.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/project_name/asgi.py b/project_name/asgi.py index ea6a296..b892861 100644 --- a/project_name/asgi.py +++ b/project_name/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for project_name project. +ASGI config for {{ project_name }} project. It exposes the ASGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ from django.core.asgi import get_asgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_name.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') application = get_asgi_application() diff --git a/project_name/core/apps.py b/project_name/core/apps.py index 49a6a4c..73dc98b 100644 --- a/project_name/core/apps.py +++ b/project_name/core/apps.py @@ -3,4 +3,4 @@ class CoreConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' - name = 'project_name.core' + name = '{{ project_name }}.core' diff --git a/project_name/settings.py b/project_name/settings.py index 83ee63a..cb17c3b 100644 --- a/project_name/settings.py +++ b/project_name/settings.py @@ -1,5 +1,5 @@ """ -Django settings for project_name project. +Django settings for {{ project_name }} project. Generated by 'django-admin startproject' using Django 3.2.7. @@ -44,7 +44,7 @@ 'django.contrib.staticfiles', 'django_extensions', 'debug_toolbar', - 'project_name.core', + '{{ project_name }}.core', ] MIDDLEWARE = [ @@ -59,7 +59,7 @@ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] -ROOT_URLCONF = 'project_name.urls' +ROOT_URLCONF = '{{ project_name }}.urls' TEMPLATES = [ { @@ -77,7 +77,7 @@ }, ] -WSGI_APPLICATION = 'project_name.wsgi.application' +WSGI_APPLICATION = '{{ project_name }}.wsgi.application' # Database diff --git a/project_name/urls.py b/project_name/urls.py index 49573d8..0a4de4b 100644 --- a/project_name/urls.py +++ b/project_name/urls.py @@ -1,4 +1,4 @@ -"""project_name URL Configuration +"""{{ project_name }} URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ diff --git a/project_name/wsgi.py b/project_name/wsgi.py index 91db536..fd088a0 100644 --- a/project_name/wsgi.py +++ b/project_name/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for project_name project. +WSGI config for {{ project_name }} project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_name.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') application = get_wsgi_application() diff --git a/pytest.ini b/pytest.ini index efd7cde..c79cc4c 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,3 @@ [pytest] -DJANGO_SETTINGS_MODULE = project_name.settings +DJANGO_SETTINGS_MODULE = {{ project_name }}.settings python_files = tests.py test_*.py *_tests.py \ No newline at end of file