Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (36 sloc) 1.833 kb
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^accounts/profile', 'bounty.views.profile'),
(r'^accounts/', include('registration.urls')),
(r'^comments/', include('django.contrib.comments.urls')),
(r'^$', 'bounty.views.index'),
(r'^new_project', 'bounty.views.new_project'),
(r'^projects/(?P<project_id>\d+)/$', 'bounty.views.view_project'),
(r'^projects/(?P<project_id>\d+)/edit/$', 'bounty.views.edit_project'),
(r'^projects/(?P<project_id>\d+)/change_status/$',
'bounty.views.change_project_status'),
(r'^projects/(?P<project_id>\d+)/cancel_notification/$',
'bounty.views.cancel_notification'),
(r'^projects/(?P<project_id>\d+)/enable_notification/$',
'bounty.views.enable_notification'),
(r'^projects/(?P<project_id>\d+)/donate/$',
'bounty.views.donate'),
(r'^projects/$', 'bounty.views.list_projects'),
(r'^alertpayinstnoti/$', 'bounty.views.donation_notify'),
(r'^projects/(?P<project_status>pending|accepted)/$',
'bounty.views.list_projects'),
(r'^projects/(?P<project_id>\d+)/contribute/$',
'bounty.views.new_contribution'),
(r'^projects/(?P<project_id>\d+)/contributions/(?P<contribution_id>\d+)/$',
'bounty.views.contribution'),
(r'^projects/(?P<project_id>\d+)/contributions/(?P<contribution_id>\d+)/edit/$',
'bounty.views.edit_contribution'),
)
if settings.DEBUG == True:
urlpatterns += patterns('',
(r'^static/(.*)$', 'django.views.static.serve',
{'document_root': settings.PROJECT_HOME + '/static'}))
Jump to Line
Something went wrong with that request. Please try again.