diff --git a/docs/development.rst b/docs/development.rst index 90cb623..f6b226a 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -8,8 +8,17 @@ Virtual environment Create a new virtualenv:: - $ python3 -m venv venv-wger - $ source venv-wger/bin/activate + 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 + + +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 +47,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.