On May 14, 2010, at 4:16 AM, cyrux cyrux wrote:

> I have a simple task to accomplish. I have some hierarchal data in my
> database which needs to be displayed in a UI. It needs to be simple
> and preferably in a expandable tree format (although a non -expandable
> should work as well). This is what I am looking for
> http://source.mihelac.org/x/treetable/tests/example2.html#
> 
> I have been looking django since last week and I haven't gone
> anywhere. I have looked at a couple of extensions , but I am not sure
> if they would work. So , is it possible to achieve some thing like the
> above link in django ? I have looked into django-mptt and django-
> treemneu but seems consuing. I have never really worked on front end
> languages like HTML , PHP , so the template part of django confuses
> me. There is so much of stuff happening behind the scenese that
> confuses me. If somebody can tell me if this is possible, i can spend
> may be a day or more looking into it, else I will probably go for php
> stuff

Django is front-end agnostic.  There may be individual reusable apps that 
provide what you need, but Django itself does not come with a tree view, nor 
does it pick a particular JavaScript library to integrate.  This means you have 
all the flexibility you may need to build whatever components your application 
requires.  This also means you often have the burden of developing the 
front-end by yourself.

In my case, I have had good results incorporating the jQuery Dynatree plugin 
into my application.  However, I did the integration entirely myself.

If you only have "a day or more" to invest on building the front-end, and you 
are not comfortable building HTML and wiring up JavaScript, but you *are* 
comfortable with PHP, then PHP may be the better choice for your needs.  On the 
other hand, if you continue to build web applications, you will need to develop 
a certain expertise with HTML, CSS and JavaScript, in addition to your 
server-side framework and its language, so you may want to put the time in to 
learn the tools now.

Hope that helps,

---Peter Herndon

-- 
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