From ba10b6882d43452c8cda1fd6da245e5a18686003 Mon Sep 17 00:00:00 2001 From: kaniket7209 <72839172+kaniket7209@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:07:32 +0530 Subject: [PATCH 1/5] Updated development.rst Platform issue resolved and also mentioned the steps to do the setup in windows machine. --- docs/development.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/development.rst b/docs/development.rst index 90cb623..9b50787 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -8,8 +8,15 @@ Virtual environment Create a new virtualenv:: +---If on Linux Follow below --- $ python3 -m venv venv-wger $ source venv-wger/bin/activate + +---If on Windows Follow Below --- + $ exec python -m venv venv-wger + $ source venv-wger/Scripts/activate + +Note:- For Windows Migrate to this path wger/wger/__main__.py and set pty=False in Line No.40 which for Linux should be True Get the code @@ -38,6 +45,11 @@ database and populate it with data on the first run:: $ wger create-settings $ wger bootstrap $ wger load-online-fixtures + + For migrating your database locally write the following command: + $ python manage.py migrate + $ wger load-fixtures + You can of course also use other databases such as PostgreSQL or MariaDB. Create a database and user and edit the DATABASES settings before calling bootstrap. From 04ee06191ee4e32b6fa09a0cae0c5cca725d64d5 Mon Sep 17 00:00:00 2001 From: kaniket7209 <72839172+kaniket7209@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:12:47 +0530 Subject: [PATCH 2/5] Update development.rst --- docs/development.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/development.rst b/docs/development.rst index 9b50787..507a61b 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -8,13 +8,23 @@ Virtual environment Create a new virtualenv:: ----If on Linux Follow below --- +If on Windows Follow Below: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + $ python3 -m venv venv-wger $ source venv-wger/bin/activate ---If on Windows Follow Below --- $ exec python -m venv venv-wger $ source venv-wger/Scripts/activate + +If on Windows Follow Below: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Install python requirements:: + + $ pip install -r requirements_dev.txt + $ pip install -e . Note:- For Windows Migrate to this path wger/wger/__main__.py and set pty=False in Line No.40 which for Linux should be True From 4845ee914dd92001b2448618464ec13baae49483 Mon Sep 17 00:00:00 2001 From: kaniket7209 <72839172+kaniket7209@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:16:10 +0530 Subject: [PATCH 3/5] development.rst Updated Platform issue fixed and also mentioned the complete steps for setups for both Linux and Windows --- docs/development.rst | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/development.rst b/docs/development.rst index 507a61b..284b9b3 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -8,23 +8,15 @@ Virtual environment Create a new virtualenv:: -If on Windows Follow Below: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - +For LINUX Follow below: $ python3 -m venv venv-wger $ source venv-wger/bin/activate - ----If on Windows Follow Below --- - $ exec python -m venv venv-wger - $ source venv-wger/Scripts/activate - -If on Windows Follow Below: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Install python requirements:: - $ pip install -r requirements_dev.txt - $ pip install -e . +For WINDOWS Follow below: + $ exec python -m venv venv-wger + $ source venv-wger/Scripts/activate + Note:- For Windows Migrate to this path wger/wger/__main__.py and set pty=False in Line No.40 which for Linux should be True From 59b510136b2ce93e6963cc930b1eaa30444471b1 Mon Sep 17 00:00:00 2001 From: kaniket7209 <72839172+kaniket7209@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:17:31 +0530 Subject: [PATCH 4/5] Updated development.rst Platform issue Fixed and mentioned the complete setup for both Windows and Linux --- docs/development.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/development.rst b/docs/development.rst index 284b9b3..e2e8e92 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -9,11 +9,13 @@ Virtual environment Create a new virtualenv:: For LINUX Follow below: + $ python3 -m venv venv-wger $ source venv-wger/bin/activate For WINDOWS Follow below: + $ exec python -m venv venv-wger $ source venv-wger/Scripts/activate From 27de6563b997b6753a6d913b76c8375bfb2d3831 Mon Sep 17 00:00:00 2001 From: kaniket7209 <72839172+kaniket7209@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:18:20 +0530 Subject: [PATCH 5/5] Update development.rst --- docs/development.rst | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/development.rst b/docs/development.rst index e2e8e92..f6b226a 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -8,16 +8,14 @@ Virtual environment Create a new virtualenv:: -For LINUX Follow below: + For LINUX Follow below: + $ python3 -m venv venv-wger + $ source venv-wger/bin/activate - $ python3 -m venv venv-wger - $ source venv-wger/bin/activate - -For WINDOWS Follow below: - - $ exec python -m venv venv-wger - $ source venv-wger/Scripts/activate + For WINDOWS Follow below: + $ exec python -m venv venv-wger + $ source venv-wger/Scripts/activate Note:- For Windows Migrate to this path wger/wger/__main__.py and set pty=False in Line No.40 which for Linux should be True