cuducos / django-public-admin

🔓 A public and read-only version of the Django Admin
MIT License
64 stars 5 forks source link

Override site metadata #26

Closed lsmith77 closed 9 months ago

lsmith77 commented 9 months ago

For admin I can override the site metadata as follows:

admin.site.site_header = 'your_header'
admin.site.site_title = 'site_title'
admin.site.index_title = 'index_title'

But it seems like public_admin has not site. Is there a way to adjust this metadata?

lsmith77 commented 9 months ago

I can actually do the following:

public_admin.site_header = 'your_header'
public_admin.site_title = 'site_title'
public_admin.index_title = 'index_title'

But it seems to have no effect.

lsmith77 commented 9 months ago

Actually nevermind .. sorry for the noise. It works :) Should I submit this as a doc PR?

cuducos commented 9 months ago

How have you sorted that out? Can you share here?

lsmith77 commented 9 months ago

It works exactly like this: https://github.com/cuducos/django-public-admin/issues/26#issuecomment-1864853299

cuducos commented 9 months ago

Ah, ok. So, since it's Django standard I don't think we need extra docs on that. Thank you so much : )