-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathurls.py
More file actions
16 lines (14 loc) · 675 Bytes
/
urls.py
File metadata and controls
16 lines (14 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from django.conf.urls import patterns, include, url
from passManager import views
from passManager.views import sendPassEmailView, mailsent
from django.http import HttpResponseRedirect
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^send_pass/(?P<rowid>\d+)/$', sendPassEmailView),
url(r'^send_pass/(send)/$', sendPassEmailView),
url(r'^mailsent/$', mailsent),
url(r'^$', lambda x: HttpResponseRedirect('/admin/passManager/passdb/')),
url(r'^admin/', include(admin.site.urls)),
)