# HG changeset patch # User Brian Neal # Date 1377654878 18000 # Node ID c15b50f1ebfc9e3d584258215cee540eebfc26b0 # Parent 447d75d1e21d3f67ef64408b0bccf5bbd33e61c4 For Django 1.5: Don't include old photologue URLs. They still use the old function style generic views, which are missing from Django 1.5. Since I don't use these URLs, and at some point they broke in the admin, just get rid of them for now. diff -r 447d75d1e21d -r c15b50f1ebfc madeira/urls.py --- a/madeira/urls.py Tue Aug 27 20:03:32 2013 -0500 +++ b/madeira/urls.py Tue Aug 27 20:54:38 2013 -0500 @@ -7,7 +7,7 @@ admin.autodiscover() urlpatterns = patterns('', - url(r'^$', + url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), (r'^', include('band.urls')), @@ -27,8 +27,7 @@ 'django.contrib.auth.views.password_reset_confirm'), (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'), (r'^admin/', include(admin.site.urls)), - (r'^photologue/', include('photologue.urls')), -) +) # For serving media files in development only: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)