Skip to content

patfinder/groceries-shopping-backend2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST framework tutorial

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', ]

Program features

  • 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

Questions

  • Can products of different categories have the same name?

About

Django back-end API for the Groceries app (new)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages