-
Notifications
You must be signed in to change notification settings - Fork 9
Installing django1.6 branch on Ubuntu 14.04
Matthew Perry edited this page Aug 29, 2014
·
2 revisions
sudo apt-get install gdal-bin libgdal-dev python-dev build-essential libjpeg-dev libjpeg8-dev libpng3 libfreetype6-dev
# These are the tricky ones
pip install numpy
pip install PIL --allow-external PIL --allow-unverified PIL
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
pip install "gdal=1.10"
sudo apt-get install python-mapnik mapnik-input-plugin-* mapnik-utils libmapnik2.2 libmapnik2-dev
#requires virtualenv wrapper
add2virtualenv /usr/lib/pymodules/python2.7 # GRRRRR
pip install --allow-all-external --allow-unverified elementtree elementtree
pip install -r requirements.txt
pip install -r requirements-dev.txt
python setup.py develop
sudo apt-get install postgresql-9.3-postgis-2.1
sudo su postgres
cd /tmp
psql -d template1 -c "CREATE EXTENSION postgis;"
exit
#!/usr/bin/env python
import os, sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)