added init data json
This commit is contained in:
parent
e59cf0c0b3
commit
75f75e986d
1
rizk/rizk241010.json
Normal file
1
rizk/rizk241010.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"pk": 1, "model": "egypt.location", "fields": {"txt": "", "name": "test", "point": "POINT (20.2148437471857001 -3.4256915239417398)"}}, {"pk": 2, "model": "egypt.location", "fields": {"txt": "", "name": "mahalla", "point": "POINT (31.1719036058902006 30.9636998440801001)"}}, {"pk": 1, "model": "egypt.event", "fields": {"start_time": "2010-10-24", "end_time": "2010-10-24", "name": "test event", "description": ""}}]
|
27
wsgi/django.wsgi
Normal file
27
wsgi/django.wsgi
Normal file
|
@ -0,0 +1,27 @@
|
|||
# django.wsgi for vurbanism
|
||||
import os
|
||||
import sys
|
||||
import site
|
||||
|
||||
project_module = 'vurbanism'
|
||||
|
||||
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||
|
||||
#using virtualenv's activate_this.py to reorder sys.path
|
||||
activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
|
||||
sys.path.append(root_dir)
|
||||
sys.path.append(os.path.join(root_dir, project_module))
|
||||
|
||||
#reload if this django.wsgi gets touched
|
||||
from oxdjango import monitor
|
||||
monitor.start(interval=1.0)
|
||||
sys.stdout = sys.stderr
|
||||
monitor.track(os.path.abspath(os.path.dirname(__file__)))
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = project_module + '.settings'
|
||||
|
||||
import django.core.handlers.wsgi
|
||||
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
Loading…
Reference in New Issue
Block a user