Try emptying your __init__.py file -- its contents aren't necessary and 
"import apps" may be causing the problem.

In the future, please use django-users for usage/debugging questions like 
this. This mailing list is for discussion about the development of Django 
itself. Thanks!

On Friday, March 4, 2016 at 4:18:34 PM UTC-5, Becka R. wrote:
>
> Hi, 
>
> I'm building a pretty basic CRUD application for a community I'm part of. 
>   I'm now getting "ImportError: No module named [myappname]" when I run the 
> server, and an operational error in the admin. 
>
> I looked at the documentation, and followed the steps, but I'm not doing 
> something correctly.  I'd like to 1) fix this, and 2) propose some changes 
> to the docs to clarify this issue. 
>
> My project is called "ladynerds" (We're a professional association for a 
> bunch of women software engineers). 
>
> Here's the documentation I'm following:
>
> https://docs.djangoproject.com/en/1.9/ref/applications/
>
> I'm using Django 1.9
>
> *Here's my file structure:*
>
> /ladynerds   (project file)
>  /ladynerds  (app)
>   __init__.py
>   models.py
>   forms.py
>   settings.py
>   urls.py
>   views.py
>   wsgi.py
>   /static
>   /templates
>   
>
> *Here's what I put into ladynerds/__init__.py:*
>
>
> import apps
>
> default_app_config = 'LadyNerds.apps.LadyNerdsConfig'
>
>
> I've also tried using 'ladynerds.apps.LadyNerdsConfig'
>
>
> *Here's what I put into ladynerds/apps.py:*
>
> from django.apps import AppConfig
>
> class LadyNerdsConfig(AppConfig):
> name = "LadyNerds"
> verbose_name = "LadyNerds"
>
> *Here's my settings.py INSTALLED_APPS*
>
>
> INSTALLED_APPS = (
>     'ladynerds.apps.LadyNerdsConfig',
>     'django.contrib.admin',
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.messages',
>     'django.contrib.staticfiles',
>     'ladynerds'
> )
>
>
> I'm getting:  ImportError: No module named LadyNerds
>
> What am I missing?
>
> And, thanks. 
>
> --Becka
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/244f6a0d-d148-4e18-a441-d23e9448343f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to