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
|
2011-08-03 11:16:12 +00:00
|
|
|
# from django.auth.views import login, logout, register,
|
2012-02-02 10:19:45 +00:00
|
|
|
from itfprofiles.forms import ItfRegistrationForm
|
2010-03-03 14:28:00 +00:00
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
2012-04-21 10:35:01 +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')),
|
2012-01-01 09:26:53 +00:00
|
|
|
(r'^$', "frontpage.views.index"),
|
2012-01-01 09:19:46 +00:00
|
|
|
(r'^t/$', "frontpage.views.index"),
|
2011-08-22 21:56:30 +00:00
|
|
|
(r'm/', include('insidepages.urls')),
|
2011-12-27 13:05:42 +00:00
|
|
|
(r'^page/(?P<slug>[a-zA-Z].*?)/', 'pages.views.render_page'),
|
2011-10-12 14:34:48 +00:00
|
|
|
(r'^contact/$', 'frontpage.views.contact'),
|
2011-12-05 22:51:35 +00:00
|
|
|
(r'^emailer/issue/(?P<issue_no>\d+)/$', 'emailer.views.show_emailer'),
|
2011-08-22 21:56:30 +00:00
|
|
|
# ('m/(?P<module_slug>.*)', 'insidepages.views.main'),
|
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'),
|
2011-04-18 13:36:11 +00:00
|
|
|
(r'^itf/', include('festival.urls')),
|
2012-02-02 10:19:45 +00:00
|
|
|
# (r'^accounts/register/', 'registration.views.register', {'form_class': ItfRegistrationForm }),
|
2011-08-03 11:16:12 +00:00
|
|
|
(r'^accounts/', include('registration.urls')),
|
2011-12-23 16:24:34 +00:00
|
|
|
(r'^admin/', include(admin.site.urls)),
|
2010-03-03 14:28:00 +00:00
|
|
|
('^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:
|
2012-04-21 10:35:01 +00:00
|
|
|
(r'test_profile', 'itfprofiles.views.person_form'),
|
2010-10-21 16:51:01 +00:00
|
|
|
(r'i/', include('itfcore.urls')),
|
2010-03-03 14:28:00 +00:00
|
|
|
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
2011-10-08 00:39:33 +00:00
|
|
|
(r'^search/', include('haystack.urls')),
|
2011-11-08 03:57:09 +00:00
|
|
|
(r'^markitup/', include('markitup.urls')),
|
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'),
|
2012-01-01 09:26:53 +00:00
|
|
|
# (r'^$', 'festival.views.home')
|
2010-03-03 14:28:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if settings.LOCAL_DEVELOPMENT:
|
|
|
|
#
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
#
|
2011-08-25 11:48:49 +00:00
|
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}),
|
2010-03-03 14:28:00 +00:00
|
|
|
#
|
|
|
|
)
|
|
|
|
#
|
|
|
|
|