0

when I'm using Visual Studio Code for the Django project in windows Environment, for creating a superuser I'm using the below command.

(test) C:\Users\SAHEB\projects\project>python manage.py createsuperuser

this same Django project is deployed in Unix server, below is the path where whole project is deployed.

/apps/sample/python

but python manage.py createsuperuser this command is not working in Unix server from this path, what's the solution

2 Answers 2

0

from_the_docs: runserver is to start a server and not to create superuser.

from_the_docs: To create superuser run following command:

django-admin createsuperuser
Sign up to request clarification or add additional context in comments.

14 Comments

Sorry, I put the wrong command, I have edited my question.Thanks
django-admin createsuperuser command is not working in unix environment
are you running it from same directory as manage.py ?
yes from the same directory, it's showing there is no subcommand like 'createsuperuser'
what error or infomation are you getting? what it says? what's output when you run python manage.py createsuperuser?
|
0

python manage.py createsuperuser works on all platforms. I think it's because of your path. Type dir and press enter in your cmd (make sure you do it in your project directory) at let's see if there is a file called manage.py or not.

(test) C:\Users\SAHEB\projects\project>dir                                         

1 Comment

command successfully working in the windows environment but not working in Unix environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.