Custom application content at separate base urls

19 views
Skip to first unread message

Joshua Jonah

unread,
Mar 7, 2013, 8:56:18 AM3/7/13
to django-...@googlegroups.com
Hi guys,

    I'm loving FeinCMS, the customization abilities are awesome. However, I'm having trouble with getting a custom application content to show up where I need it.

    I have a site with two distinct product types and a section on the site for each, within these sections I need a store locator page, plus a generic one that is outside these sections. Application content items seem to lock you into a single base urls and the urls.py from that AC starts from there. Here are the urls I need:

/pool-spa/store-locator/
/pet-home/store-locator/
/dealers/store-locator/

All of the context in these pages is the same except for a request var that is set in a middleware, so they are completely stateless.

I can get the /dealers/ one to show up, but the others don't work. Help guys.

Joshua Jonah

unread,
Mar 7, 2013, 9:39:21 PM3/7/13
to django-...@googlegroups.com
Hmmm... I think I have it working swell with separate urls.py files with a naming structure, all inside one app folder and using the same views, models, etc.

Martin J. Laubach

unread,
Mar 8, 2013, 7:28:49 AM3/8/13
to django-...@googlegroups.com
   You mean you want pages in /pool-spa/something/something/foo/ return the /pool-spa/store-locator for app_reverse and anything in /pet-home return the /pet-home/store-locator and anything else return the /dealser/store-locator?

   I had something similar and ended up writing a specialized app_reverse that preferred apps in the current tree, but perhaps that isn't the best solution. Matthias?

  Cheers,

    mjl

Reply all
Reply to author
Forward
0 new messages