설명 없음

MrOzOn f6699a46cb Update README.md 4 년 전
apps 70ecb0f454 fix model for indicators 5 년 전
healthdiarybackend c4474c548a edit model indicatorType - add field url for svg icon 5 년 전
static c4474c548a edit model indicatorType - add field url for svg icon 5 년 전
.gitignore f0cc14682f initial commit - empty project with used dependencies 5 년 전
README.md f6699a46cb Update README.md 4 년 전
manage.py f0cc14682f initial commit - empty project with used dependencies 5 년 전
requirements.txt b2d0f3d4e2 add filter 5 년 전

README.md

HealthDiaryBackend

Simple and small backend for my another project - Android application HealthDiary.
Using Django, DjangoRestfulFramework, simple token-based HTTP Authentication scheme.

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 python manage.py runserver 0.0.0.0:8000

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