curl -sSL https://install.python-poetry.org | python3 -
poetry install
cd weatheragg
poetry run python ./manage.py migrate
poetry run python ./manage.py runserver
In django we use models classes as a database interface, if you change the model you need to update the database using migrations:
cd weatheragg
poetry run python ./manage.py makemigrations
poetry run python ./manage.py migrate
useful documentation: Django: https://docs.djangoproject.com/en/4.2/ Django-ninja: https://django-ninja.rest-framework.com/