diff --git a/project_name/__init__.py-tpl b/__init__.py-tpl similarity index 100% rename from project_name/__init__.py-tpl rename to __init__.py-tpl diff --git a/project_name/asgi.py-tpl b/asgi.py-tpl similarity index 81% rename from project_name/asgi.py-tpl rename to asgi.py-tpl index a827238..3d89e87 100644 --- a/project_name/asgi.py-tpl +++ b/asgi.py-tpl @@ -11,6 +11,6 @@ import os from django.core.asgi import get_asgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') application = get_asgi_application() diff --git a/manage.py-tpl b/manage.py-tpl index a628884..1b243ab 100755 --- a/manage.py-tpl +++ b/manage.py-tpl @@ -6,7 +6,7 @@ import sys def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/project_name/settings.py-tpl b/settings.py-tpl similarity index 95% rename from project_name/settings.py-tpl rename to settings.py-tpl index 255f352..20f8d0b 100644 --- a/project_name/settings.py-tpl +++ b/settings.py-tpl @@ -19,7 +19,7 @@ from pathlib import Path from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: BASE_DIR / 'subdir'. -BASE_DIR = Path(__file__).resolve().parent.parent +BASE_DIR = Path(__file__).resolve().parent # Quick-start development settings - unsuitable for production @@ -96,13 +96,13 @@ MIDDLEWARE = [ 'cms.middleware.language.LanguageCookieMiddleware', ] -ROOT_URLCONF = '{{ project_name }}.urls' +ROOT_URLCONF = 'urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ - os.path.join(BASE_DIR, "{{ project_name }}", "templates"), + os.path.join(BASE_DIR, "templates"), ], 'APP_DIRS': True, 'OPTIONS': { @@ -126,7 +126,7 @@ THUMBNAIL_PROCESSORS = ( 'easy_thumbnails.processors.filters', ) -WSGI_APPLICATION = '{{ project_name }}.wsgi.application' +WSGI_APPLICATION = 'wsgi.application' # Database @@ -135,7 +135,7 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', + 'NAME': BASE_DIR / '..' / 'db.sqlite3', } } @@ -227,7 +227,7 @@ DJANGOCMS_VERSIONING_ALLOW_DELETING_VERSIONS = True # https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#staticfiles-dirs STATICFILES_DIRS = [ - BASE_DIR / "{{ project_name }}" / "static", + BASE_DIR / "static", ] INTERNAL_IPS = [ diff --git a/project_name/static/static-files-go-here b/static/static-files-go-here similarity index 100% rename from project_name/static/static-files-go-here rename to static/static-files-go-here diff --git a/project_name/templates/base.html b/templates/base.html similarity index 100% rename from project_name/templates/base.html rename to templates/base.html diff --git a/project_name/urls.py-tpl b/urls.py-tpl similarity index 100% rename from project_name/urls.py-tpl rename to urls.py-tpl diff --git a/project_name/wsgi.py-tpl b/wsgi.py-tpl similarity index 81% rename from project_name/wsgi.py-tpl rename to wsgi.py-tpl index 1ee28d0..0acc383 100644 --- a/project_name/wsgi.py-tpl +++ b/wsgi.py-tpl @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') application = get_wsgi_application()