'ConfigurableProduct' object has no attribute 'create_products'

2 views
Skip to first unread message

Jay

unread,
May 7, 2008, 6:41:43 PM5/7/08
to Satchmo users
Hi, guys. I don't know if this is the right place for this, but I'm
working on start-to-finish documentation for installing satchmo, and
I'm about 90% of the way there. I'm hitting a snag when I'm trying to
load sample store data:

Type 'yes' to load sample store data: yes
Creating site...
Creating Customers...
Creating Suppliers...
Creating Categories...
Creating products...
Creating product variations...
Traceback (most recent call last):
File "load_data.py", line 349, in <module>
load_data()
File "load_data.py", line 283, in load_data
pg1.create_products()
AttributeError: 'ConfigurableProduct' object has no attribute
'create_products'

I'm digging into it, but if anyone has more information about this
error or its solution I would be grateful.

Strangely, I'm also unable to log in as the superuser I create during
load_data.py. These two problems don't seem like they would be
related, but they lead me to believe I have steered wrong somewhere
along the way.

Thanks!

The document in progress is here:
http://docs.google.com/View?docid=afntv8cpf5cq_111fgjsp5mf

Chris Moffitt

unread,
May 8, 2008, 9:57:22 AM5/8/08
to satchm...@googlegroups.com
What version of Satchmo and Django are you using?

What happens when you run this:
python manage.py satchmo_load_store

-Chris

Jay

unread,
May 8, 2008, 3:34:35 PM5/8/08
to Satchmo users
Hi, and thanks very much.

Satchmo v 1184, Django v 7519

# python manage.py satchmo_load_store
Loading sample store data.
Creating site...
Creating Customers...
Creating Suppliers...
Creating Categories...
Creating products...
Creating product variations...
Create a test user...

Regarding not being able to sign in, I had an error in my satchmo.log
that said something like, "shop config not loaded, loading test
shop" (I am unable to get this error now-- I will try to reproduce).

Here are my settings files:
settings.py: http://pastie.caboo.se/193842
local_settings.py: http://pastie.caboo.se/193845


On May 8, 9:57 am, "Chris Moffitt" <ch...@moffitts.net> wrote:
> What version of Satchmo and Django are you using?
>
> What happens when you run this:
>
> python manage.py satchmo_load_store
>
> -Chris
>

Jay

unread,
May 8, 2008, 5:24:31 PM5/8/08
to Satchmo users
Here is the error I get in satchmo.log:

satchmo.shop.models: WARNING No Shop Config found, using test shop
config.

I see the reference to Shop Config in satchmo/shop/models.py. I'm not
sure whether the admin superuser created during load_data.py is
related to this problem or not.

Jay

unread,
May 8, 2008, 5:45:14 PM5/8/08
to Satchmo users
Ok... I figured out the problem loading the sample store data. I had
a version of load_data.py that did not match the version of satchmo I
had. Dumb mistake.

However, I am still left with the weirder and more serious problem of
not being able to sign in with the superuser created during
load_data.py. The error message I get on the login screen is, "Please
enter a correct username and password. Note that both fields are case-
sensitive." I get no errors in any of the logs. I am pushing each
button in the password very slowly... I'm certain I'm typing it
correctly. I'll keep digging to see if I can figure out what the
matter is.

Thanks again for your help.

Jay

unread,
May 8, 2008, 5:55:15 PM5/8/08
to Satchmo users
At the risk of being annoying, I should also add that the superuser
does, in fact, show up in the database with "is_staff" and
"is_superuser" true. It's either the hash process or the login
process that I seem to have borked.

On May 8, 5:24 pm, Jay <jay.janshe...@gmail.com> wrote:

Chris Moffitt

unread,
May 8, 2008, 9:18:28 PM5/8/08
to satchm...@googlegroups.com

Jay

unread,
May 11, 2008, 7:13:16 PM5/11/08
to Satchmo users
Yes. Yes I did. Thank you very much.

Just for reference, "This" (in Chris's post) is as follows:

To maintain existing functionality in stores, you must add a
second line to your AUTHENTICATION BACKENDS in
settings.py

AUTHENTICATION_BACKENDS = (
'satchmo.accounts.email-auth.EmailBackend',
'django.contrib.auth.backends.ModelBackend',
)


On May 8, 9:18 pm, "Chris Moffitt" <ch...@moffitts.net> wrote:
> By any chance, did you forget to do this?http://www.satchmoproject.com/trac/wiki/BackwardsIncompatibleChangesA...
>
> -Chris

Jay

unread,
May 11, 2008, 7:53:40 PM5/11/08
to Satchmo users
Also, for lack of a better place to put it at the moment, I'll
probably just leave the step-by-step document as it is (a published
google doc). If it's useful to anyone else, you're welcome to it.
It's a pretty thorough walkthrough for getting Satchmo up and running
on Slicehost or whatever Ubuntu server.

http://docs.google.com/View?docid=afntv8cpf5cq_111fgjsp5mf

On May 8, 9:18 pm, "Chris Moffitt" <ch...@moffitts.net> wrote:
> By any chance, did you forget to do this?http://www.satchmoproject.com/trac/wiki/BackwardsIncompatibleChangesA...
>
> -Chris
Reply all
Reply to author
Forward
0 new messages