Files
kennyboy55 c54553143e
Build dev docker image / build (push) Successful in 36s
Build dev docker image / release (push) Has been skipped
Add Docker workflow
2026-03-30 12:41:42 +02:00

1.7 KiB

Build

friend-event-rsvp

A personal event RSVP tool. Meant for personal home use and a single administrator. Unique feature is multiple activities per event.

Production

Make sure there are no deployment issues

python manage.py check --deploy

Collect and compress all static files:

python manage.py collectstatic --clear <-- Clear is optional

python -m blacknoise.compress static/

Run the server daphne rsvpproject.asgi:application

Development

Setup environment

Install pipenv: pip install --user pipenv

Inside the project root (friend-event-rsvp): pipenv install

Everytime you start work: pipenv shell

Check that is works by running: which python. This should return a specific python location inside your user folder.

Requirements (installed from Pipfile):

  • Django
  • Channels
  • Daphne
  • BlackNoise

Publish docker image

Build docker build -t gitea.furb.it/kennyboy55/friend-event-rsvp:dev .

How to tag: docker push gitea.furb.it/kennyboy55/friend-event-rsvp:dev

Run

Run the server during development: DEBUG=1 python manage.py runserver

This will automatically restart on changes and log to the console.

Setup database

This needs to be done every time a model chance is made:

  • Create migrations file (add to repo): python manage.py makemigrations
  • Update local database: python manage.py migrate

To add a superuser

You will be prompted for a password:

python manage.py createsuperuser --username <username> --email <email>

You can use this to login to the django admin environment: http://127.0.0.1:8000/django-admin/