From 9e18a4fdf7c3028ec773e792410dd1826839a591 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Wed, 24 Mar 2021 16:48:57 +0100 Subject: [PATCH 1/2] 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" From 8e2ab5c5ea290d0b84c7dad8bf996a4e4bfd5487 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Wed, 24 Mar 2021 17:22:01 +0100 Subject: [PATCH 2/2] Replace deprecated tslint rules --- frontend/tslint.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/tslint.json b/frontend/tslint.json index d8d3956..6b5562c 100644 --- a/frontend/tslint.json +++ b/frontend/tslint.json @@ -72,7 +72,6 @@ "no-trailing-whitespace": true, "no-unnecessary-initializer": true, "no-unused-expression": true, - "no-use-before-declare": true, "no-var-keyword": true, "object-literal-sort-keys": false, "one-line": [ @@ -129,12 +128,12 @@ "kebab-case" ], "no-output-on-prefix": true, - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, + "no-inputs-metadata-property": true, + "no-outputs-metadata-property": true, + "no-host-metadata-property": true, "no-input-rename": true, "no-output-rename": true, - "use-life-cycle-interface": true, + "use-lifecycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, "directive-class-suffix": true