An example of Django project with basic user functionality.
Log In | Create an account | Authorized page |
---|---|---|
Password reset | Set new password | Password change |
---|---|---|
- Log in
- via username & password
- via email & password
- via email or username & password
- with a remember me checkbox (optional)
- Create an account
- Log out
- Profile activation via email
- Reset password
- Remind a username
- Resend an activation code
- Change password
- Change email
- Change profile
- Multilingual: English, French, Simplified Chinese and Spanish
If you need dynamic URLs with the language code, check out https://github.com/egorsmkv/simple-django-login-and-register-dynamic-lang
git clone https://github.com/egorsmkv/simple-django-login-and-register
cd simple-django-login-and-register
uv venv --python 3.13
source .venv/bin/activate
uv sync
# Or using requirements files:
uv pip install -r requirements.txt
# in development mode
uv pip install -r requirements-dev.txt
Configure the settings (connection to the database, connection to an SMTP server, and other options)
-
Edit
source/app/conf/development/settings.py
if you want to develop the project. -
Edit
source/app/conf/production/settings.py
if you want to run the project in production.
python source/manage.py migrate
Start the local web server:
python source/manage.py runserver
Collect static files:
python source/manage.py collectstatic
This following commands sort imports and format the code:
ruff check --select I --fix
ruff format
Format templates:
git ls-files -z -- '*.html' | xargs -0 djade --target-version '5.1'