diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:58:18 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:58:18 +0100 |
commit | e8da6b9b8b0d5390d26832af42550c4e651a82dd (patch) | |
tree | 3839c6f56e0e502294b3c360d417facfdf33bf3d /databaseReset.py | |
parent | 4b34241a16af5e9cbfff0c3b2ede76394e94a3b5 (diff) | |
download | troggle-e8da6b9b8b0d5390d26832af42550c4e651a82dd.tar.gz troggle-e8da6b9b8b0d5390d26832af42550c4e651a82dd.tar.bz2 troggle-e8da6b9b8b0d5390d26832af42550c4e651a82dd.zip |
[svn] Further attempts to make troggle work on windows using surveys stored on an external server
settings.PHOTOS changed to setting.PHOTO_ROOT
Made databaseReset.py get info from external server if appropriate (hope this did not break linus disk based scripts)
Still needs more work, to get everything working
Auto create photos directory if it does not already exist
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8262 by julian @ 3/2/2009 1:30 AM
Diffstat (limited to 'databaseReset.py')
-rw-r--r-- | databaseReset.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/databaseReset.py b/databaseReset.py index 434eb5f..4b3c91c 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -17,6 +17,10 @@ user.is_staff = True user.is_superuser = True
user.save()
+#Make directories that troggle requires
+if not os.path.isdir(settings.PHOTOS_ROOT):
+ os.mkdir(settings.PHOTOS_ROOT)
+
import parsers.cavetab
parsers.cavetab.LoadCaveTab()
import parsers.people
|