You might still find some interesting code there (especially regarding a NAMI-Verbindung).
- Make sure you have Python 3.7+ and pipenv installed
git clone https://github.com/packmas13/registration.git
cd registration
make dev
The first time, it will prompt you to create a backend user (you can create other users later with make superuser
).
Finally, the Django server should be running and accessible under http://localhost:8000/.
git pull
make install
in case of new dependenciesmake migrate
in case of new migrationsmake compilemessages
in case of new translated messagesmake dev
Run make install-dev
if you plan to write some code (installs the linter).
Run make lint
to format your files using black.
After changing models run make migrations
to generate the migrations files and make migrate
.
After changing translated text run make messages
to update the localization files (.po
), update the translations and run make compilemessages
.
Emails are sent to stdout instead of a SMTP server when run in debug mode.
To add a dependency, run pipenv install [dependency]
(add the --dev
flag for dev-only dependencies).
There is a custom management command to import a batch of users and scout troops and associate users with their respective troops:
python3 manage.py create_users <file.csv> [--send-emails]
Have a look at registration/test.csv
for the structure of the file.
Tailwindcss "utility-framework" is used for the styling.