Skip to content

Instantly share code, notes, and snippets.

@agungid
Created March 8, 2018 06:29
Show Gist options
  • Save agungid/fe02430d8b1af4d3ab618064944fb1ed to your computer and use it in GitHub Desktop.
Save agungid/fe02430d8b1af4d3ab618064944fb1ed to your computer and use it in GitHub Desktop.
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
STATIC_URL = '/static/'
STATIC_ROOT = 'static'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "assets"),
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment