2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00
Mirror of Troggle Repo but with issue tracking etc. https://expo.survex.com
Go to file
expo 4320e76298 merge serve changes
HGerver canges Enter commit message.  Lines beginning with 'HG:' are removed.
2016-06-09 04:16:46 +01:00
core Commit changes made on expo 2015 2015-09-16 01:52:45 +01:00
docsEtc rename troggle paper.odt to troggle_paper.odt as space in repo are a 2015-04-08 03:24:00 +01:00
export no need to export cavetab2 anymore 2012-06-10 17:20:57 +01:00
flatpages allow extensions to be capatalised 2012-08-14 15:05:15 +02:00
helper decorator to check if user is logged in if settings.PUBLIC_SITE 2011-05-02 02:13:27 +01:00
imagekit [svn] Switch from photologue to imagekit. Less bloat. 2009-05-13 06:24:52 +01:00
media remove internal copies of jquery, jquiery-forms, jquery-ui+themes, 2014-09-11 07:40:58 +01:00
parsers remove code saying we can't do interlaced pngs. It's fine now. 2015-10-02 15:07:03 +01:00
profiles [svn] Brief code cleanup. 2009-07-03 05:31:49 +01:00
templates Correct typo on cave and entrance template files 2016-01-27 04:24:44 +00:00
wiki Note that the instructions for adding a survey are all wrong. 2012-08-05 00:35:02 +02:00
__init__.py [svn] Initial troggle checkin 2009-05-13 05:13:38 +01:00
.hgignore Prospecting guide and images and few minor other things. 2013-08-01 17:00:01 +02:00
databaseReset.py sysadmin to expouser for email 2015-07-01 01:26:04 +01:00
localsettingspotatohut.py Merge 2016-05-20 21:35:58 +01:00
localsettingsserver.py Move expoimage to expofiles 2015-10-02 15:10:04 +01:00
localsettingsubuntu.py Move expoimage to expofiles 2015-10-02 15:10:04 +01:00
localsettingswindows.py Move expo user settings out of databasereset.py to localsettings where they really belong 2015-07-01 01:18:25 +01:00
manage.py remove all the DOS linefeeds 2011-07-11 02:10:22 +01:00
middleware.py remove all the DOS linefeeds 2011-07-11 02:10:22 +01:00
modelviz.py modelviz added 2009-09-11 09:04:59 +01:00
README.txt Update the README file a bit - still needs work. 2014-09-10 23:46:05 +01:00
settings.py Moved notable caves to settings.py, link to a script to fix permissions 2015-06-21 15:08:09 +01:00
urls.py Tidy up urls file a little 2014-05-14 20:46:59 +01:00
utils.py undosify lineends 2011-07-11 01:49:03 +01:00

Troggle is an application for caving expedition data management, originally created for use on Cambridge University Caving Club (CUCC)expeditions and licensed under the GNU Lesser General Public License.

Troggle has been forked into two projects. The original one is maintained by Aron Curtis and is used for Erebus caves. The CUCC variant uses files as the definitive data, not the database and lives at expo.sruvex.com/troggle.

Troggle setup
==========

Python, Django, and Database setup
-----------------------------------
Troggle requires Django 1.4 or greater, and any version of Python that works with it.
Install Django with the following command:

apt-get install python-django  (on debian/ubuntu)

If you want to use MySQL or Postgresql, download and install them. However, you can also use Django with Sqlite3, which is included in Python and thus requires no extra installation.



Troggle itself
-------------
Choose a directory where you will keep troggle, and svn check out Troggle into it using the following command:

svn co http://troggle.googlecode.com/svn/


If you want to work on the source code and be able to commit, you will need to use https instead of http, and your google account will need to be added to the troggle project members list. Contact aaron dot curtis at cantab dot net to get this set up.

Next, you need to fill in your local settings. Copy either localsettingsubuntu.py or localsettingsserver.py to a new file called localsettings.py. Follow the instructions contained in the file to fill out your settings.


Setting up tables and importing legacy data
------------------------------------------
Run "python databaseReset.py reset" from the troggle directory.

Once troggle is running, you can also log in and then go to "Import / export" data under "admin" on the menu.

Adding a new year/expedition requires adding a column to the
noinfo/folk.csv table - a year doesn't exist until that is done.


Running a Troggle server
------------------------
For high volume use, Troggle should be run using a web server like apache. However, a quick way to get started is to use the development server built into Django.

To do this, run "python manage.py runserver" from the troggle directory.