Re: Newbie Looking for Starter Plugin

24 views
Skip to first unread message

Joel Goldstick

unread,
Oct 5, 2012, 9:26:03 AM10/5/12
to django...@googlegroups.com
On Fri, Oct 5, 2012 at 1:47 AM, Luke Hovington <lu...@hovo.id.au> wrote:
> After lots of talk on I'm going to start using Django a project turned up
> that allowed me to start learning how this all works.
>
> So far I have managed (Via tutorials) to get everything setup and running
> nicely,
> I have also installed admin_tools which brings me to my question.
>
> Is there any plugin/package that would give me a admin_tool type look for
> all my users for free?
>
> Things I'm after are..
> * Dashboard Widgets all over the page
> * Ability to remove, add and reorganise 'Widgets'
> * Settings saved for each user
>
Django is a framework. It sounds like you might be looking for a CMS

> I will in the future need to limit the data shown in the widgets or remove
> others depending on user permissions, but that could be another days issue.
>
Built in to admin is the capability to give permissions to users and
groups. You should look at that.


> So before I start looking into how admin_tools does it's awesome stuff and
> repurposing it, I though I would ask those who have been working with it for
> while.


> Any suggestions?
>
If your users are trusted (like people in your company? -- not
anonymous users) you can give them access to the admin. They will
only have the capabilities you allow via the permissions you set. I
think this is a really great feature of django. Admin is not just for
the developer (although its great for the developer), but for trusted
staff so you don't have to re-invent all the stuff it does (CRUD)


--
Joel Goldstick

Amirouche

unread,
Oct 5, 2012, 9:29:17 AM10/5/12
to django...@googlegroups.com
On Friday, October 5, 2012 7:47:01 AM UTC+2, Luke Hovington wrote:
After lots of talk on I'm going to start using Django a project turned up that allowed me to start learning how this all works.

So far I have managed (Via tutorials) to get everything setup and running nicely,
I have also installed admin_tools which brings me to my question.

Is there any plugin/package that would give me a admin_tool type look for all my users for free?

Things I'm after are..
* Dashboard Widgets all over the page
* Ability to remove, add and reorganise 'Widgets'
* Settings saved for each user

I will in the future need to limit the data shown in the widgets or remove others depending on user permissions, but that could be another days issue.

So before I start looking into how admin_tools does it's awesome stuff and repurposing it, I though I would ask those who have been working with it for while.
Any suggestions?

 
Are you looking for a Django Nuke or PostNuke or similar application ?

I don't think it exists, but I'd be happy to be part of any team involving building such a thing.

That said Django-CMS and mezzanine provide a widget infrastructure it's just not presented like that.

Cheers,

Amirouche

Luke Hovington

unread,
Oct 5, 2012, 10:12:12 AM10/5/12
to django...@googlegroups.com
I will clarify a bit better on what I have been tasked to do.

The job description is to have a dashboard full of information, this information could be coming from external sites or our own sensors.

So with this data (yet to be decided) it could be graphed or show in table format for example.

Each user would be interested in diffrent things, thus having the ability to remove rearange and really customise the view they are seeing.

This is what strucked me about the admin_tools interface this ability to add, remove and change the layout with relative ease.

I suspect that users will have to be registered so it won't be open to the public to just "sign up" but management have changed their mind before on these type of issues.

If you feel it would be better to go for a cms or just use the current admin interface as is that would be great as I have very little time allocated to this project being a typical government organisation. That said I have tasked myself to learn the ways of Django as such I'm feeling a bit overwhelmed on the practices, code structure and the best way forward.
On the upside I have been using python for everything I am allowed to to choose the programing language.

Thanks for helping me out.
Luke

Amirouche

unread,
Oct 5, 2012, 10:53:45 AM10/5/12
to django...@googlegroups.com

 
The job description is to have a dashboard full of information,

It might be an OK solution to use the admin changelist (list feature of the admin) and render graphics using admin actions with an intermediate page and using filter and search. Given you know how to override templates and find you way through the admin classes and AdminModel configuration.
 
this information could be coming from external sites or our own sensors.

If you don't of Django models for your data, then you can make it work using django-roa (I don't know if works with 1.4.1) or django-sneak (should work with 1.4.1, contact me if you want help if you go this route) and follow the above technic.

Django-reporting might also be useful, but I don't know actually if it is the solution to your problem.

Anyway, if you don't feel like to integrate/use this applications which might be a bit difficult for a beginner. You can start from scratch CBV route or function views and build a customisable dashboard yourself, I don't have all I need to be more precise.

I don't think the admin is the solution, it's not flexible enough but still a good solution for a POC application.
 

This is what strucked me about the admin_tools interface this ability to add, remove and change the layout with relative ease.

Yes but it's specific to admin tools I think, someone more competent might be of better advice, but I think that admin tools is not the application you are looking for. Or ask the maintenair directly through github they might be able to answer you :)

I suspect that users will have to be registered so it won't be open to the public to just "sign up" but management have changed their mind before on these type of issues.

I don't think this is your primary issue right now, getting the dashboard, graphs and data navigation up and running should be. If you go the admin way and the management decide that the data should be public, you can provide a Django user with default password, lock the change password feature and make the credentials available publicly.

If you feel it would be better to go for a cms

I say it might be, try to contact their respective maintainer or mailling lists.
 

Or just use the current admin interface as is that would be great as I have very little time allocated to this project being a typical government organisation.

Like everybody ;)
 

That said I have tasked myself to learn the ways of Django as such I'm feeling a bit overwhelmed on the practices, code structure and the best way forward.

You problem doesn't seem to be in the Django CMS-like vein of problems, yet it's it's doable, but can't give a precise answer without more information.

Contact me directly if you want.

Good luck


Amirouche
Reply all
Reply to author
Forward
0 new messages