#23470: Django 1.7 app config ImportError: No module named appname.apps
------------------------------+--------------------------------------
Reporter: mennanov | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: import error | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by mennanov):
Replying to [comment:1 collinanderson]:
> You need to be consistent about the prefixes you're using to referencing
modules.
>
> default_app_config = 'articles.apps.ArticlesConfig'
> should be
> default_app_config = 'projectname.apps.articles.apps.ArticlesConfig'
I've set it to:
{{{
default_app_config = 'sefaro.apps.articles.apps.ArticlesConfig'
}}}
Now I get:
{{{
(vagrant)vagrant@vagrant-ubuntu-trusty-32:~/django$ ./manage.py check
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/vagrant/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 385, in
execute_from_command_line
utility.execute()
File "/home/vagrant/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/home/vagrant/local/lib/python2.7/site-
packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/vagrant/local/lib/python2.7/site-
packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/home/vagrant/local/lib/python2.7/site-
packages/django/apps/config.py", line 137, in create
app_module = import_module(app_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
ImportError: No module named articles
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23470#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.db054907de0f1dee1787185a43f5ec99%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.