Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
- MEDIA_URL = '/media/'
- STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
- STATIC_URL = '/static/'
- ADMIN_MEDIA_PREFIX = '/static/admin/'
- (r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
- (r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_ROOT}),
- <link href="{{ STATIC_URL }}css/bootstrap.css" rel="stylesheet">
- <link href="{{ MEDIA_URL }}css/bootstrap-colorpicker.css" rel="stylesheet">
- import os
- ABSOLUTE_PATH = os.path.dirname(__file__)
- MEDIA_ROOT = os.path.join(ABSOLUTE_PATH, '../media')
- MEDIA_URL = '/media/'
- STATIC_ROOT = os.path.join(ABSOLUTE_PATH, '../static')
- STATIC_URL = "/static/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement