Source: https://github.com/wsvincent/rest-framework-tutorial
Source code for Official Django REST Framework Tutorial - A Beginners Guide.
Uses Django 4.1 and Django REST Framework 3.14.
How can I enable CORS on Django REST Framework
- python -m pip install django-cors-headers
INSTALLED_APPS = ( ... 'corsheaders', ... ) MIDDLEWARE = [ ..., 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', ..., ] CORS_ALLOWED_ORIGINS = [ 'http://localhost:3030', ]
- Show products list so that user can choose to add to wish-list
- When user prepare to go shopping
She open price estimator to see how much it costs her for a specified shopping list
This help her to choose the market to go with lowest cost.
- User can choose to go to more than more one market.
- App can notity user
CREATE DATABASE groceries;
python manage.py migrate
python manage.py runserver
- Can products of different categories have the same name?