A test project for local Django development, originally by @MHLut.
This project is not suitable for production purposes!
This is a development project for Django, the web framework for perfectionists with deadlines.
Follows the guidelines as described in A simple approach to running Django Core locally.
Warning: These instructions are crude and not a tutorial: I assume you already know how to use the tools described.
- Technical knowledge of Git, GitHub, Python, Django, etc.
- Django fork per Writing your first contribution for Django.
- gettext.
- just (optional).
- pre-commit (optional; for development only).
- Pick a directory in which to store the Django core and test projects side-by-side.
- Clone your fork of Django core; the directory name should be
django. - Clone the Django local test project.
- Navigate to the local test project directory.
- Copy the
.envfile from.env.example; adjust.envwhere needed. - Reload (source) the environment variables from
.env. - Create a virtual environment and activate it.
- Install the dependencies from
requirements.txt.
The commands are something like this:
git clone <fork>
git clone git@github.com:MHLut/django-local-test.git
cd django-local-test
cp .env.example .env
source .env
python3 -m venv venv
pip install -r requirements.txtNote: If you want to use the project in a language other than the default one, run the compilemessages command first per Localization.
The app supports translations through Django's built-in internationalization and localization tools.
Translation files live in src/locale.
To update the translation files, use makemessages:
src/manage.py makemessages --no-wrap --no-obsolete --ignore venv --allNote: Replace --all with --locale and a language code if you only want to update one language.
After editing, recompile the binary files using compilemessages:
src/manage.py compilemessages --ignore venvAlternatively, you can use a translation tool like Poedit, which automatically compiles the binary files.
Note: The project does not store the compiled messages in the code repository, meaning you must use compilemessages to generate them on first use.
- Forum.
- Trac, Django's bug tracker.
- Codebase.
- Django Commons.
- Django Class-Based-View Inspector.
- Djangonaut Space.