django - Error While Running python manage.py shell -
I am following the documentation of Django, and I had a problem running this command: python manage.py shell
it seems to me that error:
tab in the file "manage.py", line 7 django.core.management import execute_from_command_line TabError: Indenteshn and location Inconsistent use of
I know what it means, but I do not know how to edit my manage.py file so that it works. Maybe I could edit the indentation by mistake and now I do not know how to return.
This is what my manage.py file looks like:
#! / Usr / bin / env python import os import sys if __name__ == "__main__": os.environ.setdefault ( "DJANGO_SETTINGS_MODULE", "polling.settings") from django.core.management import execute_from_command_line execute_from_command_line (sys.argv) < / Code>
Thanks!
If you are using a mix of tabs and spaces in your manage.py
Use public text such as text editors in the form of indents, which displays white space in the form of spaces / tabs so that you can easily change them.
See for more information.
Comments
Post a Comment