This is a working Django project with a fully working set of AllAuth pages.
It features single homepage with a menu bar with the links that show on the index.html.
- Python 3.13
- Django 5.2
- Django AllAuth 65.7
- Django Bootstrap 5
Once you've cloned the repo into your own project folder
- create a virtual env as .venv
- activate it
- install the required packages
- make and migrate the database
- create a superuser
- rename ".env update and rename to .env" to .env
- generate a secret key
- edit the .env file and put the secret key in and the email server details if required
- start the site. Run in vscode rather than from the shell with python manage.py runserver 0.0.0.0:8000. It works because of this, https://code.visualstudio.com/docs/python/environments, "The extension also loads an environment variable definitions file identified by the python.envFile setting. The default value of this setting is ${workspaceFolder}/.env."
- test the site
- make it yours
My preferred Powershell commands for the above, run from the base project folder.
python -m venv .venv
.venv\Scripts\activate
python.exe -m pip install --upgrade pip
pip install -r requirements.txt
cp '.env update and rename to .env' .env
python -c "import secrets; print(secrets.token_urlsafe())"
Then edit the .env file and add the secret key output above, then run from vsCode.
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
Then over to you.
- Updated to use Python 3.13, Django 5.2, Django AllAuth 65.7 & Bootstrap 5
- Removed AbstractUser model in favour of using a linked profile model. See Carlton Gibson's article for details.
- Simplify base.html