first active your virtual environment,
then run:
source start.sh
it is obvious that you'll need Docker
on your system.
execute this command:
docker-compose up
by default, swagger uses staticfiles for directions of static.Go to site packages and replaces {%staticfiles%} by {%static%} in the templates directory;index.html.
API Usage:
/schema
api/status
/api/hero/<primary_key>
/api/hero/?name=''
/api/hero/all
/api/hero/search/?q=''
/api/hero/submit
/api/hero/delete
/api/world//?world_name=''
/api/world/all
/api/auth/login
/api/auth/logout
/api/product/
Making Query
>>> cotumeproducts = Product.objects.filter(sub_category__name="suit's")
>>> cotumeproducts
<QuerySet [<Product: batman's gloves - 4456987>, <Product: Spiderman's mask - 3365479>]>
>>> for name in cotumeproducts:
... print(name.name)
...
batman's gloves
Spiderman's mask
-
: Dispaly category and sub-category 's name instead of id's
-
: Think more about category and sub-category 's Logic
-
: Auto generate barcode