π» API Progress Check-In π»
Posted on Dec 16th, 2021
ποΈ Todayβs Topics
- How are the projects coming along? π
π― Project
Keep on going. πͺ π
We will use class time today to get you past any blockers you may be experiencing and to talk through next steps.
By now you should have provided your front end with a way to log in and log out, and endpoints to see data. By tomorrow you should have the ability to POST data.
π Read | πΊ Watch | π§ Listen
On Monday weβll be covering full-text search in your API, but if you have time you can check these resources out in advance.
- π Basic and Full-Text Search with Django and Postgres
- π If you want A LOT more detail about full-text search in Postgres and Django, this blog piece has you covered
- π Blog post with more on full-text search
- Search from the Ground Up -> DjangoCon 2019 video explaining search in detail
π Resources
Make sure you are sharing this information with your front end as well. You can include it in a project README.
- Base Endpoint Guide for Djoser -> includes create a new user and other nice stuff
- Token Authentication Endpoint Guide for Djoser -> details on the token auth endpoints
Creating a properly hashed password
In order to properly save a hashed password when you create a new user in the Django Admin, make sure you are using UserAdmin
in admin.py
:
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
...
admin.site.register(User, UserAdmin)