~doctormo/erato/trunk

2.1.2 by Ronnie
Added Copyright and GPLv3 comment
1
#
2.1.3 by Ronnie
Fixed Copyright and some indentations
2
# Copyright 2010, Martin Owens and Adnane Belmadiaf.
2.1.2 by Ronnie
Added Copyright and GPLv3 comment
3
#
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU Affero General Public License as
6
# published by the Free Software Foundation, either version 3 of the
7
# License, or (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU Affero General Public License for more details.
13
#
14
# You should have received a copy of the GNU Affero General Public License
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
#
17
2 by Martin Owens
Manual merge in of other inital branch.
18
import os
19
from django.conf.urls.defaults import *
20
from django.conf import settings
8 by Martin Owens
Sick of waiting, I've pushed loco-directory content/code into use.
21
#from common.views import robots
2 by Martin Owens
Manual merge in of other inital branch.
22
23
from django.contrib import admin
24
admin.autodiscover()
25
26
urlpatterns = patterns('',
8 by Martin Owens
Sick of waiting, I've pushed loco-directory content/code into use.
27
    url(r'^$', 'common.views.index', name='home'),
28
    url(r'^language/', 'common.views.set_language', name='set_language'),
29
    url(r'^about/$', 'common.views.about', name='about'),
30
    #url(r'^irc/$', 'common.views.irc_chat', name='irc_chat'),
31
    #url(r'^using-locodir/$', 'common.views.using_locodir', name='using_locodir'),
32
    url(r'^openid/', include('django_openid_auth.urls')),
33
    url(r'^admin/(.*)', admin.site.root),
34
    #url(r'^data/xml', 'teams.views.xml_team_data', name='xml_team_data'),
13 by Martin Owens
Sync for danny
35
    url(r'^asset/', include('assets.urls')),
36
    url(r'^creation/', include('creations.urls')),
8 by Martin Owens
Sick of waiting, I've pushed loco-directory content/code into use.
37
    #url(r'^events/venues/', include('venues.urls')),
38
    #url(r'^events/', include('events.urls')),
39
    #url(r'^meetings/', include('meetings.urls')),
40
    #url(r'^loco-council/$', 'common.views.loco_council', name='loco_council'),
41
    #url(r'^loco-council/approved$', 'teams.views.reapprovals', name='reapprovals'),
42
    url(r'^logout$', 'common.views.site_logout'),
43
    url(r'^jsi18n', 'django.views.i18n.javascript_catalog', name='jsi18n'),
44
    #url(r'^services/', include('services.urls')),
45
    url(r'^search/', 'common.views.site_search', name='site_search'),
2 by Martin Owens
Manual merge in of other inital branch.
46
)
47
48
if settings.STATIC_SERVE:
49
    urlpatterns += patterns('',
8 by Martin Owens
Sick of waiting, I've pushed loco-directory content/code into use.
50
        (r'^media/(?P<path>.*)$', 'django.views.static.serve',
51
            {'document_root': settings.MEDIA_ROOT}),
52
        #(r'^robots\.txt$', robots),
2 by Martin Owens
Manual merge in of other inital branch.
53
    )
8 by Martin Owens
Sick of waiting, I've pushed loco-directory content/code into use.
54
55