Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (52 sloc) 2.261 kB
04bbedb @alexkay Copyright header
authored
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright © 2009-2011 Alexander Kojevnikov <alexander@kojevnikov.com>
4 #
5 # muspy is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # muspy is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with muspy. If not, see <http://www.gnu.org/licenses/>.
17
338955e @alexkay Add the index view
authored
18 from django.conf.urls.defaults import *
b14d6ea @alexkay Sign up / sign in /sign out
authored
19 from django.contrib.auth.views import login
f67d888 @alexkay Redirect the old blog feed
authored
20 from django.views.generic.base import RedirectView, TemplateView
3839a98 @alexkay Initial commit
authored
21
d98323f @alexkay s/src/app/g
authored
22 from app.forms import SignInForm
b14d6ea @alexkay Sign up / sign in /sign out
authored
23
b273e48 @alexkay Set up API URLs
authored
24
d98323f @alexkay s/src/app/g
authored
25 urlpatterns = patterns('app.views',
338955e @alexkay Add the index view
authored
26 (r'^$', 'index'),
27 (r'^activate$', 'activate'),
c96ccf9 @alexkay Ditch the blog and the articles
authored
28 (r'^about$', TemplateView.as_view(template_name='about.html')),
4c642cc @alexkay Show artist's release groups
authored
29 (r'^artist/([0-9a-f\-]+)$', 'artist'),
57ddf35 @alexkay Show added artists
authored
30 (r'^artists$', 'artists'),
7c2341c @alexkay Add UserArtists
authored
31 (r'^artists-add$', 'artists_add'),
3ec7885 @alexkay Remove UserArtists
authored
32 (r'^artists-remove$', 'artists_remove'),
ea38077 @alexkay Return 403 for URLs containing 'blog'
authored
33 (r'^blog$', RedirectView.as_view(url='http://versia.com/category/muspy/')),
70d6d81 @alexkay Typos
authored
34 (r'^blog/feed$', RedirectView.as_view(url='http://versia.com/category/muspy/feed/atom/')),
c05a3b0 @alexkay Calendar
authored
35 (r'^calendar$', 'calendar'),
c96ccf9 @alexkay Ditch the blog and the articles
authored
36 (r'^contact$', TemplateView.as_view(template_name='contact.html')),
f41cab4 @alexkay Show empty album cover
authored
37 (r'^cover$', 'cover'),
cbc53df @alexkay Delete account
authored
38 (r'^delete$', 'delete'),
c96ccf9 @alexkay Ditch the blog and the articles
authored
39 (r'^faq$', TemplateView.as_view(template_name='faq.html')),
994a74d @alexkay Add the atom feed for new releases
authored
40 (r'^feed$', 'feed'),
f67d888 @alexkay Redirect the old blog feed
authored
41 (r'^feed/(?P<id>\d+)$', RedirectView.as_view(url='/feed?id=%(id)s')),
2db316b @alexkay Import artists from Last.fm
authored
42 (r'^import$', 'import_artists'),
3fcdc41 @alexkay Show release groups
authored
43 (r'^releases$', 'releases'),
338955e @alexkay Add the index view
authored
44 (r'^reset$', 'reset'),
45 (r'^settings$', 'settings'),
8fa0971 @alexkay Blog posts and pages
authored
46 (r'^signin$', login, {'authentication_form': SignInForm, 'template_name': 'signin.html'}),
338955e @alexkay Add the index view
authored
47 (r'^signout$', 'signout'),
48 (r'^signup$', 'signup'),
78f694e @alexkay Sitemap
authored
49 (r'^sitemap.xml$', 'sitemap'),
97bdbd5 @alexkay Star release groups
authored
50 (r'^star$', 'star'),
62a01e3 @alexkay One-click unsubscribe
authored
51 (r'^unsubscribe$', 'unsubscribe'),
c843ca4 @alexkay Return 403 for URLs containing '.php'
authored
52 (r'blog|\.php', 'forbidden'), # Hello, vulnerability scan bots!
3839a98 @alexkay Initial commit
authored
53 )
b273e48 @alexkay Set up API URLs
authored
54
55 urlpatterns += patterns('',
56 (r'^api/1/', include('api.urls')),
57 )
Something went wrong with that request. Please try again.