Hi, I have written a template context processor to add reverse geocoding to the template context :
- get the coordinates of the current user via Maxmind (http://www.maxmind.com/) - then getting reverse geocoding via the Googlemaps API In order to comply to European privacy policy the code drops a portion of the data If anybody is interested in the code ... regards, marc -----Ursprüngliche Nachricht----- Von: [email protected] im Auftrag von Chris Moffitt Gesendet: So 19.12.2010 16:12 An: [email protected] Betreff: Re: location based site What sort of customization do you want to do? Is it possible to do the customization in the templates & not in the views? I'm wondering if you could accomplish the same thing with Middleware and Context Processors? -Chris On Sat, Dec 18, 2010 at 7:28 PM, truckGuy <[email protected]> wrote: > I need to customize my store based on customer location, so the url > looks like http://www.mysite.com/chicago/catalog/xxx. > I can use > urlpatterns = patterns('', > (r'^(?P<city>\w+)/', include('satchmo_store.urls')), > ) > to parse the city string and send it to the view function. The problem > is that I have to modify all the default view functions in Satchmo to > handle the new <city> argument. I don't want to do that because it > causes problem for future Satchmo upgrade. Is there a way to achieve > my goal without changing the Satchmo view function? > > Thanks, > Steven > > -- > 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. -- 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.
<<winmail.dat>>
