Commit Graph

22 Commits

Author SHA1 Message Date
cucc
c24359cb87 [svn r8324] Weeks of local changes.
- Import is now non-destructive
- Parsers write output to a log file (path be specified in settings)
- databaseReset.py content been divided into separate functions which can be called for varying levels of deletion and importing
- control panel (view, template, urlpattern) added for deleting and importing
- Logins and signup fixed
- CaveArea model updated, view, hierarchical url patterns, and beginning of template added
- New site style
2009-05-03 07:56:03 +02:00
aaron
0a0abd4f6e [svn r8312] 2009-03-27 20:32:07 +01:00
aaron
e614e86d85 [svn r8311] Smart url joining 2009-03-27 17:11:41 +01:00
aaron
4ce8ca0a5e [svn r8310] Temporary fix for double slash problem 2009-03-27 16:58:03 +01:00
julian
8473c4a2c3 [svn r8262] Further attempts to make troggle work on windows using surveys stored on an external server
settings.PHOTOS changed to setting.PHOTO_ROOT
Made databaseReset.py get info from external server if appropriate (hope this did not break linus disk based scripts)
Still needs more work, to get everything working
Auto create photos directory if it does not already exist
2009-03-02 02:30:45 +01:00
aaron
d19c51daa0 [svn r8257] Not ready for these yet. 2009-02-23 14:11:39 +01:00
aaron
292985f46f [svn r8256] Fixing what I broke. 2009-02-23 14:05:59 +01:00
aaron
4fc8c8ae3c [svn r8246] Photo file handling and mugshots parsing sorted.
Made URL settings more relative, less redundant.
2009-02-18 07:45:45 +01:00
aaron
6776111c6e [svn r8244] 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.
2009-02-16 09:31:26 +01:00
aaron
7c10fc5e39 [svn r8231] Add user registration and user profiles.
Used modified versions of django-registration and django-profiles , both on bitbucket.

The Person model is now set up as the profile for auth.User s.

I set up a requestcontext so that settings is automatically passed to every template, no need to repeat ourselves in views. However, this needs to be refined: I will soon change it to only pass a subset of settings. E.G. we do not need to be passing the DB login and password!
2009-01-30 00:02:03 +01:00
julian
820564de79 [svn r8170] Changed admin media prefix and enabled smart slash adding 2009-01-17 21:35:13 +01:00
aaron
4e1b4684cd [svn r8087] Try and sort out settings mess. 2008-12-09 05:48:56 +01:00
aaron
6b1555f867 [svn r8082] Remove MEDIA_ROOT from settings.py because it belongs in local settings, and comment out urlconf line for unfinished edit form which I haven't checked in. 2008-12-08 06:10:45 +01:00
aaron
97332b8103 [svn r8081] Added cave and logbook search, collapsible footer navbar, useless statistics page. Also fixed broken css. Toying with forms but not committing those yet. 2008-12-08 05:28:03 +01:00
julian
5f18df3822 [svn r8068] going back now works 2008-11-07 03:30:53 +01:00
julian
e8b493d070 [svn r8067] remove nonasc 2008-11-07 03:25:00 +01:00
julian
223a32a5db [svn r8055] Moved template directories to local settings 2008-11-03 00:18:55 +01:00
aaron
6b91da5b60 [svn r8049] Settings.py now references localsettings.py, which is kept outside of SVN and is specific to each machine. 2008-11-02 05:18:41 +01:00
julian
233f376608 [svn r8047] more parsing back to 2002 2008-10-31 15:43:57 +01:00
aaron
8bfa77583e [svn r8042] Add QM model. Note that I had to put models_logbook into models cave because it referred to models from both. Will try to split them back up, should be possible. 2008-10-28 23:21:35 +01:00
julian
7dc74cf94c [svn r8038] add personindex templates 2008-10-27 01:36:06 +01:00
julian
8bccfd9ed8 [svn r8034] Initial troggle checkin
This is a development site using Django 1.0
2008-10-26 22:04:06 +01:00