This is a rewrite of http://vietcong1.eu into a Django-powered project. Originally, only server fetching mechanism was written in Python, the rest of back-end being PHP/Nette.
Needed: Python 3
git clone https://github.com/garncarz/vietcong1.eu.git
virtualenv3 virtualenv
- Make sure
virtualenv/bin
is inPATH
. cd vietcong1.eu
pip install -r requirements.txt
- Create
vietcong/settings/local.py
, it should begin withfrom .base import *
, settings override and specifications should follow. Or you can justfrom .development import *
if you're developing.
Run:
$ cd front_end
$ npm install
$ node_modules/.bin/bower install
$ node_modules/.bin/grunt
Needed:
./manage.py migrate
for synchronizing the database schema../manage.py compilemessages
for compiling translations (gettext needed).
Run:
./manage.py runserver
when developing.
./manage.py demo
fills DB with randomly generated content.
./manage.py test
With coverage: coverage run --source='.' ./manage.py test
, then coverage report
or coverage html
.