Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perfecto25/cars_demo_site
django, HTMX, django-allauth
https://github.com/perfecto25/cars_demo_site
Last synced: 7 days ago
JSON representation
django, HTMX, django-allauth
- Host: GitHub
- URL: https://github.com/perfecto25/cars_demo_site
- Owner: perfecto25
- Created: 2023-10-25T14:10:44.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-31T17:35:56.000Z (about 1 year ago)
- Last Synced: 2023-10-31T18:34:51.748Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cars demo CRUD site with Django, HTMX, django-allauth
[Youtube link to tutorial](https://youtu.be/ey0jYO2amZM?si=g05MZmJIKcKFMwJ4)
## initial setup
django-admin startproject cars
cd cars
pipenv install django django-allauth loguru
pipenv shell
django-admin startapp main## generate SQLite DB
./manage.py makemigrations
./manage.py migrate
./manage.py createsuperuseropen cars/settings.py add 'main' to Installed Apps
## Models and Forms
create new Cars model and CarsForm, register car model in Admin console view
## Django AllAuth
open cars/settings.py
update AUTHENTICATION_BACKENDS, INSTALLED_APPS, MIDDLEWARE, AllAuth config settings
makemigrations, migrate
to customize AllAuth pages (login, logout, reset password, etc)
copy page from site-packages directory to your templates/account directory
cp /path/to/allauth/site-package/templates/account/logout.html main/templates/account/