Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (21 sloc) 0.935 kB
d9c51f4 One night of hacking
Anirudh Sanjeev authored
1 from django.conf.urls.defaults import *
0b25d37 Fixed line detection, started work on commenting system
Anirudh Sanjeev authored
2 from django.conf import settings
d9c51f4 One night of hacking
Anirudh Sanjeev authored
3 # Uncomment the next two lines to enable the admin:
4 from django.contrib import admin
5 admin.autodiscover()
6
7 urlpatterns = patterns('',
8 (r'^$', 'patchbin.core.views.index'),
9 (r'^submit$', 'patchbin.core.views.submit'),
10 (r'^admin/', include(admin.site.urls)),
4874a61 Added serverside capability to recieve comments.
Anirudh Sanjeev authored
11 (r'^(?P<urlCode>[A-Za-z0-9]{6})$', 'patchbin.diffviewer.views.showpatch'),
cfacd0b Added urls
Anirudh Sanjeev authored
12 (r'^(?P<urlCode>[A-Za-z0-9]{6})/newcomment$',
13 'patchbin.diffviewer.views.newcomment'),
2b7fb21 Added support for Raw patches
Anirudh Sanjeev authored
14 (r'^(?P<urlCode>[A-Za-z0-9]{6})/raw$',
15 'patchbin.diffviewer.views.rawpatch'),
cfacd0b Added urls
Anirudh Sanjeev authored
16 (r'about/', 'patchbin.core.views.about'),
17 (r'contribute/', 'patchbin.core.views.contribute'),
18 (r'sponsor/', 'patchbin.core.views.sponsor')
d9c51f4 One night of hacking
Anirudh Sanjeev authored
19 )
0b25d37 Fixed line detection, started work on commenting system
Anirudh Sanjeev authored
20
21 if settings.DEBUG:
22 urlpatterns += patterns('',
23 (r'static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/anirudhs/Projects/patchbin/static'}))
Something went wrong with that request. Please try again.