jeudi 9 février 2017

Not able to create super user in Django

Vote count: 0

I'm trying to create superuser in django but keep getting this error message.

Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.

I tried eclipse custom command first and than I saw some people able to create super user using window command line with virtualenv, so I installed and activated it. However till now I wasn't able to create superuser. What I've been typing in the cmd is

C:\Users\name>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python manage.py createsuperuser
File "<stdin>", line 1
 python manage.py createsuperuser
            ^
SyntaxError: invalid syntax

I tried this too.

C:\Users\name>python manage.py createsuperuser
python: can't open file 'manage.py': [Errno 2] No such file or directory

asked 11 secs ago

Let's block ads! (Why?)



Not able to create super user in Django

Aucun commentaire:

Enregistrer un commentaire