-
Notifications
You must be signed in to change notification settings - Fork 243
Setup
robi-y edited this page Sep 29, 2014
·
24 revisions
- Install pip: sudo easy_install pip setuptools
- Install mysql connector source instructions
- This script might help too, and also installing full django stack
- git clone ...
- dependencies: pip install -r requirements.txt
- sudo pip install virtualenvwrapper
- source /usr/local/bin/virtualenvwrapper.sh (add to ~/.bash_profile | ./bashrc (for Linux))
- mkvirtualenv anyway
- pip install -r requirements.txt
- workon anyway (each time you start working)
- Install Python 2.7
- Install setuptools & pip(package manager) and update PATH to python and python/scripts directories (e.g. PATH=%PATH%;C:\Python27\Scripts)
- Install mysql connector binaries
- Install VC2008 Express (alt: mingw)
- git clone anyway from github (first install git, e.g. by installing github for windows)
- cmd to the anyway directory (e.g.> cd C:\Users\Admin\Documents\PycharmProjects\anyway).
- run:> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
- run:> pip install -r requirements.txt
- Define connection string:
- bash: export CLEARDB_DATABASE_URL='sqlite:///local.db'
- windows shell: set CLEARDB_DATABASE_URL="sqlite:///local.db"
- First time, create tables: python models.py
- Populate the data (markers etc.) - python process.py
- run app: python main.py (or:
foreman start
if you installed heroku toolbelt) - Browse: http://127.0.0.1:5000
We currently use PyCharm for development (or not :)