@@ -52,51 +52,57 @@ e.g. (inside your virtualenv or whatever)
5252
5353Prepare the database (assuming you've got required database)
5454
55- python manage.py migrate cbv
55+ uv run manage.py migrate cbv
5656
5757Populate the database with fixtures, either all at once:
5858
59- python manage.py load_all_django_versions
59+ uv run manage.py load_all_django_versions
6060
6161or one at a time, for example:
6262
63- python manage.py loaddata cbv/fixtures/1.8.json
64- python manage.py loaddata cbv/fixtures/1.9.json
63+ uv run manage.py loaddata cbv/fixtures/1.8.json
64+ uv run manage.py loaddata cbv/fixtures/1.9.json
6565
6666Collect static files (CSS & JS)
6767
68- python manage.py collectstatic
68+ uv run manage.py collectstatic
6969
7070Run server and play around
7171
72- python manage.py runserver
72+ uv run manage.py runserver
7373
7474If you hope to contribute any code, please install ` pre-commit ` before committing.
7575
7676 pre-commit install
7777
7878
7979## Updating Requirements
80- Add or remove the dependency from either ` requirements.prod.in ` or ` requirements.dev.in ` as appropriate.
80+ Add a dependency with:
8181
82- Run ` make compile ` and appropriate txt file will be updated.
82+ uv add [--dev] <dependency>
83+
84+ Remove a dependency with:
85+
86+ uv remove [--dev] <dependency>
87+
88+ Update a single dependency with:
89+
90+ uv add [--dev] --upgrade-package <dependency>
8391
8492
8593## Updating for New Versions of Django
8694
8795The procedure for updating for a new version of Django is as simple as:
8896
89- 1 . Update the ` requirements.in ` file to pin the required version of Django;
90- 2 . Use ` pip-compile ` to freshen requirements for the new version of Django;
91- 3 . Use ` pip-sync ` to update your virtual environment to match the newly compiled
92- ` requirements.txt ` file;
93- 4 . Update the project's code to run under the target version of Django, as
97+ 1 . Update Django with ` uv add --upgrade-package django<N ` , replacing ` N ` with
98+ the version ** after** the one you are updating to
99+ 1 . Update the project's code to run under the target version of Django, as
94100 necessary;
95- 5 . Use ` python manage.py populate_cbv` to introspect the running Django
101+ 1 . Use ` uv run manage.py populate_cbv` to introspect the running Django
96102 and populate the required objects in the database;
97- 6 . Use ` python manage.py fetch_docs_urls` to update the records in the
103+ 1 . Use ` uv run manage.py fetch_docs_urls` to update the records in the
98104 database with the latest links to the Django documentation;
99- 7 . Export the new Django version into a fixture with: ` python manage.py cbv_dumpversion x.xx > cbv/fixtures/x.xx.json` ;
105+ 1 . Export the new Django version into a fixture with: ` uv run manage.py cbv_dumpversion x.xx > cbv/fixtures/x.xx.json` ;
100106
101107
102108## Testing
0 commit comments