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
- Go to http://localhost:8000/accounts/login/
- Go to the "Sign up" link
- Fill in the email address, username, and password.
- Upon signing up, the confirmation email will be available at http://localhost:1080/. Enter this code on the sign up form.
- Your account is now verified.
- On the terminal, go to Django shell:
make manage shell
- 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()
- You can now access the /admin page.