X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=devel%2Frun-locally.txt;h=ce98fcd6e12e1fddb1ffc89ba80fe2ff967fc7ad;hb=4b6622264b59de3edb433a1f886faa2069a11960;hp=4709ce919736e09cc44dc404cb6e656ee8e233ea;hpb=050db13e0c64e7a63646a8f45da74f734923dd9f;p=myslice.git diff --git a/devel/run-locally.txt b/devel/run-locally.txt index 4709ce91..ce98fcd6 100644 --- a/devel/run-locally.txt +++ b/devel/run-locally.txt @@ -18,3 +18,21 @@ In order to run this module in standalone mode that runs 'manage runserver ...' in an endless loop, just hit ctrl-C to kill the current server instance and run another one + + * as a final note, it is explained here +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 ?!?