Brak opisu

MrOzOn c3c922dc12 change model User 5 lat temu
apps c3c922dc12 change model User 5 lat temu
healthdiarybackend b2d0f3d4e2 add filter 5 lat temu
.gitignore f0cc14682f initial commit - empty project with used dependencies 5 lat temu
README.md c3c922dc12 change model User 5 lat temu
manage.py f0cc14682f initial commit - empty project with used dependencies 5 lat temu
requirements.txt b2d0f3d4e2 add filter 5 lat temu

README.md

HealthDiaryBackend

Setup requirement pip install -r requirements.txt

Show install packages pip list

Initial

  1. Set up a new project with a single application django-admin startproject <PROJECT_NAME> .
  2. Change into settings.py - add DRF, settings and locales
  3. Now sync your database for the first time python manage.py migrate
  4. Create admin user python manage.py createsuperuser --email admin@example.com --username admin
  5. Run project ``

Current actions

  1. Add directory apps for project mkdir ./apps
  2. Add new app for projects mkdir ./apps/user django-admin startapp user ./apps/user
  3. Create migration python manage.py makemigrations python manage.py migrate
  4. Create fixtures data python manage.py dumpdata --format=json indicatortype.IndicatorType > ./apps/indicatortype/fixtures/initial_indicatortype.json
  5. Load fixtures data python manage.py loaddata --format=json indicatortype.IndicatorType

pip install gunicorn gunicorn --bind 0.0.0.0 healthdiarybackend.wsgi