To use this template you should have Python 3.13 installed on your system and uv package to be installed. To install uv run the following command:
pip install uv-
Create a new repository using the
Use this templatebutton in this repository. -
Next clone the repository into your local system.
-
Copy the
.env.examplefile and paste it in the same directory and rename it as.env. -
And create a database if your site uses database and set the following env variables:
DB_ENGINE- databese engine you are using.DB_HOST- IP address where the databse hosted.DB_PORT- Port to connect the database server.DB_NAME- Name of the database you are using.DB_USER- Username of the database you are using.DB_PASSWORD- Password of the databse. -
Then run the following commands:
uv sync
This will install the default dependencies of the project.
If you want to install a specific group of dependencies use
uv sync --group=group_name
And if you want to install dependencies from all groups use
uv sync --all-groups
And after that you have to set the secret key using the below command
uv run set_secret_key
Now you can run all the commands prefix with uv like
uv run manage.py <command>instead of
python manage.py <command>And you are good to go.