From 9e18a4fdf7c3028ec773e792410dd1826839a591 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Wed, 24 Mar 2021 16:48:57 +0100 Subject: [PATCH] Add explanation for venv --- backend/README.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/backend/README.md b/backend/README.md index b2b13b3..fbf95aa 100644 --- a/backend/README.md +++ b/backend/README.md @@ -1,19 +1,25 @@ # Wep Application Engineering & Content Management Django Backend ## Tips -* use Jetbrains Pycharm IDE -* create and use a virtual environment +* Use Jetbrains Pycharm IDE +* Create and use a virtual environment with +```bash +$ python -m venv venv +$ source venv/bin/activate +``` ## Setup - $ cd ./app_be +```bash +$ cd ./app_be - $ pip install -r requirements.txt +$ pip install -r requirements.txt - $ python manage.py makemigrations - $ python manage.py migrate - $ python manage.py createsuperuser +$ python manage.py makemigrations +$ python manage.py migrate +$ python manage.py createsuperuser - $ python mangge.py runserver +$ python manage.py runserver +``` ## ERROR handling Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"