Want to change home->blog to Admin home -> blog

47 views
Skip to first unread message

Sachin Tiwari

unread,
Nov 13, 2014, 9:19:28 AM11/13/14
to django...@googlegroups.com
 Hi All,

 I want to change Home link at admin page to Admin Home -> blog -> ...

 I tried by modifying  base.html and base_site.html in my templates/admin/, but it would work

 {% block breadcrumbs %}
    <div class="breadcrumbs">
    <a href="{% url 'admin:index' %}">{% trans ' Admin Home' %}</a>
    {% if title %} &rsaquo; {{ title }}{% endif %}
    </div>
    {% endblock %}
  
   Please help......



Message has been deleted

Sachin Tiwari

unread,
Nov 15, 2014, 6:07:15 AM11/15/14
to django...@googlegroups.com


On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote:
 Hi All,

 I want to change Home link at admin page to Admin Home -> blog -> ...

 I tried by modifying  base.html and base_site.html in my templates/admin/, but it would not work


 {% block breadcrumbs %}
    <div class="breadcrumbs">
    <a href="{% url 'admin:index' %}">{% trans ' Admin Home' %}</a>
    {% if title %} &rsaquo; {{ title }}{% endif %}
    </div>
    {% endblock %}
  


Please help................ 

Kakar Nyori

unread,
Nov 15, 2014, 11:01:28 AM11/15/14
to django...@googlegroups.com
Your question is unclear. Please try to elaborate more.

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e1a4bc9d-e946-40b9-b5a5-db87b3c75515%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sachin Tiwari

unread,
Nov 16, 2014, 12:00:28 AM11/16/14
to django...@googlegroups.com


On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote:

Please check the attached image for the reference............
screen.png

Collin Anderson

unread,
Nov 17, 2014, 4:32:35 PM11/17/14
to django...@googlegroups.com
Hello,

Interesting. What happened when you tried changing the link?

Do any changes to the template have any effect?

Collin

Sachin Tiwari

unread,
Nov 18, 2014, 2:06:35 AM11/18/14
to django...@googlegroups.com


On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote:
Hi Collin,

No changes will be reflected, Please suggest something.
 

Collin Anderson

unread,
Nov 21, 2014, 5:02:29 PM11/21/14
to django...@googlegroups.com
Hi,

Is your TEMPLATE_DIRS set correctly? The tutorial recommends this:

TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]

Thanks,
Collin

donarb

unread,
Nov 21, 2014, 5:13:19 PM11/21/14
to django...@googlegroups.com
And is there only one TEMPLATE_DIRS variable defined? The settings.py template already has one, if the user follows the instructions to add that line and puts it before the default empty one, it may override and wipe out what the user added.
Reply all
Reply to author
Forward
0 new messages