Commit 09a05119 authored by Kris Steinhoff's avatar Kris Steinhoff Committed by Jon Yu
Browse files

Add project_name to be templated

parent b53dd3eb
...@@ -30,4 +30,4 @@ EXPOSE 8000 ...@@ -30,4 +30,4 @@ EXPOSE 8000
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"] ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
CMD ["gunicorn", "--bind=0.0.0.0:8000", "--workers=${GUNICORN_WORKERS}", "--threads=${GUNICORN_THREADS}", "--access-logfile=-", "--log-file=-", "um_django_template_project.wsgi"] CMD ["gunicorn", "--bind=0.0.0.0:8000", "--workers=${GUNICORN_WORKERS}", "--threads=${GUNICORN_THREADS}", "--access-logfile=-", "--log-file=-", "{{ project_name }}.wsgi"]
\ No newline at end of file
...@@ -5,7 +5,7 @@ import sys ...@@ -5,7 +5,7 @@ import sys
def main(): def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'um_django_template_project.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.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:
......
""" """
ASGI config for um_django_template_project project. ASGI config for {{ project_name }} 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 ...@@ -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', 'um_django_template_project.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings')
application = get_asgi_application() application = get_asgi_application()
""" """
Django settings for um_django_template_project project. Django settings for {{ project_name }} project.
Generated by 'django-admin startproject' using Django 3.0.4. Generated by 'django-admin startproject' using Django 3.0.4.
...@@ -80,7 +80,7 @@ MIDDLEWARE = [ ...@@ -80,7 +80,7 @@ MIDDLEWARE = [
'mozilla_django_oidc.middleware.SessionRefresh' 'mozilla_django_oidc.middleware.SessionRefresh'
] ]
ROOT_URLCONF = 'um_django_template_project.urls' ROOT_URLCONF = '{{ project_name }}.urls'
TEMPLATES = [ TEMPLATES = [
{ {
...@@ -98,7 +98,7 @@ TEMPLATES = [ ...@@ -98,7 +98,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'um_django_template_project.wsgi.application' WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
# Authentication # Authentication
......
""" """
WSGI config for um_django_template_project project. WSGI config for {{ project_name }} 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 ...@@ -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', 'um_django_template_project.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings')
application = get_wsgi_application() application = get_wsgi_application()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment