2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00
Mirror of Troggle Repo but with issue tracking etc. https://expo.survex.com
Go to file
2012-08-12 19:10:23 +02:00
core Started removing foreignkeys to caves, to achieve greater flexability. Some log book entries stuff may be broken. Add ability to make new caves and entrances via website. 2012-08-12 19:10:23 +02:00
docsEtc [svn] Draft of paper for ICS. 2009-05-13 05:51:21 +01:00
export no need to export cavetab2 anymore 2012-06-10 17:20:57 +01:00
flatpages Started removing foreignkeys to caves, to achieve greater flexability. Some log book entries stuff may be broken. Add ability to make new caves and entrances via website. 2012-08-12 19:10:23 +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 Added redmund style for jquery-ui 2011-07-10 23:40:52 +01:00
parsers Made a prospecting guide and fixed survex station description. Removed parsing of underground descriptions to wikis. 2012-08-10 19:02:13 +02:00
profiles [svn] Brief code cleanup. 2009-07-03 05:31:49 +01:00
registration [svn] A few registration updates 2009-05-30 16:17:19 +01:00
templates Started removing foreignkeys to caves, to achieve greater flexability. Some log book entries stuff may be broken. Add ability to make new caves and entrances via website. 2012-08-12 19:10:23 +02: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 Setup files for hg to ignore (*.pyc, db*, localsettings.py) 2011-05-01 19:13:07 +01:00
databaseReset.py Started removing foreignkeys to caves, to achieve greater flexability. Some log book entries stuff may be broken. Add ability to make new caves and entrances via website. 2012-08-12 19:10:23 +02:00
localsettingsserver.py update localsettings for server and expo machine 2011-07-14 03:50:49 +01:00
localsettingsubuntu.py FIx base template so admin link, expoweb link work and use consistent base URL 2012-08-05 02:33:48 +02:00
localsettingswindows.py remove all the DOS linefeeds 2011-07-11 02:10:22 +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 remove all the DOS linefeeds 2011-07-11 02:10:22 +01:00
settings.py Start to change dataformat for caves, along with there editing. Start to change survex reader to cope better with equates/tags. 2012-06-10 14:59:21 +01:00
troggle_log.txt Add empty troggle_log.txt file to save doing it by hand 2011-07-12 00:02:01 +01:00
urls.py Started removing foreignkeys to caves, to achieve greater flexability. Some log book entries stuff may be broken. Add ability to make new caves and entrances via website. 2012-08-12 19:10:23 +02: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 expeditions and licensed under the GNU Lesser General Public License.

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

Python, Django, and Database setup
-----------------------------------
Troggle requires Django 1.1 or greater, and any version of Python that works with it. As of writing this readme, there was no actual Django 1.1 release, so Troggle required the SVN version of Django. Check Django out to somewhere on your PYTHONPATH with the following command:

svn co http://code.djangoproject.com/svn/django/trunk/

If you have an older installation of Django installed on your system, the easiest way to make sure troggle is using the newest version of Django is to simply checkout into your top troggle directory, into a folder called django.

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.

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.