from django.apps import apps No module named 'django.apps'

0

Hi, I am new using django, I am using python 3.5 and django 1.9 but after installing it and trying to create my first project it gives me errors that I do not understand, it is as if django was not installed but if it is? It puts me:

Traceback (most recent call last):
  File "C:\Users\Rauli\AppData\Local\Programs\Python\Python35\Lib\site-packages\Django-1.9.13-py3.5.egg\django\bin\django-admin.py", line 2, in <module>
    from django.core import management
  File "C:\Users\Rauli\AppData\Local\Programs\Python\Python35\lib\site-packages\django-1.9.13-py3.5.egg\django\core\management\__init__.py", line 10, in <module>
    from django.apps import apps
ImportError: No module named 'django.apps'

thanks in advance.

    
asked by Raul 03.12.2017 в 21:41
source

1 answer

0

Try the following code, instead of:

from django.core import management o 
from django.app import app

pon:

from django import *

Whenever you use a library you should import it in that way because you import all the modules of this one at a time and you do not have to import the library again for every module you need.

    
answered by 04.12.2017 в 01:28