معرفی شرکت ها


django-admin-views-1.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

django-admin-views is a simple way to add custom admin views and direct URLs to the Django admin
ویژگی مقدار
سیستم عامل -
نام فایل django-admin-views-1.0.3
نام django-admin-views
نسخه کتابخانه 1.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Hugo Defrance <defrance.hugo@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/django-admin-views/
مجوز Copyright (c) Hugo Defrance and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of django-admin-views nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Overview ======== While "the admin is not your app", it is often useful to be able to easily add a bit of functionality to the admin for internal staff or other internal users that are tech savvy enough to use the admin. There are several third party project such as `AdminPlus <https://github.com/jsocol/django-adminplus>`_, but they require the user to redefine the Admin.site object. This is fine for developers who are setting up a Django project, but not ideal for developers who are writing third party tools for other developers to use in their projects. django-admin-views attempts to solve this by simply overriding the admin templates to provide two features: 1. Easily define custom admin views and link them on the admin pages 2. Easily add in external URL links Installation Steps ================== 1. ``pip install django-admin-views`` 2. Add ``admin_views`` to ``INSTALLED_APPS`` in your ``settings.py`` before admin site, i.e. ``django.contrib.admin`` If you are using a custom Admin Site, you'll need to configure the ``ADMIN_VIEWS_SITE`` setting to point to your admin site instance:: ADMIN_VIEWS_SITE = 'myproject.admin.admin_site' Usage ===== All of this magic happens in your model's admin definition. You simply subclass your admin from ``AdminViews`` instead of the standard ``admin.ModelAdmin``. In this example we have a custom view that does nothing but redirect the user to CNN and a direct URL link that goes to my company's homepage:: from django.contrib import admin from django.shortcuts import redirect from admin_views.admin import AdminViews from example_app.models import TestModel class TestAdmin(AdminViews): admin_views = ( ('Redirect to CNN', 'redirect_to_cnn'), ('Go to google.com', 'https:/google.com'), ) def redirect_to_cnn(self, *args, **kwargs): return redirect('https://www.cnn.com') admin.site.register(TestModel, TestAdmin) These will now show up in the admin below the usual Django admin model CRUD interfaces for `example_app` with a couple of different icons to distinquish between custom admin views and a direct URL link. With this third-party developers need only instruct their users to install their app and ``django-admin-views``. Hope you find it useful and as always feedback is certainly welcome. Screenshot ========== .. image:: https://raw.githubusercontent.com/koleror/django-admin-views/master/screenshots/admin.png Author ====== Frank Wiles frank@revsys.com Maintainer ========== Hugo Defrance defrance.hugo@gmail.com


نیازمندی

مقدار نام
>=3.2 django
- black
- bumpver
- isort


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl django-admin-views-1.0.3:

    pip install django-admin-views-1.0.3.whl


نصب پکیج tar.gz django-admin-views-1.0.3:

    pip install django-admin-views-1.0.3.tar.gz