diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-06-21 20:14:45 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-06-21 20:14:45 +0300 |
commit | 3d12397d9a2235ab8d166512471e40dd585d3371 (patch) | |
tree | 438507ce253280b641dcd021d36c90ac09755816 /_deploy/SnowWhite | |
parent | 576e4a20f0ebb3364fda255d69b360117ecfd952 (diff) | |
download | troggle-3d12397d9a2235ab8d166512471e40dd585d3371.tar.gz troggle-3d12397d9a2235ab8d166512471e40dd585d3371.tar.bz2 troggle-3d12397d9a2235ab8d166512471e40dd585d3371.zip |
databaseReset.py fixed to use uv with manage.py
Diffstat (limited to '_deploy/SnowWhite')
-rwxr-xr-x | _deploy/SnowWhite/pre-run.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_deploy/SnowWhite/pre-run.sh b/_deploy/SnowWhite/pre-run.sh index ab13800..d5f094e 100755 --- a/_deploy/SnowWhite/pre-run.sh +++ b/_deploy/SnowWhite/pre-run.sh @@ -1,7 +1,7 @@ #! /bin/bash # Do these before final testing, *not* just before pushing: -# Need to be in an ALREADY activated venv -PYTHON="python" +# Changed to use uv not pip, requires manage.py to have uv structured uv comment in it. +PYTHON="uv run" echo "** Run inspectdb:" $PYTHON manage.py inspectdb > troggle-inspectdb.py @@ -30,7 +30,7 @@ echo "** Now running test suite" # $PYTHON manage.py test -v 1 echo "" -echo `tail -1 lines-of-python.txt` non-comment lines of python. But core/utils.py has 28,000 lines of numbers. +echo `tail -1 lines-of-python.txt` non-comment lines of python. echo `tail -1 lines-of-templates.txt` non-comment lines of HTML templates. -echo '** If you have an error running manage.py, maybe you are not in an activated venv ?'
\ No newline at end of file +echo '** If you have an error running manage.py, maybe you are not in an activated venv ? or your manage.py is not managed by uv properly ?'
\ No newline at end of file |