mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 02:46:28 +00:00
694 B
694 B
Set up
Django development environment
Install Python and pip
sudo apt install python3 python3 pip
Install virtual environments
pip install virtualenvwrapper
Add to .bashrc
export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export VIRTUALENVWRAPPER_VIRTUALENV_ARGS=' -p /usr/bin/python3 ' export PROJECT_HOME=$HOME/Devel source /usr/local/bin/virtualenvwrapper.sh
Reload startup file
source ~/.bashrc
Create virtual environment
mkvirtualenv robosats_env
Activate environment
workon robosats_env
Install Django and Restframework
pip3 install django djangorestframework
Django 4.0 at the time of writting