remove print statement in logo.py
[mygpo.git] / mygpo / urls.py
blob71092b07e557fa2fc7b89bbb47c50daaa355646d
2 # This file is part of my.gpodder.org.
4 # my.gpodder.org is free software: you can redistribute it and/or modify it
5 # under the terms of the GNU Affero General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or (at your
7 # option) any later version.
9 # my.gpodder.org is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
12 # License for more details.
14 # You should have received a copy of the GNU Affero General Public License
15 # along with my.gpodder.org. If not, see <http://www.gnu.org/licenses/>.
18 import os.path
19 from django.conf.urls import *
21 # This URLs should be always be served, even during maintenance mode
22 urlpatterns = patterns('',
23 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
24 {'document_root': os.path.abspath('%s/../htdocs/media/' % os.path.dirname(__file__))}),
28 # Check for maintenace mode
29 from django.conf import settings
30 if settings.MAINTENANCE:
31 urlpatterns += patterns('mygpo.web.utils',
32 (r'', 'maintenance'),
36 # URLs are still registered during maintenace mode because we need to
37 # build links from them (eg login-link).
38 urlpatterns += patterns('',
39 (r'^', include('mygpo.web.urls')),
40 (r'^', include('mygpo.directory.urls')),
41 (r'^', include('mygpo.api.urls')),
42 (r'^', include('mygpo.userfeeds.urls')),
43 (r'^', include('mygpo.share.urls')),
44 (r'^accounts/', include('django_couchdb_utils.registration.backends.default.urls')),
45 (r'^publisher/', include('mygpo.publisher.urls')),
46 (r'^admin/', include('mygpo.admin.urls')),
47 (r'^pubsub/', include('mygpo.pubsub.urls')),