Install packages::
- apt-get install git python-django python-django-south python-setuptools python-sphinx python-httplib2
+ apt-get install git python-django python-setuptools python-sphinx
apt-get install python-sqlalchemy python-mysqldb python-psycopg2
apt-get install apache2 libapache2-mod-wsgi
cd /pithos/pithos
python manage.py syncdb
- python manage.py schemamigration im --initial
cd /pithos
python setup.py build_sphinx
Allow from all
</Directory>
+ SetEnv no-gzip
+ SetEnv dont-vary
+
RewriteEngine On
RewriteRule ^/v(.*) /api/v$1 [PT,NE]
RewriteRule ^/public(.*) /api/public$1 [PT,NE]
Allow from all
</Directory>
+ SetEnv no-gzip
+ SetEnv dont-vary
+
RewriteEngine On
RewriteRule ^/v(.*) /api/v$1 [PT,NE]
RewriteRule ^/public(.*) /api/public$1 [PT,NE]
Useful alias to add in ``~/.bashrc``::
- alias pithos-sync='cd /pithos && git pull && python setup.py build_sphinx && cd pithos && python manage.py migrate im && /etc/init.d/apache2 restart'
+ alias sync-pithos='cd /pithos && git pull && python setup.py build_sphinx && /etc/init.d/apache2 restart'
Gunicorn Setup
--------------