root@videotron:~ # django-admin startproject mysite root@videotron:~ # python manage.py runserver python: can't open file 'manage.py': [Errno 2] No such file or directory root@videotron:~ # ls .Xauthority .elinks .nn .viminfo git .cache .emacs.d .npm .virtualenvs mbox .cargo .k5login .profile .vnc mysite .composer .local .rnd .weechat .config .login .shrc about.txt .cshrc .mysql_history .thelounge ca.key root@videotron:~ # cd mysite root@videotron:~/mysite # ls manage.py mysite root@videotron:~/mysite # python manage.py runserver Traceback (most recent call last): File "manage.py", line 11, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 22, in <module> main() File "manage.py", line 17, in main ) from exc ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? root@videotron:~/mysite # ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? -sh: ImportError:: not found root@videotron:~/mysite # python Python 3.7.10 (default, Apr 10 2021, 01:41:46) [Clang 11.0.1 (g...@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c on freebsd13 Type "help", "copyright", "credits" or "license" for more information. >>> import django Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'django' >>> import django Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'django' >>> exit() root@videotron:~/mysite # -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f165f01-f599-4764-98ac-7a15d5fb5df6n%40googlegroups.com.