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
019ac69e
authored
Mar 01, 2018
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated settings
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
parent
298bf586
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
project_name/settings.py
+4
-0
No files found.
project_name/settings.py
View file @
019ac69e
...
...
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
import
os
import
dj_database_url
import
django_heroku
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
...
...
@@ -131,3 +132,6 @@ STATICFILES_DIRS = [
# Simplified static file serving.
# https://warehouse.python.org/project/whitenoise/
STATICFILES_STORAGE
=
'whitenoise.storage.CompressedManifestStaticFilesStorage'
# Activate Django-Heroku.
django_heroku
.
settings
(
locals
())
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