Initial groundwork for using virtualenv

This commit is contained in:
2010-06-30 10:45:27 +01:00
parent 0d5bd2a16f
commit 3034a0c09a
6 changed files with 13 additions and 10 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ piston
django_evolution django_evolution
logs/ logs/
settingslocal.py settingslocal.py
env

View File

@@ -1,8 +0,0 @@
#!/bin/sh
svn co http://code.djangoproject.com/svn/django/branches/releases/1.1.X/django django
svn co http://django-evolution.googlecode.com/svn/trunk/django_evolution
hg clone http://bitbucket.org/jespern/django-piston/
rm -rf piston
mv django-piston/piston ./
rm -rf django-piston

6
requirements.txt Normal file
View File

@@ -0,0 +1,6 @@
Django==1.1.2
django-evolution==0.5
django-piston==0.2.2
django-registration==0.7
yolk==0.4.1
-e git+http://github.com/bradjasper/django-jsonfield.git#egg=django_jsonfield

3
setup-env.sh Executable file
View File

@@ -0,0 +1,3 @@
virtualenv --distribute env
. ./env/bin/activate
pip install -r requirements.txt

View File

@@ -8,7 +8,7 @@ from django.db.models import signals
from django.contrib.auth.models import User, UserManager, Group from django.contrib.auth.models import User, UserManager, Group
from django.utils import simplejson as json from django.utils import simplejson as json
from django_jsonfield.fields import JSONField from nosj.fields import JSONField
from eve_api.models import EVEAccount, EVEPlayerCorporation, EVEPlayerAlliance from eve_api.models import EVEAccount, EVEPlayerCorporation, EVEPlayerAlliance
from reddit.models import RedditAccount from reddit.models import RedditAccount

View File

@@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
/usr/bin/python ./manage.py runfcgi method=threaded host=127.0.0.1 port=9981 . ./env/bin/activate
python ./manage.py runfcgi method=threaded host=127.0.0.1 port=9981