diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 06:08:04 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 06:08:04 +0100 |
commit | 157f11b65900f7f36c7d9a060c8162c4250d584a (patch) | |
tree | fa271a36876e30341e2708707e05211f11b46631 /urls.py | |
parent | 256de6e083926d526b419e4c698465b9bb2d7e21 (diff) | |
download | troggle-157f11b65900f7f36c7d9a060c8162c4250d584a.tar.gz troggle-157f11b65900f7f36c7d9a060c8162c4250d584a.tar.bz2 troggle-157f11b65900f7f36c7d9a060c8162c4250d584a.zip |
[svn] Added QM wiki markup. The format is [[cave:204 QM:2005-04A]] with the grade (A) being optional. The links color red if the QM does not exist, and in that case clicking on them goes to an admin add page with fields prepopulated.
Various other little things, e.g. filled in the footer with links.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8305 by aaron @ 3/16/2009 8:53 AM
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,8 @@ import troggle.settings as settings from expo.views import * # flat import
from expo.views_caves import *
from expo.views_survex import *
-
+from expo.models import *
+from django.views.generic.create_update import create_object
from django.contrib import admin
admin.autodiscover()
@@ -41,7 +42,7 @@ urlpatterns = patterns('', url(r'^survex/(.*?)\.index$', views_survex.index, name="survexindex"),
url(r'^cave/(?P<cave_id>[^/]+)/?$', views_caves.cavehref),
- url(r'^cave/(?P<cave_id>[^/]+)/(?P<year>\d\d\d\d)-(?P<qm_id>\d\d)?$', views_caves.qm),
+ url(r'^cave/(?P<cave_id>[^/]+)/(?P<year>\d\d\d\d)-(?P<qm_id>\d\d)(?P<grade>[ABCDX]?)?$', views_caves.qm, name="qm"),
(r'^survex/(?P<survex_file>.*)\.svx$', svx),
(r'^survex/(?P<survex_file>.*)\.3d$', threed),
(r'^survex/(?P<survex_file>.*)\.log$', log),
@@ -59,7 +60,8 @@ urlpatterns = patterns('', url(r'^survey/(?P<year>\d\d\d\d)\#(?P<wallet_number>\d*)$', survey, name="survey"),
(r'^admin/doc/?', include('django.contrib.admindocs.urls')),
- (r'^admin/(.*)', admin.site.root),
+
+ url(r'^admin/', include(admin.site.urls),name="admin"),
(r'^accounts/', include('registration.urls')),
(r'^profiles/', include('profiles.urls')),
|