view urls.py @ 184:b711f0087709

Use DESCRIPTION file for bundles (SCHEMA CHANGE) * Added two new fields to the Bundle model: * octave_format, which allows users to specify if their bundle has been formatted according to octave packaging standards or not * description_file, which points to a file named DESCRIPTION in the root directory (or the next top-level directory), if the octave_format checkbox is ticked and if one exists * Fixed the uploader field for form by making it a hidden input and preventing hidden inputs from showing up entirely
author dellsystem <ilostwaldo@gmail.com>
date Sat, 27 Oct 2012 15:58:08 -0400
parents 8da14d503af8
children 7ec7f6a30592
line wrap: on
line source

from django.conf.urls.defaults import *
from django.views.generic import ListView

# 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$',
        'views.code',
        name='code'),
    url(r'^login',
        'views.login_register',
        name='login'),
    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}),
                    )