-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
34 lines (31 loc) · 1.18 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from django.conf.urls.defaults import *
from bookmark_base.views import *
from django.views.generic.simple import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^bookmarks/', include('bookmarks.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
(r'^$',home),
(r'^registe/',adduser),
(r'^login/','django.contrib.auth.views.login'),
(r'^logout/',logoutpage),
(r'^registe_success/',direct_to_template,{'template':'reg_success.html'}),
(r'^save/$',addmarks),
(r'^tag/([^\s]+)/',tagpage),
(r'^tag/$',tagcloundpage),
(r'^search/$',search),
(r'^user/(\w+)/$',userpage),
(r'^friends/(\w+)/$',friendspage),
(r'^friend/add/$',addfriend),
(r'^vote/$',addvote),
(r'^store/$',storeurl),
(r'^delete/$',deleteurl),
(r'^comments/$',include('django.contrib.comments.urls')),
(r'^bookmark/(\d+)/$',bookmarkpage),
)