Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 954 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 954 Bytes

Installing

Dependencies

  • Python 3.5
  • pip

Installing dependencies

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install ruby
sudo gem install sass
sudo apt-get install python3.5 python3.5-dev
sudo apt-get install python3-pip

Setting up a virtualenv

Virtualenv is not required (but it's better to use it)
sudo pip3 install virtualenv
mkdir ~/.virtualenvs/
virtualenv ~/.virtualenvs/web.refugee.info -p <path>/python3.5

Configuring App

source ~/.virtualenvs/web.refugee.info/bin/activate      # if you installed
pip install -r requirements.txt
cp root/localsettings.example.py root/localsettings.py

Setting up your django environment

./manage.py runserver

Code style

source ~/.virtualenvs/web.refugee.info/bin/activate      # if you installed
pip install flake8
git diff origin/master | flake8 --diff