~doctormo/erato/trunk

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
#
# Copyright 2010, Martin Owens and Adnane Belmadiaf.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

import os
from django.conf.urls.defaults import *
from django.conf import settings
#from common.views import robots

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'common.views.index', name='home'),
    url(r'^language/', 'common.views.set_language', name='set_language'),
    url(r'^about/$', 'common.views.about', name='about'),
    #url(r'^irc/$', 'common.views.irc_chat', name='irc_chat'),
    #url(r'^using-locodir/$', 'common.views.using_locodir', name='using_locodir'),
    url(r'^openid/', include('django_openid_auth.urls')),
    url(r'^admin/(.*)', admin.site.root),
    #url(r'^data/xml', 'teams.views.xml_team_data', name='xml_team_data'),
    url(r'^asset/', include('assets.urls')),
    url(r'^creation/', include('creations.urls')),
    #url(r'^events/venues/', include('venues.urls')),
    #url(r'^events/', include('events.urls')),
    #url(r'^meetings/', include('meetings.urls')),
    #url(r'^loco-council/$', 'common.views.loco_council', name='loco_council'),
    #url(r'^loco-council/approved$', 'teams.views.reapprovals', name='reapprovals'),
    url(r'^logout$', 'common.views.site_logout'),
    url(r'^jsi18n', 'django.views.i18n.javascript_catalog', name='jsi18n'),
    #url(r'^services/', include('services.urls')),
    url(r'^search/', 'common.views.site_search', name='site_search'),
)

if settings.STATIC_SERVE:
    urlpatterns += patterns('',
        (r'^media/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT}),
        #(r'^robots\.txt$', robots),
    )