-
API ROOT
http://127.0.0.1:8000/
-
All categories
http://127.0.0.1:8000/categories/
-
Simple index page
http://127.0.0.1:8000/index/
-
Creating categories
-
With API request:
- Headers:
Key: Content-Type Value: application/json
-
POST http://127.0.0.1:8000/categories/
Body:
{ "name": "category name", "description": "description", "image": null, "parent": null, "similar_categories": [] }
-
With Django admin panel:
-
Creating a Superuser (Admin User):
python manage.py createsuperuser
-
login: http://127.0.0.1:8000/admin/
-
-
-
Populate Django DB Script
run: python caller.py
-
Finds the longest rabbit hole
run: python search_rabbit_hole.py
-
Finds all rabbit islands
run: python search_rabbit_islands.py
-
PostgreSQL database used
DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": '', "USER": '', "PASSWORD": '', "HOST": "localhost", "PORT": "5432", } }