Coding Global Background
Coding Global

Deploying a Django project on a AWS EC2 server

Archiviert 2 years ago
1 Nachrichten
0 Mitglieder
2 years ago
In Discord öffnen
M
backup1.0
Verified

I am trying to use the makemigrations command and it is giving me a missing module error, how do i fix it? Editing the repo has not been working and I do not know how to change the correct dependencies? ` ubuntu@ip-172-31-46-38:~$ cd watermelon_1.0 ubuntu@ip-172-31-46-38:~/watermelon_1.0$ python3 manage.py makemigrations Traceback (most recent call last): File "/home/ubuntu/watermelon_1.0/manage.py", line 22, in <module> main() File "/home/ubuntu/watermelon_1.0/manage.py", line 18, in main execute_from_command_line(sys.argv) File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 416, in execute django.setup() File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/django/apps/config.py", line 193, in create import_module(entry) File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked ModuleNotFoundError: No module named 'generic_relations' `

Antworten (1)