views:

101

answers:

3

Why view on site linked to an unwanted page.Can i disable view on site

+1  A: 

See the django-docs You can overwrite the admin-templates or see here, how to use it

vikingosegundo
+1  A: 

View on site determines the URL to link to by checking the Sites app and adding the model's get_absolute_url() method on the end of it.

rennat
A: 

sudo vi /usr/local/lib/python2.6/dist-packages/django/contrib/admin/templates/admin$/change_from.html.

in this file comment out the if condition

{% if has_absolute_url %}

  • {% trans "View on site" %}
  • {% endif%}

    then view on site will never appear

    ha22109