Using the admin navbar & bootstrap throughout my project

96 views
Skip to first unread message

Conrad Lawes

unread,
Aug 4, 2018, 3:24:03 PM8/4/18
to Django users

Call me boring but I like the simple elegance of the django admin panel.
I was wondering is there a way use this layout thorough my project.
All the tutorials I have read so far shows how to build your own navbar using the various third-party bootstraps and css.
But none shows how use the built-in theme/css/navbar that is  already there by default.

TIA for your suggestions.


Andréas Kühne

unread,
Aug 4, 2018, 3:34:07 PM8/4/18
to django...@googlegroups.com
Hi,

You could use the admin backend as the frontend for your application. I have released an application that works that way.

However, if you just want to use the layout, you can look into the contrib.admin package and there you will find all the templates, css and js required for the admin application. To use it in your application you will need to do a lot of backwards engineering - but it should be possible,

Regards,

Andréas

--
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+unsubscribe@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/30741bf2-baaf-4b70-9926-32840ea9ef5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Conrad Lawes

unread,
Aug 4, 2018, 4:28:27 PM8/4/18
to Django users
Andreas,

You have described perfectly what I need:
To use the admin backend as my frontend.

Do you have any sample code you could share with me?




On Saturday, August 4, 2018 at 11:34:07 AM UTC-4, Andréas Kühne wrote:
Hi,

You could use the admin backend as the frontend for your application. I have released an application that works that way.

However, if you just want to use the layout, you can look into the contrib.admin package and there you will find all the templates, css and js required for the admin application. To use it in your application you will need to do a lot of backwards engineering - but it should be possible,

Regards,

Andréas

2018-08-04 4:27 GMT+02:00 Conrad Lawes <pxe...@gmail.com>:

Call me boring but I like the simple elegance of the django admin panel.
I was wondering is there a way use this layout thorough my project.
All the tutorials I have read so far shows how to build your own navbar using the various third-party bootstraps and css.
But none shows how use the built-in theme/css/navbar that is  already there by default.

TIA for your suggestions.


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

Derek

unread,
Aug 5, 2018, 3:48:41 PM8/5/18
to Django users
I also use the admin for the bulk of my project; if you create custom pages, you just need to inherit from the standard/default admin template(s) and overwrite/extend the relevant template blocks. I'd really recommend you figure out how to do this yourself rather than just copy & paste someone else's code, as that way you will get to understand something of how the framework is put together.  

If you want to see an example of someone making custom pages to fit into the admin, have a look at:

Andréas Kühne

unread,
Aug 6, 2018, 8:37:17 AM8/6/18
to django...@googlegroups.com
Hi,

I agree with Derek regarding this is something that you need to check out yourself. You will need to do some overriding and extending and it's hard to describe exactly how much you need to change and also where to do it. Unfortunately I can't share the code that I have, because I don't own the code.

Regards,

Andréas

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages