Hi, Don't forget to cc the group so others might find it as well. Copy of your questions here::
On Sep 26, 2013, at 10:03 AM, Roman Lupinskiy <[email protected]> wrote: > I understood you, but i have last question. For example: I have to change > certain view file, add something and e.t.c. . and i Have urls.py file , I > overwrite it in my store folder and i have to change urls.py file or create > new urls.py file in my store folder . I tried to do these steps but I haven't > gotten a result. Can you describe how do I have to do it. Unless satchmo changed it recently all it's urls are in satchmo_store.urls. I do a 2 step process to add urls from of satchmo's so it gets called instead of the one defined in sattchmo and after it. Here is my main urls file simplified to show it in action """ # import store urls from satchmo_store import urls urlpatterns1 = patterns('', # Examples: url(r'^gallery/$', direct_to_template, {'template':'static/gallery.html'}, name='gallery'), url(r'^faq/$', direct_to_template, {'template':'static/faq.html'}, name='faq'), url(r'^terms/$', direct_to_template, {'template':'static/terms.html'}, name='terms'), url(r'^admin/', include(admin.site.urls)), url(r'^admin/filebrowser/', include(site.urls)), url(r'^grappelli/', include('grappelli.urls')), ) urlpatterns2 = patterns('', url(r'^', include('pages.urls')), ) # combine all url patterns for django urlpatterns = urlpatterns1 + urls.urlpatterns + urlpatterns2 """ Thats all. Now you put all your urls that need will use your custom views into urlpatterns1. Note this all get loaded and server start time so there is no overhead. Hope it helps Laszlo http://twitter.com/LZAntal On Sep 24, 2013, at 8:54 AM, LZAntal <[email protected]> wrote: > Hi, > > On Sep 23, 2013, at 2:46 PM, Roman Lupinskiy <[email protected]> > wrote: > >> Yes I understood. But acording to my tasks i have to change some views or >> make more simple basic ones. I have Satchmo in my src/ folder but my I have >> created store in other folder. >> > > In that case go ahead :) Satchmo code is well commented and very strait > forward. > > > Laszlo > http://twitter.com/LZAntal > > >> -- >> You received this message because you are subscribed to the Google Groups >> "Satchmo users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/satchmo-users. >> For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/satchmo-users. For more options, visit https://groups.google.com/groups/opt_out.
