Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Add admin link #3

Open
luminousmen opened this issue May 9, 2016 · 7 comments
Open

[feature request] Add admin link #3

luminousmen opened this issue May 9, 2016 · 7 comments

Comments

@luminousmen
Copy link

I am wondering is it'll be a good idea to add link to django-controlcenter app from admin page without guessing which url I need to paste.
What do you think?

@byashimov
Copy link
Owner

That's totally my thought!
The thing is: I'm not sure if there is any way to put that link on django's original dashboard without overriding the admin template (I just don't use 'vanilla' admin).
But then, if you use advanced admin apps such as django-grappelli or django-admin-tools they do provide easy ways to place any link you need.
And that depends on your taste and use case.

@luminousmen
Copy link
Author

@byashimov Cool! But I don't like useless dependencies=) There is a hack. You can create model without doing migrations and override url to dashboards. In this case you don't need to override admin templates

@byashimov
Copy link
Owner

I've got you.
But then it will appear on dash even if you do not need that, because of admin autodiscover.

@byashimov
Copy link
Owner

You can provide a workaround in here or put it directly in docs as a pull request, say, on example page, then I will publish it on readthedocs.

@PiDelport
Copy link
Collaborator

PiDelport commented Aug 29, 2018

For what it's worth, I did this by overriding the admin/base_site.html template (it's small), and adding to the userlinks block:

{% block userlinks %}
    <a href="{% url 'controlcenter:dashboard' 'foo' %}">Dashboard</a> /
    {{ block.super }}
{% endblock %}

@minusf
Copy link
Collaborator

minusf commented Jan 14, 2019

the nav-global block is also useful for this.

but it's true that this could be included in the docs somewhere...

@fabiocaccamo
Copy link
Contributor

I would be nice to have the possibility to show a link to the dashboard using just a setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants