Skip to main content

Turn VISIT-ON-SITE button to open in the new window on Django's admin site.

Project description

django-visit-on-site-in-new-window

Turn VISIT-ON-SITE button to open in the new window on Django's admin site.

Install

pip install django-visit-on-site-in-new-window

Usage

pro/settings.py

INSTALLED_APPS = [
    ...
    'django_static_jquery3',
    'django_visit_on_site_in_new_window',
    ...
]

app/admin.py

from django.contrib import admin
from django_visit_on_site_in_new_window.admin import DjangoVisitOnSiteInNewWindowAdmin
from .models import Book


class BookAdmin(DjangoVisitOnSiteInNewWindowAdmin, admin.ModelAdmin):
    list_display = ["name", "author"]

admin.site.register(Book, BookAdmin)

Releases

v0.1.0 2020/03/10

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-visit-on-site-in-new-window, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-visit-on-site-in-new-window-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page