Commits

Anonymous committed 83d897e

Tidied up URL patterns
Fixed url names

Comments (0)

Files changed (1)

gnocchi_forum/urls.py

 from django.conf.urls.defaults import patterns, url
 
 urlpatterns = patterns('gnocchi_forum.views',
-    url(r'^$', 'forum_index', name='gnocchi_forum:forum-index'),
-    url(r'^forum/(?P<forum>[-\w]+)/$', 'forum_detail',
-        name='gnocchi_forum:forum-details'),
-    url(r'^forum/(?P<forum>[-\w]+)/(?P<thread>[-\w]+/$', 'thread_detail', name='gnocchi_forum:forum-details'),
+    url(r'^$',
+        'forum_index',
+        name='forum-index'
+    ),
+    url(r'^forum/(?P<forum>[-\w]+)/$',
+        'forum_detail',
+        name='forum-detail'
+    ),
+    url(r'^forum/(?P<forum>[-\w]+)/(?P<thread>[-\w]+)/$',
+        'thread_detail',
+        name='thread-detail'
+    ),
 )