Google Groups Home
Help | Sign in
'ConfigurableProduct' object has no attribute 'create_products'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jay  
View profile
 More options May 7, 6:41 pm
From: Jay <jay.janshe...@gmail.com>
Date: Wed, 7 May 2008 15:41:43 -0700 (PDT)
Local: Wed, May 7 2008 6:41 pm
Subject: 'ConfigurableProduct' object has no attribute 'create_products'
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Moffitt  
View profile
 More options May 8, 9:57 am
From: "Chris Moffitt" <ch...@moffitts.net>
Date: Thu, 8 May 2008 08:57:22 -0500
Local: Thurs, May 8 2008 9:57 am
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'

What version of Satchmo and Django are you using?

What happens when you run this:

python manage.py satchmo_load_store

-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 8, 3:34 pm
From: Jay <jay.janshe...@gmail.com>
Date: Thu, 8 May 2008 12:34:35 -0700 (PDT)
Local: Thurs, May 8 2008 3:34 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 8, 5:24 pm
From: Jay <jay.janshe...@gmail.com>
Date: Thu, 8 May 2008 14:24:31 -0700 (PDT)
Local: Thurs, May 8 2008 5:24 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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.

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 8, 5:45 pm
From: Jay <jay.janshe...@gmail.com>
Date: Thu, 8 May 2008 14:45:14 -0700 (PDT)
Local: Thurs, May 8 2008 5:45 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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.

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 8, 5:55 pm
From: Jay <jay.janshe...@gmail.com>
Date: Thu, 8 May 2008 14:55:15 -0700 (PDT)
Local: Thurs, May 8 2008 5:55 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Moffitt  
View profile
 More options May 8, 9:18 pm
From: "Chris Moffitt" <ch...@moffitts.net>
Date: Thu, 8 May 2008 20:18:28 -0500
Local: Thurs, May 8 2008 9:18 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'

By any chance, did you forget to do this?
http://www.satchmoproject.com/trac/wiki/BackwardsIncompatibleChangesA...

-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 11, 7:13 pm
From: Jay <jay.janshe...@gmail.com>
Date: Sun, 11 May 2008 16:13:16 -0700 (PDT)
Local: Sun, May 11 2008 7:13 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay  
View profile
 More options May 11, 7:53 pm
From: Jay <jay.janshe...@gmail.com>
Date: Sun, 11 May 2008 16:53:40 -0700 (PDT)
Local: Sun, May 11 2008 7:53 pm
Subject: Re: 'ConfigurableProduct' object has no attribute 'create_products'
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: