Merhaba.djangoda venvi aktif etmeden runserver dedigimde server calisiyor.ama venvi aktif edip runserver dedigimde venvi aktif etmeyi unuttunmu? diyor.
daha anlasilir olmasi icin:
linux@admin:~/Masaüstü/blogum$ python3 manage.py runserver
/home/linux/Masaüstü/blogum
/home/linux/Masaüstü/blogum
Watching for file changes with StatReloader
Performing system checks...
System check identified some issues:
WARNINGS:
post.post.tarih: (fields.W161) Fixed default value provided.
HINT: It seems you set a fixed date / time / datetime value as default for this field. This may not be what you want. If you want to have the current date as default, use `django.utils.timezone.now`
System check identified 1 issue (0 silenced).
July 14, 2020 - 18:26:18
Django version 3.0.8, using settings 'blogum.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^Clinux@admin:~/Masaüstü/blogum$ source sanal_ortam/bin/activate
(sanal_ortam) linux@admin:~/Masaüstü/blogum$ python3 manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, 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 21, in <module>
main()
File "manage.py", line 12, in main
raise ImportError(
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?
lutfen bunun sebebini ve cozumunu bilen arkadaslar yardim etsin.