This repository has been archived by the owner on Jul 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.py
57 lines (41 loc) · 1.53 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from django.conf.urls.defaults import *
from django.contrib import admin
from satisfaction.views import *
from django.views.generic.simple import direct_to_template
#from satisfaction.feeds import *
import os.path
site_media = os.path.join( os.path.dirname(__file__), 'site_media' )
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^satisfaction_site/', include('satisfaction_site.foo.urls')),
# ADMIN
(r'^admin/', admin.site.root),
#Browsing
(r'^$', index), # null string = main-page
(r'^video/(\d+)/$', video_page),
(r'^user/(\w+)/$', user_page),
#Saves
(r'^save/$', save_video),
#Recording
(r'^rec/$', record),
(r'^crossdomain.xml/$', direct_to_template, { 'template': 'satisfaction/crossdomain.xml' }),
#Registration
(r'^register/success/$', direct_to_template, { 'template': 'registration/register_success.html' }),
#Site media
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': site_media }),
# Comments
(r'^comments/', include('django.contrib.comments.urls')),
# Feeds
#(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
#Session management
(r'^login/$', 'django.contrib.auth.views.login'),
(r'^logout/$', logout_page),
(r'^register/$', register_page),
(r'^register/success/$', direct_to_template, { 'template': 'registration/register_success.html' }),
# Friends
(r'^friends/(\w+)/$', friends_page),
(r'^friend/add/$', friend_add),
(r'^friend/invite/$', friend_invite),
(r'^friend/accept/(\w+)/$', friend_accept),
)