2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-29 05:11:52 +00:00

[svn] Fix leftover from expo -> core rename, and add databaseReset.py to README.txt

This commit is contained in:
substantialnoninfringinguser 2009-07-02 22:31:28 +01:00
parent ae3fe8cd42
commit 205a73917d
2 changed files with 14 additions and 10 deletions

View File

@ -25,7 +25,15 @@ If you want to work on the source code and be able to commit, you will need to u
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.
Importing legacy data
---------------------
Once troggle is running, log in and then go to "Import / export" data under "admin" on the menu

View File

@ -1,12 +1,8 @@
#.-*- coding: utf-8 -*-
import troggle.settings as settings
import troggle.expo.models as models
import csv
import re
import datetime
import os
import shutil
from django.conf import settings
import core.models as models
import csv, re, datetime, os, shutil
from troggle.save_carefully import save_carefully
# Julian: the below code was causing errors and it seems like a duplication of the above. Hope I haven't broken anything by commenting it. -Aaron