2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-01 14:21:52 +00:00
Mirror of Troggle Repo but with issue tracking etc. https://expo.survex.com
Go to file
2020-02-24 15:04:07 +00:00
core Just removing dud whitespace 2020-02-24 15:04:07 +00:00
debian Add info to debian instructions on creating troggle logfile (in /var/log) 2019-06-27 00:14:39 +01:00
docker Whitespace cleanup 2020-02-21 14:26:14 +00: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 Just removing dud whitespace 2020-02-24 15:04:07 +00:00
flatpages Whitespace cleanup 2020-02-21 14:26:14 +00:00
helper decorator to check if user is logged in if settings.PUBLIC_SITE 2011-05-02 02:13:27 +01:00
media Part one of getting troggle to work with django 1.10 2019-07-16 00:07:37 +01:00
parsers Just removing dud whitespace 2020-02-24 15:04:07 +00:00
profiles Part one of getting troggle to work with django 1.10 2019-07-16 00:07:37 +01:00
templates Just removing dud whitespace 2020-02-24 15:04:07 +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
.gitignore Add .gitignore file 2019-06-27 00:23:22 +01:00
.hgignore Make things more compatiable with newer python 2019-02-24 13:03:34 +00:00
databaseReset.py Just removing dud whitespace 2020-02-24 15:04:07 +00:00
localsettingsdocker.py Remove dud settings 2020-02-21 14:25:13 +00:00
localsettingspotatohut.py Remove dud settings 2020-02-21 14:25:13 +00:00
localsettingsserver.py Remove dud settings 2020-02-21 14:25:13 +00:00
localsettingsubuntu.py Remove dud settings 2020-02-21 14:25:13 +00:00
localsettingswindows.py Remove dud settings 2020-02-21 14:25:13 +00:00
manage.py Django 1.7 mostly working. Big refactor so probably bugs 2018-04-15 16:28:13 +01:00
middleware.py Just removing dud whitespace 2020-02-24 15:04:07 +00:00
modelviz.py modelviz added 2009-09-11 09:04:59 +01:00
README.txt Improve README 2019-07-19 01:04:18 +01:00
settings.py Just removing dud whitespace 2020-02-24 15:04:07 +00:00
urls.py Get media working (at least in development) 2020-02-21 14:19:37 +00:00
utils.py Just removing dud whitespace 2020-02-24 15:04: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.survex.com/troggle.

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

Python, Django, and Database setup
-----------------------------------
Troggle requires Django 1.10, and Python 2.7.
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 git clone Troggle into it using the following command:

git clone git://expo.survex.com/~/troggle
or more reliably
git clone ssh://expo@expo.survex.com/home/expo/troggle

Running in development
----------------------
The simplest way to run Troggle in development is through the docker-compose setup
See the docker folder in the repo for details

If you want to work on the source code and be able to commit, your account will need to be added to the troggle project members list. Contact wookey  at wookware dot org 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.