Commit 57718056 authored by Rafal's avatar Rafal Committed by lizonr1

Add static files

parent 66355d95
...@@ -14,7 +14,6 @@ import os ...@@ -14,7 +14,6 @@ import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) BASE_DIR = os.path.dirname(os.path.dirname(__file__))
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
...@@ -135,6 +134,12 @@ USE_TZ = True ...@@ -135,6 +134,12 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/ # https://docs.djangoproject.com/en/1.9/howto/static-files/
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
STATIC_URL = '/static/' STATIC_URL = '/static/'
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
APPEND_SLASH = False
\ No newline at end of file
...@@ -35,5 +35,4 @@ urlpatterns = [ ...@@ -35,5 +35,4 @@ urlpatterns = [
url(r'^api-token-auth/', token_view.obtain_auth_token), url(r'^api-token-auth/', token_view.obtain_auth_token),
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
url(r'^$', coming_soon_page, name='post_list'), url(r'^$', coming_soon_page, name='post_list'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment