Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pub
/
flynn-django-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5925de36
authored
Oct 17, 2014
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{{ project_name }}
parent
7ca7f399
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
manage.py
+1
-1
project_name/settings.py
+5
-2
project_name/urls.py
+1
-1
project_name/wsgi.py
+2
-2
No files found.
manage.py
View file @
5925de36
...
...
@@ -3,7 +3,7 @@ import os
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
...
...
project_name/settings.py
View file @
5925de36
...
...
@@ -50,9 +50,9 @@ MIDDLEWARE_CLASSES = (
'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
...
...
@@ -78,6 +78,9 @@ USE_TZ = True
# 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'
)
...
...
project_name/urls.py
View file @
5925de36
...
...
@@ -3,7 +3,7 @@ from django.contrib import admin
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
)),
...
...
project_name/wsgi.py
View file @
5925de36
"""
WSGI config for
project_name
project.
WSGI config for
{{ project_name }}
project.
It exposes the WSGI callable as a module-level variable named ``application``.
...
...
@@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment