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
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"]
\ No newline at end of file
CMD ["gunicorn", "--bind=0.0.0.0:8000", "--workers=${GUNICORN_WORKERS}", "--threads=${GUNICORN_THREADS}", "--access-logfile=-", "--log-file=-", "{{ project_name }}.wsgi"]
......@@ -5,7 +5,7 @@ import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'um_django_template_project.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings')
try:
from django.core.management import execute_from_command_line
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``.
......@@ -11,6 +11,6 @@ import os
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()
"""
Django settings for um_django_template_project project.
Django settings for {{ project_name }} project.
Generated by 'django-admin startproject' using Django 3.0.4.
......@@ -80,7 +80,7 @@ MIDDLEWARE = [
'mozilla_django_oidc.middleware.SessionRefresh'
]
ROOT_URLCONF = 'um_django_template_project.urls'
ROOT_URLCONF = '{{ project_name }}.urls'
TEMPLATES = [
{
......@@ -98,7 +98,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'um_django_template_project.wsgi.application'
WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
# 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``.
......@@ -11,6 +11,6 @@ import os
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()
Supports Markdown
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