Skip to content

Commit

Permalink
Use absolute BASE_DIR and STATIC_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Atkins-Turkish committed Feb 5, 2016
1 parent c4e812f commit a81c067
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cloudpebble/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

DEBUG = False # _environ.get('DEBUG', '') != ''

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

ADMINS = (
('Administrator', '[email protected]'),
)
Expand Down Expand Up @@ -90,7 +92,7 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
STATIC_ROOT = 'staticfiles'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
Expand Down Expand Up @@ -353,7 +355,7 @@
}
},
'loggers': {
'django': {
'*': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False
Expand Down

0 comments on commit a81c067

Please sign in to comment.