Mercurial > hg > agora-dellsystem
view urls.py @ 103:9d6b313af86f
Upgrade Django version requirement to 1.3
There are some useful shortcut functions (like render) that were added
in 1.3, as well as some other additions/changes made in that version that
will be helpful down the line.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Fri, 31 Aug 2012 03:10:56 -0400 |
parents | bf731c77ddf9 |
children | 17bc502c65a4 |
line wrap: on
line source
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.djhtml'}, name='home'), url(r'^about$', 'django.views.generic.simple.direct_to_template', {'template': 'about.djhtml'}, name='about'), url(r'^help$', 'django.views.generic.simple.direct_to_template', {'template': 'help.djhtml'}, name='help'), url(r'^discuss$', 'django.views.generic.simple.direct_to_template', {'template': 'discuss.djhtml'}, name='discuss'), url(r'^code$', 'django.views.generic.simple.direct_to_template', {'template': 'code.djhtml'}, name='code'), url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^accounts/logout/', 'django.contrib.auth.views.logout', {'template_name' : 'index.djhtml', 'next_page' : '/'}), url(r'^accounts/', include('registration.urls')), url(r'^licenses/', include('agora.apps.free_license.urls')), url(r'^users/', include('agora.apps.profile.urls')), url(r'^snippet/', include('agora.apps.snippet.urls')), url(r'^bundles/', include('agora.apps.bundle.urls')), ) #Let Django itself serve static data during debugging from django.conf import settings if settings.DEBUG: urlpatterns += patterns('', (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static/', 'show_indexes': True}), )