Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (17 loc) · 694 Bytes

DEVELOPMENT.rst

File metadata and controls

21 lines (17 loc) · 694 Bytes

Setup for development

Run:

$ virtualenv .virtualenv --python=python3
$ source .virtualenv/bin/activate
$ pip install -r requirements.txt
$ npm install
$ node_modules/.bin/bower install
$ python manage.py migrate
$ python manage.py createsuperuser
$ sed -i 's/DEBUG = False/DEBUG = True/' esg_leipzig_homepage_2015_deployment/settings.py
$ python manage.py runserver

Later run:

$ pip install flake8 isort
$ flake8 --exclude="*/migrations/" manage.py esg_leipzig_homepage_2015 esg_leipzig_newsletter_2015
$ isort --multi_line 3 --check-only --recursive manage.py esg_leipzig_homepage_2015 esg_leipzig_newsletter_2015