In my project, the djangocommand ./manage.py [command]raises this error message:
: No such file or directory
The team is python manage.py [command]working well. I tried with syncdband runserver. I tried chmod a+x manage.py, but the problem persists.
My manage.py:
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
I am using django 1.4.1 in virtualenv. How can I fix this to use manage.py [command]?
source
share