Skip to content

Commit

Permalink
{{ project_name }}
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Oct 17, 2014
1 parent 7ca7f39 commit 5925de3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")

from django.core.management import execute_from_command_line

Expand Down
7 changes: 5 additions & 2 deletions project_name/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'project_name.urls'
ROOT_URLCONF = '{{ project_name }}.urls'

WSGI_APPLICATION = 'project_name.wsgi.application'
WSGI_APPLICATION = '{{ project_name}} .wsgi.application'


# Database
Expand All @@ -78,6 +78,9 @@
# Parse database configuration from $DATABASE_URL
DATABASES['default'] = dj_database_url.config()

# Enable Connection Pooling (if desired)
DATABASES['default']['ENGINE'] = 'django_postgrespool'

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

Expand Down
2 changes: 1 addition & 1 deletion project_name/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

urlpatterns = patterns('',
# Examples:
# url(r'^$', 'project_name.views.home', name='home'),
# url(r'^$', '{{ project_name }}.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),

url(r'^admin/', include(admin.site.urls)),
Expand Down
4 changes: 2 additions & 2 deletions project_name/wsgi.py
Original file line number Diff line number Diff line change
@@ -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``.
Expand All @@ -9,7 +9,7 @@


import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
Expand Down

0 comments on commit 5925de3

Please sign in to comment.