sudo apt update && apt upgrade -y
Use Python 3.13.2pip install --upgrade pip
pip install -r requirements.txtThis is to create the database schema. Migrate will apply the changes to the database.
python manage.py makemigrations
python manage.py migrateThis is to access the admin panel
python manage.py createsuperuserThis is to store the environment variables
cp .env_example .envpython manage.py backup_dbServer will be running on http://localhost:8000 with the following command
python manage.py runserver 0.0.0.0:8000gunicorn --bind 0.0.0.0:8000 --workers 4 --timeout 120 --access-logfile - --error-logfile - flora_admin.wsgi:applicationpython manage.py inspectdb > [APP_NAME]/models.pypython manage.py dumpdata --exclude auth.permission --exclude contenttypes --exclude sessions --exclude admin --output dump_flora_[DATE].JSONpython manage.py dumpdata myapp.Familia
python manage.py loaddata myapp.json --include='myapp.Familia'python manage.py loaddata data.json