diff options
author | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-06-26 14:51:02 +0100 |
---|---|---|
committer | James Tunnicliffe <james.tunnicliffe@linaro.org> | 2012-06-26 14:51:02 +0100 |
commit | e5d97a8c79250e4951211abf43c41751ef6e7233 (patch) | |
tree | c1169523c6c36169d3706ff0331c318aa0091bf2 /urls.py | |
parent | f8748b6ca32cc200362ddd39360f947f26d6908c (diff) |
Moved files out od django-rewrite.
Combines .bzrignore files
Deleted django-rewrite directory.
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +from django.conf.urls.defaults import patterns, include, url + +# Uncomment the next two lines to enable the admin: +from django.contrib import admin +admin.autodiscover() + + +urlpatterns = patterns('', + # Uncomment the admin/doc line below to enable admin documentation: + url(r'^admin/doc/', include('django.contrib.admindocs.urls')), + + # Uncomment the next line to enable the admin: + url(r'^admin/', include(admin.site.urls)), + + # The license page... + url(r'^license$', 'linaro_license_protection_2.license_protected_downloads.views.show_license', name='show_license'), + + # Exceptions redirected to root... + url(r'^license', 'linaro_license_protection_2.license_protected_downloads.views.redirect_to_root', name='redirect_to_root'), + + # Accept the license + url(r'^accept-license', 'linaro_license_protection_2.license_protected_downloads.views.accept_license', name='accept_license'), + + # Catch-all. We always return a file (or try to) if it exists. + # This handler does that. + url(r'(?P<path>.*)', 'linaro_license_protection_2.license_protected_downloads.views.file_server'), +) |