Make sure you have python 3.10–3.12 installed; Ideally, you use python 3.12
Install Nix and direnv and run:
make
direnv allow
./manage.py migrate
nix run
nix develop # and run `./manage.py migrate` inside
nix run
If you do not want to use Nix:
python -m pip install poetry
poetry install
make # can remove for windows
poetry run python ./manage.py migrate
poetry run python ./manage.py runserver
pip install psycopg2-binary
and try again (pip or pip3 not poetry add)
reinstall poetry and run poetry install in an elevated (admin) terminal
Git installs it, so you can add git’s programs to your path
cd ./metropolis
openssl genrsa -out local_rsa_privkey.pem 4096
cp .\local_settings_sample.py .\local_settings.py
copy ./metropolis/local_settings_sample.py
to ./metropolis/local_settings.py
and read the file to change some of the values.
poetry run python ./manage.py createsuperuser
and enter the values