سلام وقت بخیر
در قسمت 35 وقتی دستور python manage.py makemigrations رو وارد میکنم با خطای زیر مواجه میشم
(.venv) PS C:\courses\programing\python\django\eshop_project> python manage.py makemigrations
Traceback (most recent call last):
File "C:\courses\programing\python\django\eshop_project\manage.py", line 22, in <module>
main()
File "C:\courses\programing\python\django\eshop_project\manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "C:\courses\programing\python\django\eshop_project\.venv\lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
utility.execute()
File "C:\courses\programing\python\django\eshop_project\.venv\lib\site-packages\django\core\management\__init__.py", line 416, in execute
django.setup()
File "C:\courses\programing\python\django\eshop_project\.venv\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\courses\programing\python\django\eshop_project\.venv\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\courses\programing\python\django\eshop_project\.venv\lib\site-packages\django\apps\config.py", line 193, in create
import_module(entry)
File "C:\laragon\bin\python\python-3.10\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django.contrib.staticfilesproduct_module'
سلام خدمت شما دوست عزیز
احتمالا مشکل از فایل settings.py شما باشه
در قسمت INSTALLED_APPS دقت کنین که آیتم ها با کاما از هم جدا شده باشن
احتمالا بین django.contrib.staticfiles و product_module کاما گذاشته نشده
خیلی ممنون
خواهش میکنم دوست من
موفق باشین :)