-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
49 lines (32 loc) · 1.77 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
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.views.generic.simple import direct_to_template
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'imnet.views.index', name='home'),
(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'imnet/login.html'}),
(r'^accounts/', include('registration.urls')),
url(r'^labels/$', 'imnet.views.labels'),
url(r'^label/(?P<label_id>\d+)/$', 'imnet.views.label'),
url(r'^label/(?P<label_id>\d+)/albums/$', 'imnet.views.label_albums'),
url(r'^label/(?P<label_id>\d+)/artists/$', 'imnet.views.label_artists'),
url(r'^artists/$', 'imnet.views.artists'),
url(r'^artists/(?P<artist_id>\d+)/$', 'imnet.views.artist'),
# url(r'^IMNet/', include('IMNet.foo.urls')),
url(r'^artists/(?P<artist_id>\d+)/tracks/$', 'imnet.views.artist_tracks'),
url(r'^artists/(?P<artist_id>\d+)/albums/$', 'imnet.views.artist_albums'),
url(r'^track/(?P<track_id>\d+)/$', 'imnet.views.track'),
url(r'^album/(?P<album_id>\d+)/$', 'imnet.views.album'),
url(r'^venues/$', direct_to_template, {'template': 'imnet/venues.html'}),
url(r'^fans/$', direct_to_template, {'template': 'imnet/fans.html'}),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'^messages/', include('messages.urls')),
url(r'^lookup/user/(?P<username>\w+)/$', 'imnet.views.user_lookup'),
)
urlpatterns += staticfiles_urlpatterns()