mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
29 lines
694 B
Markdown
29 lines
694 B
Markdown
|
# 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*
|