poetry init
poetry shell
poetry add django fastapi pydantic pydantic_settings uvloop httptools uvicorn
django-admin startproject server .
python manage.py startapp users
- Build custom user in users.models
- Set new user in settings.py
python manage.py makemigrations users
python manage.py migrate
- Build custom forms for CustomUser for admin panel in users app
- Register User changes in admin.py
- Create a superuser:
python manage.py createsuperuser
- Visit: http://127.0.0.1:8000/admin/ and log in.
- Did you accidently commit file(s) you didn't intend to commit?
Add them to the .gitignore
file and then:
$ git rm -r --cached .
$ git add .
$ git commit -m "Clean up ignored files"