Re: I don't understand this error - Django 1.9

2016-03-04 Thread Luis Zárate
Do not use the same name of the project in your apps.

It is possible to do what you are doing but really needs comprehension of
how python works and you need to do extra work to get ready.  So my
remendation is: start a clean project with other name and copy you app
folder. Put attention in what file are from settings and what is from app.

or better idea start again your app with clean project.



El viernes, 4 de marzo de 2016, Alex Heyden 
escribió:
> If you get longer stacktraces back, those might help in identifying what
exactly is going wrong.
> As a first pass cleanup, try:
> * remove 'ladynerds' from the bottom of INSTALLED_APPS. You're already
including it up top
> * change __init__.py to read "default_app_config =
'ladynerds.apps.LadyNerdsConfig'". No import apps, camel casing only at the
end.
> * change the name field of the app config to "ladynerds" instead of
"LadyNerds" (but the verbose name should be fine)
> On Fri, Mar 4, 2016 at 3:24 PM, 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 users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/2e9e6959-0dc6-4cfb-9fe1-5aaf77db852f%40googlegroups.com
.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CA%2Bv0ZYXmk3ib7KaHA9J%2B4Jnp-LozAfSOd0d79wW5cPUHL3k%3D1Q%40mail.gmail.com
.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyOWSm%2BN5_-hf1QGYC%2B09a17Ab4zdy9%2BBGgh3HWQ%2BdneCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I don't understand this error - Django 1.9

2016-03-04 Thread Alex Heyden
If you get longer stacktraces back, those might help in identifying what
exactly is going wrong.

As a first pass cleanup, try:
* remove 'ladynerds' from the bottom of INSTALLED_APPS. You're already
including it up top
* change __init__.py to read "default_app_config =
'ladynerds.apps.LadyNerdsConfig'". No import apps, camel casing only at the
end.
* change the name field of the app config to "ladynerds" instead of
"LadyNerds" (but the verbose name should be fine)

On Fri, Mar 4, 2016 at 3:24 PM, 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 users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2e9e6959-0dc6-4cfb-9fe1-5aaf77db852f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Bv0ZYXmk3ib7KaHA9J%2B4Jnp-LozAfSOd0d79wW5cPUHL3k%3D1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I don't understand this error - Django 1.9

2016-03-04 Thread Becka R.
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 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2e9e6959-0dc6-4cfb-9fe1-5aaf77db852f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.