#Ticketplace Build Status
cd ticketplace
virtualenv env
unix:
source ./env/bin/activate
windows:
env\Scripts\activate.bat
pip install -r requirements.txt
python manage.py runserver
touch ticketplace/local_settings.py
(Filename must be exactly 'ticketplace/local_settings.py')
from ticketplace.settings import DevelopmentConfig class LocalConfig(DevelopmentConfig): """ Configuration for local. """ SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:testpassword@localhost/ticketplace' EXAMPLE_VARIABLE = 'TROLOLOLO'
DATABASE_URL : Sqlalchemy database url. This overrides SQLALCHEMY_DATABASE_URI setting from class based settings file.
DATABASE_TEST_URL : Sqlalchemy database url for testing. (e.g. make test)
export DATABASE_TEST_URL=postgres://example@localhost/example
make test