-
Notifications
You must be signed in to change notification settings - Fork 24
Setting up your dev environment
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 onlineweb4
git clone [email protected]:dotKom/onlineweb4.git
cd onlineweb4
pip install -r requirements.txt
pip install nodeenv
Install node using nodeenv
nodeenv -v -p
-v
: Verbose, so you see stuff is happening. -p
: Install inside activated virtualenv.
Reactivate your virtualenv
Install django-compressor's node modules
npm install -g less
Install node-js via your package manager (typically named nodejs
)
Install the node module less
via npm
npm install -g less
nosetests tests/