move files for new virtualenv setup

This commit is contained in:
j 2009-10-09 17:20:54 +02:00
parent 2b957c7495
commit e38385fcd8
33 changed files with 28 additions and 4 deletions

View file

@ -1,8 +1,11 @@
data data
cache cache
media media
media/posters oxdata/media/posters
host_settings
dev.sqlite dev.sqlite
local_settings.py local_settings.py
secret.txt secret.txt
bin
lib
src
include

17
README Normal file
View file

@ -0,0 +1,17 @@
To setup a local instance of oxdata:
bzr branch http://code.0xdb.org/oxdata oxdata
cd oxdata
virtualenv .
pip -E . install -r requirements.txt
you need python, bazaar, pip and virtualenv:
apt-get install python-setuptools bzr
east_install pip
pip install virtualenv
also it uses system python moduels, so make sure you have
ipython, dbmodule(psycopg2, python-mysqldb,..)
installed via apt-get/pip/easy_install in your system path.

4
requirements.txt Normal file
View file

@ -0,0 +1,4 @@
-e svn+http://code.djangoproject.com/svn/django/branches/releases/1.1.X/#egg=django
South==0.6.1
-e bzr+http://code.0xdb.org/python-oxlib/#egg=python-oxlib
-e bzr+http://code.0xdb.org/python-oxweb/#egg=python-oxweb

View file

@ -5,7 +5,7 @@ import site
project_module = 'oxdata' project_module = 'oxdata'
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))) 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 #using virtualenv's activate_this.py to reorder sys.path
activate_this = os.path.join(root_dir, 'env', 'bin', 'activate_this.py') activate_this = os.path.join(root_dir, 'env', 'bin', 'activate_this.py')
@ -15,7 +15,7 @@ sys.path.append(root_dir)
sys.path.append(os.path.join(root_dir, project_module)) sys.path.append(os.path.join(root_dir, project_module))
#reload if this django.wsgi gets touched #reload if this django.wsgi gets touched
import monitor from utils import monitor
monitor.start(interval=1.0) monitor.start(interval=1.0)
monitor.track(os.path.abspath(os.path.dirname(__file__))) monitor.track(os.path.abspath(os.path.dirname(__file__)))