diff --git a/README b/README index 469b03aa3..408845856 100644 --- a/README +++ b/README @@ -56,11 +56,11 @@ privileges like this: # Initialize the database migrations:: - authentic2-ctl syncdb --migrate + manage.py syncdb --migrate # Run the HTTP test server:: - authentic2-ctl runserver + manage.py runserver Upgrade ======= diff --git a/check-migrations.sh b/check-migrations.sh index 1bb1398e8..2e4dcae91 100755 --- a/check-migrations.sh +++ b/check-migrations.sh @@ -16,7 +16,7 @@ APPS=$(env DJANGO_SETTINGS_MODULE=authentic2.settings python -c 'from django.con TEMPFILE=`mktemp` trap "rm -f ${TEMPFILE} ${CHECK_MIGRATIONS_SETTINGS}" EXIT -AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS} ./authentic2-ctl makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true +AUTHENTIC2_SETTINGS_FILE=${CHECK_MIGRATIONS_SETTINGS} ./manage.py makemigrations --dry-run --noinput ${APPS} >${TEMPFILE} 2>&1 || true if ! grep 'No changes detected' -q ${TEMPFILE}; then echo '!!! Missing migration detected !!!' diff --git a/debian/rules b/debian/rules index a58152a95..c6543ee4e 100755 --- a/debian/rules +++ b/debian/rules @@ -8,4 +8,4 @@ export PYBUILD_DISABLE=test override_dh_install: dh_install - mv $(CURDIR)/debian/python3-authentic2/usr/bin/authentic2-ctl $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py + mv $(CURDIR)/debian/python3-authentic2/usr/bin/manage.py $(CURDIR)/debian/python3-authentic2/usr/lib/authentic2/manage.py diff --git a/authentic2-ctl b/manage.py similarity index 100% rename from authentic2-ctl rename to manage.py diff --git a/setup.py b/setup.py index 6ec7070c8..b27f07c3c 100755 --- a/setup.py +++ b/setup.py @@ -155,7 +155,7 @@ setup( author_email="authentic@listes.entrouvert.com", maintainer="Benjamin Dauvergne", maintainer_email="bdauvergne@entrouvert.com", - scripts=('authentic2-ctl',), + scripts=('manage.py',), packages=find_packages('src'), package_dir={ '': 'src', diff --git a/tox.ini b/tox.ini index 6ed0af8fc..73333cf02 100644 --- a/tox.ini +++ b/tox.ini @@ -146,7 +146,7 @@ deps = ipdb commands = ./getlasso3.sh - ./authentic2-ctl {posargs:--help} + ./manage.py {posargs:--help} [testenv:update-locales] @@ -157,8 +157,8 @@ deps = psycopg2-binary<2.9 commands = ./getlasso3.sh - ./authentic2-ctl makemessages -l fr - ./authentic2-ctl compilemessages + ./manage.py makemessages -l fr + ./manage.py compilemessages [testenv:code-style]