From b70d315298aae8e20ea0a0386238c7257f138ea4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 11 Dec 2012 18:15:36 +0100 Subject: [PATCH] notes on createsuperuser --- devel/run-locally.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/devel/run-locally.txt b/devel/run-locally.txt index 86ff0d24..ce98fcd6 100644 --- a/devel/run-locally.txt +++ b/devel/run-locally.txt @@ -24,3 +24,15 @@ https://docs.djangoproject.com/en/dev/ref/django-admin/#createsuperuser how it seems easily possible to have 'make syncdb', or at least the part that prompts for login/password, run non-interactively for example as part of the packaging install + +manage.py createsuperuser --username root --email support@myslice.info --noinput + +-- or -- + +django-admin.py createsuperuser --username root --email support@myslice.info --noinput +except that on my MAC for now I haven't been able to find the port command to select this +version, to for me it's still django-admin-2.7.py + +a caveat though is, this cannot be run several times (it fails the second time, duplicate column of course) +it's still doable to redirect >& /dev/null and not worry about the result I guess +I'm not even sure it's really useful ?!? -- 2.43.0