Skip to content
This repository
Newer
Older
100644 58 lines (52 sloc) 2.261 kb
04bbedb6 »
2011-09-11 Copyright header
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
338955ed »
2011-09-08 Add the index view
18 from django.conf.urls.defaults import *
b14d6ea5 »
2011-09-10 Sign up / sign in /sign out
19 from django.contrib.auth.views import login
f67d8881 »
2011-10-14 Redirect the old blog feed
20 from django.views.generic.base import RedirectView, TemplateView
3839a983 »
2011-09-08 Initial commit
21
d98323ff »
2011-09-10 s/src/app/g
22 from app.forms import SignInForm
b14d6ea5 »
2011-09-10 Sign up / sign in /sign out
23
b273e48f »
2011-11-21 Set up API URLs
24
d98323ff »
2011-09-10 s/src/app/g
25 urlpatterns = patterns('app.views',
338955ed »
2011-09-08 Add the index view
26 (r'^$', 'index'),
27 (r'^activate$', 'activate'),
c96ccf90 »
2011-10-13 Ditch the blog and the articles
28 (r'^about$', TemplateView.as_view(template_name='about.html')),
4c642ccc »
2011-10-11 Show artist's release groups
29 (r'^artist/([0-9a-f\-]+)$', 'artist'),
57ddf359 »
2011-10-09 Show added artists
30 (r'^artists$', 'artists'),
7c2341cc »
2011-10-11 Add UserArtists
31 (r'^artists-add$', 'artists_add'),
3ec78858 »
2011-10-12 Remove UserArtists
32 (r'^artists-remove$', 'artists_remove'),
ea38077f »
2011-11-01 Return 403 for URLs containing 'blog'
33 (r'^blog$', RedirectView.as_view(url='http://versia.com/category/muspy/')),
70d6d81a »
2011-11-01 Typos
34 (r'^blog/feed$', RedirectView.as_view(url='http://versia.com/category/muspy/feed/atom/')),
c05a3b0e »
2011-10-12 Calendar
35 (r'^calendar$', 'calendar'),
c96ccf90 »
2011-10-13 Ditch the blog and the articles
36 (r'^contact$', TemplateView.as_view(template_name='contact.html')),
f41cab4c »
2011-10-22 Show empty album cover
37 (r'^cover$', 'cover'),
cbc53df8 »
2011-11-15 Delete account
38 (r'^delete$', 'delete'),
c96ccf90 »
2011-10-13 Ditch the blog and the articles
39 (r'^faq$', TemplateView.as_view(template_name='faq.html')),
994a74d2 »
2011-10-13 Add the atom feed for new releases
40 (r'^feed$', 'feed'),
f67d8881 »
2011-10-14 Redirect the old blog feed
41 (r'^feed/(?P<id>\d+)$', RedirectView.as_view(url='/feed?id=%(id)s')),
2db316ba »
2011-10-22 Import artists from Last.fm
42 (r'^import$', 'import_artists'),
3fcdc41b »
2011-10-14 Show release groups
43 (r'^releases$', 'releases'),
338955ed »
2011-09-08 Add the index view
44 (r'^reset$', 'reset'),
45 (r'^settings$', 'settings'),
8fa09713 »
2011-09-11 Blog posts and pages
46 (r'^signin$', login, {'authentication_form': SignInForm, 'template_name': 'signin.html'}),
338955ed »
2011-09-08 Add the index view
47 (r'^signout$', 'signout'),
48 (r'^signup$', 'signup'),
78f694e3 »
2011-10-14 Sitemap
49 (r'^sitemap.xml$', 'sitemap'),
97bdbd59 »
2011-10-15 Star release groups
50 (r'^star$', 'star'),
62a01e31 »
2012-03-05 One-click unsubscribe
51 (r'^unsubscribe$', 'unsubscribe'),
c843ca44 »
2011-11-02 Return 403 for URLs containing '.php'
52 (r'blog|\.php', 'forbidden'), # Hello, vulnerability scan bots!
3839a983 »
2011-09-08 Initial commit
53 )
b273e48f »
2011-11-21 Set up API URLs
54
55 urlpatterns += patterns('',
56 (r'^api/1/', include('api.urls')),
57 )
Something went wrong with that request. Please try again.