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
84aa36ac
authored
Sep 30, 2014
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitenoise
parent
4a75b0d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
project_name/settings.py
+4
-0
project_name/wsgi.py
+5
-0
No files found.
project_name/settings.py
View file @
84aa36ac
...
@@ -94,3 +94,7 @@ STATIC_URL = '/static/'
...
@@ -94,3 +94,7 @@ STATIC_URL = '/static/'
STATICFILES_DIRS
=
(
STATICFILES_DIRS
=
(
os
.
path
.
join
(
BASE_DIR
,
'static'
),
os
.
path
.
join
(
BASE_DIR
,
'static'
),
)
)
# Simplified static file serving.
# https://pypi.python.org/pypi/whitenoise
STATICFILES_STORAGE
=
'whitenoise.django.GzipManifestStaticFilesStorage'
project_name/wsgi.py
View file @
84aa36ac
...
@@ -7,8 +7,12 @@ For more information on this file, see
...
@@ -7,8 +7,12 @@ For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
"""
import
os
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
django.core.wsgi
import
get_wsgi_application
from
whitenoise.django
import
DjangoWhiteNoise
application
=
get_wsgi_application
()
application
=
get_wsgi_application
()
application
=
DjangoWhiteNoise
(
application
)
\ No newline at end of file
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