2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00
Mirror of Troggle Repo but with issue tracking etc. https://expo.survex.com
Go to file
Sam Wenham 23df89cf31 Fix CSRF issues in svx form
Set date formats
Add DataIssue model and add errors to it to allow us to give people a list of
stuff to fix
2019-04-14 22:45:31 +01:00
core Fix CSRF issues in svx form 2019-04-14 22:45:31 +01:00
docker Add docker readme, settings and update compose file 2019-02-26 19:19:01 +00:00
docsEtc
export
flatpages Remove the redundant render_with_context() as django now does this just with the 2019-03-30 17:02:07 +00:00
helper
imagekit
media
parsers Fix CSRF issues in svx form 2019-04-14 22:45:31 +01:00
profiles Django 1.7 mostly working. Big refactor so probably bugs 2018-04-15 16:28:13 +01:00
templates Fix CSRF issues in svx form 2019-04-14 22:45:31 +01:00
wiki
__init__.py
.hgignore Make things more compatiable with newer python 2019-02-24 13:03:34 +00:00
databaseReset.py Update new management command for DB reset 2019-03-30 13:58:38 +00:00
localsettingsdocker.py Add docker readme, settings and update compose file 2019-02-26 19:19:01 +00:00
localsettingspotatohut.py Add the extra setting for the threed cache to all the template configs 2018-04-20 20:58:05 +01:00
localsettingsserver.py Add the extra setting for the threed cache to all the template configs 2018-04-20 20:58:05 +01:00
localsettingsubuntu.py Add the extra setting for the threed cache to all the template configs 2018-04-20 20:58:05 +01:00
localsettingswindows.py New vars needed to make django 1.7 and tinymce work 2018-04-15 16:36:23 +01:00
manage.py Django 1.7 mostly working. Big refactor so probably bugs 2018-04-15 16:28:13 +01:00
middleware.py
modelviz.py
README.txt folk.csv has moved into 'folk' dir out of 'noinfo' 2019-04-02 00:57:13 +01:00
settings.py Move cave and entrance data out of 'noinfo' 2019-04-01 23:03:45 +01:00
urls.py Remove the redundant render_with_context() as django now does this just with the 2019-03-30 17:02:07 +00:00
utils.py Remove the redundant render_with_context() as django now does this just with the 2019-03-30 17:02:07 +00:00
wsgi.py Django 1.7 wsgi.py 2018-04-15 16:29:30 +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
folk/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.