Commits

Steve Losh committed 185ed63

Finished pulling out the URLconfs into app-specific files.

  • Participants
  • Parent commits 443fbbf

Comments (0)

Files changed (5)

File djschedule/urls.py

+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('lindyjam.djschedule.views',
+    url(r'^$',        'index',  name='djschedule-index'),
+    url(r'^signup/$', 'signup', name='djschedule-signup'),
+)

File links/urls.py

+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('lindyjam.links.views',
+    url(r'^$',        'index',  name='links-list'),
+    url(r'^submit/$', 'submit', name='links-submit'),
+)

File playlists/urls.py

+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('lindyjam.playlists.views',
+    url(r'^$',                       'index',           name='playlists-list'),
+    url(r'^(\d+)/(\d+)/(\d+)/(.+)$', 'single_playlist', name='playlists-single'),
+)

File quotes/urls.py

+from django.conf.urls.defaults import *
+
+urlpatterns = patterns('lindyjam.quotes.views',
+    url(r'^$',        'index',  name='quotes-index'),
+    url(r'^submit/$', 'submit', name='quotes-submit'),
+)
 urlpatterns = patterns('',
     url(r'^admin/(.*)', admin.site.root),
     url(r'^m/(.*)', mobileadmin.sites.site.root),
-    url(r'^$', 'lindyjam.splash.views.index'), 
-    url(r'^blog/', include('lindyjam.blog.urls')),
-    url(r'^links/$', 'lindyjam.links.views.index'),
-    url(r'^links/submit/$', 'lindyjam.links.views.submit'),
-    url(r'^schedule/$', 'lindyjam.djschedule.views.index'),
-    url(r'^schedule/signup/$', 'lindyjam.djschedule.views.signup'),
-    url(r'^quotes/$', 'lindyjam.quotes.views.index'),
-    url(r'^quotes/submit/$', 'lindyjam.quotes.views.submit'),
-    url(r'^playlists/$', 'lindyjam.playlists.views.index'),
-    url(r'^playlists/(\d+)/(\d+)/(\d+)/(.+)$',
-         'lindyjam.playlists.views.single_playlist'),
+    url(r'^$', 'lindyjam.splash.views.index', name='splash-page'), 
+    url(r'^blog/',      include('lindyjam.blog.urls')),
+    url(r'^schedule/',  include('lindyjam.djschedule.urls')),
+    url(r'^links/',     include('lindyjam.links.urls')),
+    url(r'^quotes/',    include('lindyjam.quotes.urls')),
+    url(r'^playlists/', include('lindyjam.playlists.urls')),
     url(r'^rss/(?P<url>.+)/$', 'django.contrib.syndication.views.feed',
         { 'feed_dict': feeds } ),
 )