To get started, follow these steps:
- Install Python 3.9+ and poetry.
- Clone this repository.
- Run
poetry installto install all dependencies into the virtual environment. - Run
poetry run pre-commit installto install the pre-commit hooks. - Run
poetry shellto enter the virtual environment. - Run
cd websiteto navigate to the folder containingmanage.py. - Run
export DJANGO_SETTINGS_MODULE=website.settings.developmentto use the development settings. - Run
python ./manage.py migrateto initialize the database. - If you want to add the mock assets, run
python ./manage.py loaddata assets. - Run
python ./manage.py runserverto start the local testing server.
To test Landolfio, follow these steps:
- Run
poetry shellto enter the virtual environment. - Run
cd websiteto navigate to the folder containingmanage.py. - Run
python ./manage.py test --settings=website.settings.development