Re: Theming

2017-04-26 Thread Clinton Blackburn
}”, and then pass in > {“theme”: “path/to/theme.html”} as context. > > The same applies to {% include %} - anywhere that you pass in a string in > a template could, potentially, be a variable. > > The approach that will work best depends on exactly what “theming” means > i

Re: Theming

2017-04-08 Thread Russell Keith-Magee
en pass in {“theme”: “path/to/theme.html”} as context. The same applies to {% include %} - anywhere that you pass in a string in a template could, potentially, be a variable. The approach that will work best depends on exactly what “theming” means in your context. Is it the same basic structure

Re: Theming

2017-04-08 Thread Clinton Blackburn
my options as either duplicating templates or writing a custom {% include %} tag that is theme-aware. Thanks, Clinton On Saturday, April 8, 2017 at 5:44:17 AM UTC-4, Russell Keith-Magee wrote: > > > On Sat, Apr 8, 2017 at 1:28 AM, Clinton Blackburn > wrote: > >> Has anyone solved

Re: Theming

2017-04-08 Thread Russell Keith-Magee
On Sat, Apr 8, 2017 at 1:28 AM, Clinton Blackburn < clinton.blackb...@gmail.com> wrote: > Has anyone solved site-aware theming? I have a multi-tenant site (using > sites framework) and I want to render custom templates for each site. My > current design calls for a default design

Theming

2017-04-07 Thread Clinton Blackburn
Has anyone solved site-aware theming? I have a multi-tenant site (using sites framework) and I want to render custom templates for each site. My current design calls for a default design, and overrides of the base template (or child templates) for each site. Obviously, I can achieve the

Re: Theming Django with Diazo/XSLT

2013-12-18 Thread Delusional Insanity
You could give `django_diazo` package a try. https://github.com/Goldmund-Wyldebeast-Wunderliebe/django-diazo It's quite new, but improving. On Friday, 14 December 2012 22:55:31 UTC+1, 4 The good Life we work wrote: > > Hallo, > > I'm used to theme Plone with Diazo/ XSLT.

Re: Theming Django with Diazo/XSLT

2012-12-18 Thread 4 The good Life we work
Hallo Ariel, thank you for letting me know. I've looked at the site and will give it a try. Thanks, Michael On 12/18/2012 11:03 AM, Ariel Calzada wrote: > Hi Michael! > > Django doesn't use approach of DIAZO/XSLT theming by default. You can > use diazo in an indepede

Re: Theming Django with Diazo/XSLT

2012-12-18 Thread Ariel Calzada
Hi Michael! Django doesn't use approach of DIAZO/XSLT theming by default. You can use diazo in an indepedently way ( WSGI http://docs.diazo.org/en/latest/quickstart.html ). Regards, ARIEL 2012/12/18 4 The good Life we work <4thegdl...@googlemail.com> > Hallo Derek, > > tha

Re: Theming Django with Diazo/XSLT

2012-12-18 Thread 4 The good Life we work
its > the admin, I suggest you look at Grappelli[1] as they have done > extensive work in theming. You could either provide your own CSS and > override any templates as needed; or start from scratch but with their > approach/code as an example. > > Derek &

Re: Theming Django with Diazo/XSLT

2012-12-17 Thread Derek
You do not say which part of Django you need to theme. Assuming its the admin, I suggest you look at Grappelli[1] as they have done extensive work in theming. You could either provide your own CSS and override any templates as needed; or start from scratch but with their approach/code as an

Theming Django with Diazo/XSLT

2012-12-15 Thread 4 The good Life we work
Hallo, I'm used to theme Plone with Diazo/ XSLT. Is there any tutorial for Django? Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users

Re: best practices for creating a template/theming layer for users in a django app

2010-03-04 Thread gdup
Thanks! Ill give it a try On Mar 4, 11:04 am, Nick wrote: > sorry, let me rewrite that last part > > render_to_response ('%s/index.html' u'theme', {'dictionary': > dictionary}) > > On Mar 4, 12:11 am, Nick wrote: > > > It seems like this would be best handled at the view level, you could > > pas

Re: best practices for creating a template/theming layer for users in a django app

2010-03-04 Thread Nick
sorry, let me rewrite that last part render_to_response ('%s/index.html' u'theme', {'dictionary': dictionary}) On Mar 4, 12:11 am, Nick wrote: > It seems like this would be best handled at the view level, you could > pass a url variable in the render_to_response portion, maybe something > like >

Re: best practices for creating a template/theming layer for users in a django app

2010-03-03 Thread Nick
It seems like this would be best handled at the view level, you could pass a url variable in the render_to_response portion, maybe something like def theme(request): # a bunch of view display stuff theme = ThemeModel.objects.get('template__name') if theme: render_to_response('%s'

Re: best practices for creating a template/theming layer for users in a django app

2010-03-03 Thread Nick
Ideally what you'd want to do is handle all of this On Mar 3, 6:12 pm, gdup wrote: > O crap! that sounds about right. I was thinking of media_url in terms > of only static files, didnt think of {{ templatename }} variable. > > As for the templating part in an app like shopify , i am not familar >

Re: best practices for creating a template/theming layer for users in a django app

2010-03-03 Thread gdup
O crap! that sounds about right. I was thinking of media_url in terms of only static files, didnt think of {{ templatename }} variable. As for the templating part in an app like shopify , i am not familar with rails, but i assume it allows you to create custom template tags like django. I doubt th

Re: best practices for creating a template/theming layer for users in a django app

2010-03-03 Thread Nick
If I'm understanding what you're asking, it should be as simple as adding an entry per user that designates the template/theme you'd like to use and then passing that as a variable (ex. {{ MEDIA_URL }} {{ templatename }} where template name would be the directory name of the template. Let me know

best practices for creating a template/theming layer for users in a django app

2010-03-03 Thread gdup
Hello all, I would really aprreciate it if someone could point me in the right direction of creating a themeing and template layer for an application written in django, similar to what tumblar and shopify do. I can almost put my finger on the whole concept. I know u can somehow serve the MEDIA_UR