2010-03-03 14:28:00 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
import settings
|
|
|
|
import os
|
|
|
|
from os.path import join
|
2010-08-02 22:06:25 +00:00
|
|
|
from django.views.generic.simple import direct_to_template
|
2010-03-03 14:28:00 +00:00
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
2011-02-01 15:13:30 +00:00
|
|
|
from api import actions
|
|
|
|
actions.autodiscover()
|
2010-03-03 14:28:00 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# Example:
|
|
|
|
# (r'^bhangar/', include('bhangar.foo.urls')),
|
|
|
|
#(r'^search/', include('solango.urls')),
|
2010-11-20 14:13:49 +00:00
|
|
|
(r'^comments/', include('django.contrib.comments.urls')),
|
2010-11-23 23:03:27 +00:00
|
|
|
(r'^ckeditor/', include('ckeditor.urls')),
|
2010-08-04 19:56:53 +00:00
|
|
|
(r'^robots.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}),
|
2010-07-30 14:06:30 +00:00
|
|
|
(r'^erang/', include('erang_organised.urls')),
|
2010-12-06 22:33:00 +00:00
|
|
|
(r'api/', 'api.views.api'),
|
|
|
|
(r'jsdoc/', 'api.views.jsdoc'),
|
|
|
|
(r'site.json', 'app.views.site_json'),
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'^itf/$', 'festival.views.home'),
|
|
|
|
(r'^itf/wireframe', 'festival.views.wireframe'),
|
|
|
|
(r'^itf/projects', 'festival.views.projects'),
|
|
|
|
(r'^itf/erang', 'festival.views.erang'),
|
|
|
|
(r'^itf/publications', 'festival.views.publications'),
|
|
|
|
(r'^itf/surveys', 'festival.views.surveys'),
|
|
|
|
(r'^itf/project/(?P<project_id>\d+)/$', 'festival.views.project'),
|
|
|
|
(r'^itf/resources', 'festival.views.resources'),
|
|
|
|
(r'^itf/meetings', 'festival.views.meetings'),
|
|
|
|
(r'^itf/meeting/comment/$', 'festival.views.meeting_comment'),
|
|
|
|
(r'^itf/people', 'festival.views.people'),
|
|
|
|
(r'^itf/save_email', 'festival.views.save_email'),
|
|
|
|
(r'^itf/meeting/(?P<meeting_id>\d+)/$', 'festival.views.meeting_details'),
|
|
|
|
(r'^itf/video/(?P<video_id>\d+)$', 'festival.views.video', ),
|
|
|
|
(r'^admin/(.*)', admin.site.root),
|
|
|
|
('^getLanguages', 'itfcore.views.getLanguages'),
|
|
|
|
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
|
|
# to INSTALLED_APPS to enable admin documentation:
|
2010-10-21 16:51:01 +00:00
|
|
|
#Core views:
|
|
|
|
# (r'profile', 'itfcore.views.edit_profile'),
|
|
|
|
(r'i/', include('itfcore.urls')),
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
2010-12-06 22:33:00 +00:00
|
|
|
|
|
|
|
# (r'^mockup/', 'itfcore.views.mockup'),
|
|
|
|
# (r'x0news/', 'itfcore.views.allnews'),
|
|
|
|
# (r'x0disc/', 'itfcore.views.disc'),
|
|
|
|
# (r'x0multi/', 'itfcore.views.multi'),
|
|
|
|
# (r'x0resources/', 'itfcore.views.resources'),
|
|
|
|
# (r'x0erang/', 'itfcore.views.erang'),
|
|
|
|
# (r'x0profile/', 'itfcore.views.profile'),
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'googlehostedservice.html', 'itfcore.views.googlehosted'),
|
2010-12-06 22:33:00 +00:00
|
|
|
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'emailsignuplist', 'festival.views.email_signups'),
|
|
|
|
(r'^favicon.ico$', 'django.views.generic.simple.redirect_to', {'url': '/static/images/favicon.ico'}),
|
|
|
|
|
2010-03-14 17:40:50 +00:00
|
|
|
# (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
|
2010-03-03 14:28:00 +00:00
|
|
|
# Uncomment the next line to enable the admin:
|
2010-12-06 22:33:00 +00:00
|
|
|
(r'^test$', 'app.views.index'),
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'^$', 'festival.views.home')
|
|
|
|
)
|
|
|
|
|
|
|
|
if settings.LOCAL_DEVELOPMENT:
|
|
|
|
#
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
#
|
|
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_PATH, "static")}),
|
|
|
|
#
|
|
|
|
)
|
|
|
|
#
|
|
|
|
|