-
Notifications
You must be signed in to change notification settings - Fork 7
Setting Up Your Development Environment
mperice edited this page Nov 13, 2015
·
1 revision
- python = 2.7.x
- pip
- virtualenv/wrapper (optional)
Create a virtual python environment for the project. If you're not using virtualenv or virtualenvwrapper you may skip this step.
mkvirtualenv --no-site-packages textflows-env
virtualenv --no-site-packages textflows-env
cd textflows-env
source bin/activate
Obtain the url to your git repository.
git clone [email protected]:xflows/textflows.git
cd textflows
pip install -r requirements.txt
cp mothra/__local_settings.py mothra/local_settings.py
nano mothra/local_settings.py
NOTE: when asked to create a superuser, answer 'no'. You will do that a little later.
python manage.py syncdb
python manage.py migrate
python manage.py createsuperuser
python manage.py import_all
python manage.py runserver
python manage.py runserver_plus
Open browser to http://127.0.0.1:8000
Everytime you pull a new version from the repository, you must run in order to import new packages.
python manage.py import_all