Files
web2.0-backend/windows_install.md
T
2019-05-27 23:38:54 +03:00

1.3 KiB

Windows installation instructions

Install dependencies

Install python3

Visit The python website to install the latest version of python3.

Make sure to add the python binary directory to PATH. For instructions how to do this, refer to this Stackoverflow answer.

Install virtualenv with pip

Run the following command to install virtualenv.

python -m pip install virtualenv

Setup a virtual python environment.

python -m virtualenv ../virtualenv.sikweb

Activate virtualenv and install requirements

Activate virtualenv (note that this has to be active at all times).

source ../virtualenv.sikweb/Scripts/activate

Run the following command to install python packages.

pip install -r requirements.txt

Run migrations

Run

python manage.py migrate

Install npm for linting javascript

Follow the instructions on the npm website.

Set up database

By default Django uses SQLite, which doesn't need any configuration. If you need PostgreSQL instead, refer to their website.

Done