Changeset 1278
- Timestamp:
- Jul 25, 2009, 1:34:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/deploy/bin/django
r1222 r1278 16 16 print FASTCGI <<EOF; 17 17 #!/usr/bin/env python 18 import sys, os 18 import sys, os, time, threading, django.utils.autoreload 19 19 sys.path.insert(0, "/mit/$USER/Scripts/django") 20 20 os.chdir("/mit/$USER/Scripts/django/$name") 21 21 os.environ['DJANGO_SETTINGS_MODULE'] = "$name.settings" 22 23 def reloader_thread(): 24 while True: 25 if django.utils.autoreload.code_changed(): 26 os._exit(3) 27 time.sleep(1) 28 t = threading.Thread(target=reloader_thread) 29 t.daemon = True 30 t.start() 22 31 23 32 from django.core.servers.fastcgi import runfastcgi
Note: See TracChangeset
for help on using the changeset viewer.