Front-End : (https://github.com/safia88/drf_shoestore_frontend)
python manage.py makemigrations api
python manage.py migrate
python manage.py bootstrap_data
python manage.py createsuperuser
pythom manage.py runserver
http://127.0.0.1:8000/api/shoe/ http://127.0.0.1:8000/api/shoe_type/ http://127.0.0.1:8000/api/shoe_color/ http://127.0.0.1:8000/api/manufacturer/
Django REST framework and a fresh Django server to create an API as a potential demo for a shoe store with the following models, broken out for standardization:
name: str
website: url
style: str
color_name: str
(ROYGBIV + white / black) --> hint: https://docs.djangoproject.com/en/3.0/ref/models/fields/#choices (Links to an external site.)Links to an external site.
size: int
brand name: str
manufacturer: FK (Foreign Key)
color: FK
material: str
shoe_type: FK
fasten_type: str
Use the documentation on creating a custom management command (Links to an external site.)Links to an external site. to add a bootstrap_data
command for manage.py. This command should do the following things:
sneaker
boot
sandal
dress
other
Red
Orange
Yellow
Green
Blue
Indigo
Violet
White
Black