[Python] la commande makemigrations pools

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I got stuck at the second step of the tutorial at docs.djangoproject.com/fr/5.1/intro/tutorial02/. When I run the makemigrations polls command, the result is:

    PS C:\Users\user\desktop\djangotutorial> python manage.py makemigrations polls
    Traceback (most recent call last):
    File "C:\Users\user\desktop\djangotutorial\manage.py", line 22, in <module>
    main()
    ~~~~^^
    File "C:\Users\user\desktop\djangotutorial\manage.py", line 18, in main
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
    File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
    File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\__init__.py", line 416, in execute
    django.setup()
    ~~~~~~~~~~~~^^
    File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\apps\registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
    File "C:\Users\user\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\apps\config.py", line 190, in create
    raise ImportError(msg)
    ImportError:


    I don't understand where the problem is coming from. I tried to go through the settings.INSTALLED_APPS settings under the microscope without success. I need your help.

    Continue reading...

Compartilhe esta Página