Django ImportError: ImportError: No module named 'sheets' -


i'm stuck error 1 on app :

traceback (most recent call last):   file "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   file "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line     utility.execute()   file "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 327, in execute     django.setup()   file "/usr/local/lib/python3.5/site-packages/django/__init__.py", line 18, in setup     apps.populate(settings.installed_apps)   file "/usr/local/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate     app_config = appconfig.create(entry)   file "/usr/local/lib/python3.5/site-packages/django/apps/config.py", line 142, in create     app_module = import_module(app_name)   file "/usr/local/lib/python3.5/importlib/__init__.py", line 126, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   file "<frozen importlib._bootstrap>", line 986, in _gcd_import   file "<frozen importlib._bootstrap>", line 969, in _find_and_load   file "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked importerror: no module named 'sheets' 

my config file :

local_apps = (     # custom users app     'sorbetcitron.users.apps.usersconfig',     # stuff: custom apps go here     'sorbetcitron.sheets.apps.sheetsconfig',     'sorbetcitron.cashflows.apps.cashflowsconfig',  )  # see: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps installed_apps = django_apps + third_party_apps + local_apps 

and project directory is:

enter image description here

and sorbetcitron.sheets.apps.py:

from django.apps import appconfig   class sheetsconfig(appconfig):     name = 'sheets 

'

what don't have no problem second app named "cashflows".

appconfig.name must path application. in code, put name = 'sheets' instead of name = 'sorbetcitron.sheets'

see https://docs.djangoproject.com/en/stable/ref/applications/#for-application-authors


Comments