troggle-unchained/templates
substantialnoninfringinguser d25fd97864 [svn] My crusade to make our project more Djangoic.
Got rid of the url tags in template, replaced them with get_absolute_url method calls where possible. Adding get_absolute_url in models enables direct link to the public model views in admin. The use of get_absolute_url, which is the correct Django way of doing things, eliminates any need for the redundant "href" fields we were using. Those fields now need to be deleted from the models and from the parsers.

Made the context processor to pass settings to all templates actually work, although this was a little uglier than expected. I had to put in a new render_response to replace render_to_response. This is because Django uses Context, not RequestContext by default. I wish they would change this, it's annoying. Anyway, I deleted all the manual settings passing in the views.

I also eliminated a couple of unnecessary methods and stuff like that.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8244 by aaron @ 2/16/2009 8:31 AM
2009-05-13 05:52:15 +01:00
..
admin [svn] Replace "django" with "troggle" in admin 2009-05-13 05:21:51 +01:00
profiles [svn] Add user registration and user profiles. 2009-05-13 05:48:10 +01:00
registration [svn] Add user registration and user profiles. 2009-05-13 05:48:10 +01:00
base.html [svn] Now that I've put the new css up, let's use it. Should have only stuff we actually use. 2009-05-13 05:50:31 +01:00
calendar.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
cave.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
cavearea.html [svn] Template update to use wiki_to_html_short 2009-05-13 05:45:44 +01:00
cavebase.html [svn] Template update to use wiki_to_html_short 2009-05-13 05:45:44 +01:00
caveindex.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
cavesearch.html [svn] Forgot to add cave and logbook search templates in earlier commit. 2009-05-13 05:22:51 +01:00
entrance.html [svn] Initial troggle checkin 2009-05-13 05:13:38 +01:00
expedition.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
fileupload.html [svn] yorkshire work with tunnel integration 2009-05-13 05:48:47 +01:00
index.html [svn] yorkshire work with tunnel integration 2009-05-13 05:48:47 +01:00
listdir.html [svn] yorkshire work with tunnel integration 2009-05-13 05:48:47 +01:00
logbookentry.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
logbooksearch.html [svn] Forgot to add cave and logbook search templates in earlier commit. 2009-05-13 05:22:51 +01:00
person.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
personexpedition.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
personForm.html [svn] Add user registration and user profiles. 2009-05-13 05:48:10 +01:00
personindex.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
statistics.html [svn] Added cave and logbook search, collapsible footer navbar, useless statistics page. Also fixed broken css. Toying with forms but not committing those yet. 2009-05-13 05:22:14 +01:00
survexblock.html [svn] merge the trip table to have surveys by date 2009-05-13 05:43:20 +01:00
survey.html [svn] My crusade to make our project more Djangoic. 2009-05-13 05:52:15 +01:00
svxfile.html [svn] Initial troggle checkin 2009-05-13 05:13:38 +01:00