Skip to content

Commit

Permalink
[Chore #123709771] Modify settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nwuguru Sunday committed Jul 15, 2016
1 parent 200354b commit c2ace7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/app/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
DATABASES = {
'default': dj_database_url.config()
}
DEBUG = False
DEBUG = True
5 changes: 3 additions & 2 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@
url(r'^api/v1/', include('photos.api.urls', namespace="api")),
]

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit c2ace7a

Please sign in to comment.