Make sure you have python 3.12 installed
python -m pip install poetry # try python3 or python3.12 if "python" not found
poetry install --with dev
# if linux
make
# if windows or if above doesn't work
openssl genrsa -out metropolis/local_rsa_privkey.pem 4096
cp metropolis/local_settings_sample.py metropolis/local_settings.py
Set up precommit
pre-commit install
Start the development server
poetry run python ./manage.py migrate
poetry run python ./manage.py createsuperuser # create admin user (see section "Creating your account")
poetry run python ./manage.py runserver
Install Nix and direnv and run:
make
direnv allow
./manage.py migrate
nix run
nix develop # and run `./manage.py migrate` inside
nix run
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
Add git’s path (defualt: C:\Program Files\Git\usr\bin) to your user path Since OpenSSL isn’t installed, make probably isn’t so below are the steps to bypass make
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 (username, a fake email, password)