mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
[svn] Fix leftover from expo -> core rename, and add databaseReset.py to README.txt
This commit is contained in:
parent
e565a6b73b
commit
6daf57d8fe
14
README.txt
14
README.txt
@ -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.
|
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
|
|
@ -1,12 +1,8 @@
|
|||||||
#.-*- coding: utf-8 -*-
|
#.-*- coding: utf-8 -*-
|
||||||
|
|
||||||
import troggle.settings as settings
|
from django.conf import settings
|
||||||
import troggle.expo.models as models
|
import core.models as models
|
||||||
import csv
|
import csv, re, datetime, os, shutil
|
||||||
import re
|
|
||||||
import datetime
|
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
from troggle.save_carefully import save_carefully
|
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
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user