Нет описания

MrOzOn d85b504f6f add get for indicatortype 5 лет назад
apps d85b504f6f add get for indicatortype 5 лет назад
healthdiarybackend d85b504f6f add get for indicatortype 5 лет назад
.gitignore f0cc14682f initial commit - empty project with used dependencies 5 лет назад
README.md d85b504f6f add get for indicatortype 5 лет назад
manage.py f0cc14682f initial commit - empty project with used dependencies 5 лет назад
requirements.txt 399d723649 add CRUD for patient 5 лет назад

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