django-framework¶
The Django extension streamlines the process of building Django application rocks.
It facilitates the installation of Django application dependencies, including
Gunicorn, inside the rock. Additionally, it transfers your project files to
/django/app
within the rock.
A statsd-exporter is installed alongside the Gunicorn server to export Gunicorn server metrics.
Note
The Django extension is compatible with the bare
, ubuntu@22.04
and ubuntu@24.04
bases.
Project requirements¶
There are 2 requirements to be able to use the django-framework
extension:
There must be a
requirements.txt
file in the root directory of the project withDjango
declared as a dependency.The project must be named the same as the
name
inrockcraft.yaml
with any-
replaced by_
, i.e., themanage.py
must be located at./<Rock name with - replaced by _>/<Rock name with - replaced by _>/manage.py
relative to therockcraft.yaml
file.