Skip to content

Commit

Permalink
[#23] fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dorotawm committed Feb 18, 2015
1 parent f68fd08 commit af6040f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions sandbox/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('accounts.urls', namespace='accounts')),
url(r'^places/', include('places.urls', namespace='places'))
)

urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
url(r'^places/', include('places.urls', namespace='places')),
url(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}))
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.STATIC_ROOT}),
)
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
</li>
</ul>
</body>
</html>
</html>

0 comments on commit af6040f

Please sign in to comment.