My project's URLConf was not configured in the settings.py of the project
and thats why the changes were not taking place.

Thanks everybody for the help,
Sachin.

On Sat, Jun 5, 2010 at 1:20 AM, Sachin Goel <[email protected]> wrote:

> Hi Chris,
>
> What should be the new location where I need to copy the modified home.home
> view ? I tried to keep it at satchmo/projects/<myproject>/view/home.py, but
> it does not work.
>
> Also, I cannot get looking at the originial home.home view why my changes
> won't work. Please bear with me for a while, as I am completely new to
> Python and might miss some things.
>
> Thanks,
> Sachin.
>
>
> On Sat, Jun 5, 2010 at 12:47 AM, Chris Moffitt <[email protected]> wrote:
>
>> If you look at the details of the view being called, you'll see what the
>> product_list change you're making won't work.
>>
>>
>> http://www.bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_store/shop/views/home.py
>>
>> What you ideally need to do is copy the  home.home view to a new location
>> and modify the featured variable to return the list you'd like.
>>
>> Does that make sense?
>>
>> -Chris
>>
>>  On Fri, Jun 4, 2010 at 1:31 PM, Sachin Goel <[email protected]>wrote:
>>
>>>  I tried out the stuff mentioned at that link in the way mentioned below.
>>>
>>> I updated urls.py at satchmo/projects/<myproject> with :
>>>
>>> *from django.conf.urls.defaults import *
>>>
>>> from satchmo_store.urls import urlpatterns
>>>
>>> from satchmo_utils.urlhelper import replace_urlpattern
>>> from product.models import Product
>>>
>>> product_list = []
>>>
>>> replacement = url(r'^$', 'satchmo_store.shop.views.home.home',
>>>             {'all_products_list': product_list}, 'satchmo_shop_home')
>>> replace_urlpattern(urlpatterns, replacement)*
>>>
>>> Please notice that I am passing an empty product list to the index.html
>>> but still it is displaying all the featured products..I believe I am missing
>>> something big time here..
>>>
>>>
>>>
>>>> http://www.satchmoproject.com/docs/dev/customization.html#changing-views
>>>>
>>>> Feel free to ask more if that isn't enough for you.
>>>> Alex
>>>>
>>>> On Fri, Jun 4, 2010 at 1:06 PM, Sachin Goel <[email protected]>
>>>> wrote:
>>>> > Hi,
>>>> >
>>>> > I have two categories of products on my website. Instead of going with
>>>> the
>>>> > default representation of featured products on the home page, I want
>>>> to
>>>> > present 5-5 products from both categories.
>>>> > I have copied index.html to my project template location and modified
>>>> it.
>>>> > But I am not able to find out, how to over-ride the default home view.
>>>> I
>>>> > have tried modifying the view at :
>>>> > satchmo/apps/satchmo_store/shop/views/home.py, but to no effect.
>>>> > Please guide me how to over-ride a view for the Satchmo application,
>>>> as it
>>>> > will be required extensively for my application.
>>>> >
>>>> > Thanks,
>>>> > Sachin.
>>>> >
>>>> >
>>>> > --
>>>> > 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]<satchmo-users%[email protected]>
>>>> .
>>>> > For more options, visit this group at
>>>> > http://groups.google.com/group/satchmo-users?hl=en.
>>>> >
>>>>
>>>> --
>>>> 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]<satchmo-users%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/satchmo-users?hl=en.
>>>>
>>>>
>>>  --
>>> 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]<satchmo-users%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/satchmo-users?hl=en.
>>>
>>
>>  --
>> 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]<satchmo-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>
>

-- 
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