plugins django-apps in sidebar with eval()

16 views
Skip to first unread message

kase

unread,
Apr 1, 2012, 2:48:09 PM4/1/12
to django...@googlegroups.com
i want made a plugin sistem  for one CMS  my idea is:

#plugin
def plugin ():
    do somting
    return render_to_string('plugin.html',{})

and  one database whit plugins  method name  "Plugin_sidebar"

#view
def home(request):
    ps = Plugin_sidebar.objects.all()
    return render_to_response('home.html',{'ps':ps})


and  template whit custom tag  eval()

{%for  item in  ps %}
{%eval  item%}   #custom tag
{%endfor%}


with this sistem the user can add and remove plugins... what do you think?
Reply all
Reply to author
Forward
0 new messages