Skip to content

Developer Howtos

Viewing logs

To view the logs when running the app locally, run:

docker-compose logs -f

Creating Migration Files

make manage makemigrations

Running Migrations

make manage migrate

Emails in local env

The docker compose development environment includes a maildev instance for previewing emails locally.

It is accessible at http://localhost:1080 and will show all emails sent by the application.

Set up your Account as a Staff user

  1. Go to http://localhost:8000/accounts/login/
  2. Go to the "Sign up" link
  3. Fill in the email address, username, and password.
  4. Upon signing up, the confirmation email will be available at http://localhost:1080/. Enter this code on the sign up form.
  5. Your account is now verified.
  6. On the terminal, go to Django shell:
make manage shell
  1. Set your account as a staff and superuser:
from django.contrib.auth.models import User
user = User.objects.get(username='your_username') #use the username you created above
user.is_staff = True
user.is_superuser = True
user.save()
  1. You can now access the /admin page.