Starter code for your Django projects
- Django 5.0.2
- Install via Pip
- User log in/out, sign up, password reset via django-allauth
- Static files configured with Whitenoise
- Debugging with django-debug-toolbar
- Custom 404, 500, and 403 error pages
DJSTARTER can be installed via Pip. To start, clone the repo to your local computer and change into the proper directory.
$ python -m venv .venv
$ source .venv/bin/activate
(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000
$ cd react
$ npm install
$ npm start
# Load the react compoents at http://localhost:8080/bundle.js
$ cd react
$ npm run build
# the generated bundle is in /static/js/bundle.js
- Add environment variables. There are multiple packages, but I personally prefer Python Decouple.
- Update the EMAIL_BACKEND and connect with a mail provider.