Oops, yikes, sorry about that.

Yes, the dot syntax looks like it's supposed to work.
I noticed the same thing in shop/urls.py for the pattern shop/contact/
thankyou
In both my case, and the built in, 'thankyou' case, I'm getting an
error saying that it can't find the module 'simple'.

ViewDoesNotExist: Could not import simple. Error was: No module named
simple

So now I'm to a configuration error I guess.

I see this type of error is pretty common and I probably just need to
import django.views.generic.simple or something. Question is where? Do
I import it in settings.py or elsewhere? I've tried importing the view
right before I put set the url pattern and that didn't seem to change
anything.

Thanks agan!

On Sep 19, 6:11 pm, "Bruce Kroeze" <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 19, 2008 at 6:08 PM, one_ninety <[EMAIL PROTECTED]> wrote:
>
> > Actually, that didn't work for me.
>
> > My local_settings.py looks more like this:
>
> > URLS = patterns('',
> > )
> > SHOP_URLS = patterns('satchmo.shop.views',
> >     (r'^about_us/', 'simple_direct_to_template', {'template':'mystuff/
> > test.html'}),
> > )
>
> > So if I put that line in the SHOP_URLS dictionary it wants to resolve
> > to the satchmo.shop.views module. That's ok, I guess, I should be able
> > to add a view and handle it that way. But I don't think that was the
> > intent of your example.
>
> The first argument to patterns() is the root of the views you are calling.
>  So change it to empty string, and use my example.
>
> > When I try this:
>
> > URLS = patterns('',
> >     (r'^shop/about_us/', 'simple_direct_to_template',
> > {'template':'mystuff/test.html'}),
> > )
> > SHOP_URLS = patterns('satchmo.shop.views',
> > )
>
> That would work, if you used simple.direct_to_template
>
> You have an underscore rather than a dot in your version.
>
>
>
> > --
>
> Bruce Kroezehttp://solidsitesolutions.com
> Dynamic Designs, Optimized
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to