fc4930a49e
Event-based urls - Add viewset mixin 'EventUrlViewSetMixin' to get the event from the 'event_pk' url kwarg of a view. - Add url serializer fields for object which can be accessed with a root-level and/or event-specific url ('EventHyperlinked*Field). Update viewsets and serializers to use these + clean inheritance viewsets. |
||
---|---|---|
api | ||
communication | ||
equipment | ||
evenementiel | ||
event | ||
provisioning | ||
shared | ||
users | ||
.gitignore | ||
manage.py | ||
README.md | ||
requirements-devel.txt | ||
requirements.txt | ||
Vagrantfile |
Gestion Événementiel
Vagrant
Production-like environment
Our Vagrant setup provides two ways of running GestionEvenementiel:
-
You can run the usual development server with:
python manage.py runserver 0.0.0.0:8000
Please note that we specify the interface
0.0.0.0
to make the server reachable outside the VM at addresslocalhost:8000
-
A second instance, more similar to the production environment, runs with Daphne and nginx in the VM. It runs permanently by default but is not reloaded when you update the code. To restart this server, type:
python manage.py collectstatic --noinput sudo systemctl restart daphne.service worker.service
To query this instance from the host, you have to use the address
localhost:8080
. It is a good practice to ensure that this instance works before submitting a merge request (although it might break sometimes).