- If the
prologin/settings/conf.example.py
file changed upstream, you may need to adapt your local settings consequently. - Don't put any file in
prologin/static/
. All the static files must be located in their application's static folder (eg:prologin/team/static/team/
). If you uses the internal web server everything will work just fine. On production servers, usecollectstatic
(see above). - Namespace template files. When writing the
index.html
template for thefoo
app, store it inprologin/foo/templates/foo/index.html
(note thefoo
subfolder). - Always check your ORM queries for queries-in-a-loop. Use the Debug Toolbar at this end. Rule of thumb: if the number of queries depends on the number of displayed/processed items in your template/view, you are doing it wrong. Check Django database optimization for more tips.
- Please try to be PEP8 compliant. There are many tools to check and format your code.
You can regenerate some of the assets committed in the repository, if for instance you changed the source files or the asset generation process.
Generating the assets require additional dependencies.
For Debian/Ubuntu:
sudo apt install inkscape optipng
For Archlinux:
sudo pacman -S inkscape optipng
Once you have the required image processing dependencies, you can force a regeneration of all the assets using:
make -B assets
You can then git add
the modified files that you want to update in the
repository.
You can also generate the assets using docker instead.
./docker_assets_builder.sh