Thanks! Ill give it a try

On Mar 4, 11:04 am, Nick <nickt...@gmail.com> 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 <nickt...@gmail.com> 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
>
> > def theme(request):
> >     # a bunch of view display stuff
> >    theme = ThemeModel.objects.get('template__name')
> >    if theme:
> >        render_to_response('%s' u'path', {'dictionary': dictionary}
> >    else:
> >        render the default theme
>
> > The path is the directory extension of theme.  Probably just make a
> > foreign key relationship in the blogs settings Model and link it to a
> > template Model with name, thumbnail, etc. etc. etc..
>
> > On Mar 3,u 6:12 pm, gdup <gdup1...@gmail.com> 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
> > > with rails, but i assume it allows you to create custom template tags
> > > like django. I doubt this is the method they are using? Are they
> > > probably just using a custom template system from scratch?
>
> > > On Mar 3, 5:30 pm, Nick <nickt...@gmail.com> wrote:
>
> > > > 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 if I have that right.
>
> > > > On Mar 3, 5:17 pm, gdup <gdup1...@gmail.com> wrote:
>
> > > > > 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_URL variable per user to serve static files, but what
> > > > > about themeing (and views)? Would u create your own tags  or just use
> > > > > djangos?
>
> > > > > Knowing django, I wont be surprised if there is already an app for
> > > > > this. Any direction would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to