it/itf/urls.py

67 lines
2.6 KiB
Python
Raw Normal View History

2010-03-03 19:58:00 +05:30
from django.conf.urls.defaults import *
import settings
import os
from os.path import join
2010-08-03 03:36:25 +05:30
from django.views.generic.simple import direct_to_template
2011-08-03 16:46:12 +05:30
# from django.auth.views import login, logout, register,
from itfprofiles.forms import ItfRegistrationForm
2010-03-03 19:58:00 +05:30
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
2012-04-21 16:05:01 +05:30
#from api import actions
#actions.autodiscover()
2010-03-03 19:58:00 +05:30
urlpatterns = patterns('',
# Example:
# (r'^bhangar/', include('bhangar.foo.urls')),
#(r'^search/', include('solango.urls')),
(r'^$', "frontpage.views.index"),
2012-05-25 04:14:10 +05:30
# (r'^t/$', "frontpage.views.index"),
(r'm/', include('insidepages.urls')),
2011-12-27 18:35:42 +05:30
(r'^page/(?P<slug>[a-zA-Z].*?)/', 'pages.views.render_page'),
2011-10-12 20:04:48 +05:30
(r'^contact/$', 'frontpage.views.contact'),
2011-12-06 04:21:35 +05:30
(r'^emailer/issue/(?P<issue_no>\d+)/$', 'emailer.views.show_emailer'),
# ('m/(?P<module_slug>.*)', 'insidepages.views.main'),
2010-11-20 19:43:49 +05:30
(r'^comments/', include('django.contrib.comments.urls')),
2012-05-25 04:14:10 +05:30
# (r'^ckeditor/', include('ckeditor.urls')),
(r'^robots.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}),
2012-05-25 04:14:10 +05:30
# (r'^erang/', include('erang_organised.urls')),
# (r'api/', 'api.views.api'),
# (r'jsdoc/', 'api.views.jsdoc'),
# (r'site.json', 'app.views.site_json'),
2011-04-18 19:06:11 +05:30
(r'^itf/', include('festival.urls')),
# (r'^accounts/register/', 'registration.views.register', {'form_class': ItfRegistrationForm }),
2011-08-03 16:46:12 +05:30
(r'^accounts/', include('registration.urls')),
2011-12-23 21:54:34 +05:30
(r'^admin/', include(admin.site.urls)),
2012-05-25 04:14:10 +05:30
# ('^getLanguages', 'itfcore.views.getLanguages'),
2010-03-03 19:58:00 +05:30
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
2010-10-21 18:51:01 +02:00
#Core views:
2012-04-21 16:05:01 +05:30
(r'test_profile', 'itfprofiles.views.person_form'),
2012-05-25 04:14:10 +05:30
# (r'i/', include('itfcore.urls')),
2010-03-03 19:58:00 +05:30
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
2011-10-08 06:09:33 +05:30
(r'^search/', include('haystack.urls')),
2011-11-08 09:27:09 +05:30
(r'^markitup/', include('markitup.urls')),
2010-03-03 19:58:00 +05:30
(r'googlehostedservice.html', 'itfcore.views.googlehosted'),
2010-12-06 23:33:00 +01:00
2010-03-03 19:58:00 +05:30
(r'emailsignuplist', 'festival.views.email_signups'),
(r'^favicon.ico$', 'django.views.generic.simple.redirect_to', {'url': '/static/images/favicon.ico'}),
2010-03-14 23:10:50 +05:30
# (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
2010-03-03 19:58:00 +05:30
# Uncomment the next line to enable the admin:
2012-05-25 04:14:10 +05:30
# (r'^test$', 'app.views.index'),
# (r'^$', 'festival.views.home')
2010-03-03 19:58:00 +05:30
)
if settings.LOCAL_DEVELOPMENT:
#
urlpatterns += patterns('',
#
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}),
2010-03-03 19:58:00 +05:30
#
)
#