Checkout StudLAN (https://github.com/casualgaming/studlan)
If you are using a *nix computer either virtualenv or Vagrant is good. If you are using Windows, Vagrant is the way to go.
sudo apt-get install python-setuptools
sudo apt-get install libpq-dev python-dev
sudo pip install virtualenv
|| sudo apt-get install python-virtualenv
sudo pip install virtualenvwrapper
|| sudo apt-get install virtualenvwrapper
export WORKON_HOME=~/.environments
source /usr/local/bin/virtualenvwrapper.sh
You might need to specify the python binary, and virtualenv's path might also be different. On ArchLinux I had to add the following:
export WORKON_HOME=~/.environments
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2
source /usr/bin/virtualenvwrapper.sh
source ~/.zshrc
|| source ~/.bashrc
mkvirtualenv lanweb
git clone git@github.com:kradalby/lanweb.git
cd lanweb
pip install -r requirements.txt
-
Host machine:
-
Install VirtualBox
-
Install Vagrant
-
git clone git@github.com:kradalby/lanweb.git
-
cd lanweb
-
vagrant up
-
vagrant ssh
-
Guest machine:
-
cd /vagrant
-
sudo pip install -r requirements.txt
-
python manage.py syncdb --migrate
-
python manage.py runserver 0.0.0.0:8000