Re: Custom Django Admin Pages

2018-08-22 Thread Derek
The Django admin is great and will probably provide an 80/20 solution if 
you have a purely internal app, used by people who understand data 
management.  For an externally facing app, used by non-technical people, I 
would recommend a custom design.

The Django admin is not hard to customise quite extensively and it has many 
"hooks" to allow you to do so. (Many blog posts on this topic.)

I don't think there is one preferred way, but typically you would write 
your own views & forms and then have the results displayed in templates, 
which in turn inherit from the Django admin to keep the look-and-feel 
consistent. You can then hook these into the main menu system.  This is my 
approach for creating a set of custom reports for a Django app.  For more 
granular level changes, you can add in custom actions to deal with some of 
the business operations.  As always, try and keep your business logic 
associated with your models.

HTH

On Tuesday, 21 August 2018 06:15:18 UTC+2, me.vineetkothari wrote:
>
> It will be a bad practise you can disable dango admin and create a new app 
> admin but it will require efforts
>
> Sent from my Huawei Mobile
>
>
>  Original Message ----
> Subject: Custom Django Admin Pages
> From: 'Kyle Mulka' via Django users 
> To: Django users 
> CC: 
>
>
> Hi there,
>
> It seems like Django Admin is designed to work with Django models. But, 
> I'm wondering what the best way is to create custom admin pages that don't 
> revolve around Django models. Like, maybe there's a third party API that I 
> want admins to be able to call from the Django admin. What's the best way 
> to get custom pages to show up and render in the Django admin?
>
> Thanks,
>
> Kyle
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/57ccf869-829c-4ed4-881b-3b2031834bee%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/57ccf869-829c-4ed4-881b-3b2031834bee%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8168803-3ab3-40c0-bc5b-3d2bfd365b96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom Django Admin Pages

2018-08-21 Thread Jani Tiainen
Hi.

Admin is designed to be datacentric view to your models, namely providing
simple CRUD ops to your data.

If you want something else which involves your business requirements and
logic, generic class based views do help there. But in any case, you should
build your own management console for your business needs.

On Tue, Aug 21, 2018 at 6:40 AM, 'Kyle Mulka' via Django users <
django-users@googlegroups.com> wrote:

> Hi there,
>
> It seems like Django Admin is designed to work with Django models. But,
> I'm wondering what the best way is to create custom admin pages that don't
> revolve around Django models. Like, maybe there's a third party API that I
> want admins to be able to call from the Django admin. What's the best way
> to get custom pages to show up and render in the Django admin?
>
> Thanks,
>
> Kyle
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/57ccf869-829c-4ed4-881b-3b2031834bee%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oc-DhnMkv64Oyco7%2Bj9S5Cc2NbkBAn098EEMhiGxKv98g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom Django Admin Pages

2018-08-20 Thread Vineet Kothari
It will be a bad practise you can disable dango admin and create a new app admin but it will require effortsSent from my Huawei Mobile Original Message Subject: Custom Django Admin PagesFrom: 'Kyle Mulka' via Django users To: Django users CC: Hi there,It seems like Django Admin is designed to work with Django models. But, I'm wondering what the best way is to create custom admin pages that don't revolve around Django models. Like, maybe there's a third party API that I want admins to be able to call from the Django admin. What's the best way to get custom pages to show up and render in the Django admin?Thanks,Kyle



-- 
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/57ccf869-829c-4ed4-881b-3b2031834bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/-xcpxy6-3x1uz9dtff28-md6b0z-mafomj-9pjcu7iy1vhz-ku8urb-uf2r8a-u9ywha-u06at27chu34a4bf336qyfe-2brsl2vbzu2351k32z-3r7vmfkj16um2wqw1mkp06tb-1d0xtt-ktzgz1k0top.1534824869335%40email.android.com.
For more options, visit https://groups.google.com/d/optout.


Custom Django Admin Pages

2018-08-20 Thread 'Kyle Mulka' via Django users
Hi there,

It seems like Django Admin is designed to work with Django models. But, I'm 
wondering what the best way is to create custom admin pages that don't 
revolve around Django models. Like, maybe there's a third party API that I 
want admins to be able to call from the Django admin. What's the best way 
to get custom pages to show up and render in the Django admin?

Thanks,

Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/57ccf869-829c-4ed4-881b-3b2031834bee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.