Yii2-admin is Yii2 RBAC a set of management tools, to achieve a beautiful interface and complete rights management functions, do not have to write permission code, before use, please update YII2 source to the latest version.Git Source Address: https://github.com/mdmsoft/yii2-adminInstall Yii2-admin:1, first switch to the project directory2. Execute the statement: Composer.phar require mdmsoft/yii2-adminNote
SpringBoot Admin user guide (recommended), springbootadmin
Spring Boot Admin is an application that manages and monitors your Spring Boot applications. These applications are registered through Spring Boot Admin Client (HTTP) or discovered using Spring Cloud (such as Eureka. The UI is just an AngularJs application on the Spring Boot Actuator endpoint.
Quick Start
In the previous chapter, we completed the basic functions of admin, but the appearance of it is too ugly, then we will try to change it ~
If you want to change it, you'll use Django's templating system. Because admin is a Django-brought app, he uses a Django-brought template system.
First you need to create a template folder in the project, you can put it anywhere in the file, assuming the pat
In the past, the default administrator username for WordPress installation was admin. If we didn't want to use this username, we could only modify it through the data table. However, we chose our username for WordPress installation. However, many users basically get used to admin, which is easy to guess.To make the website more secure, we recommend that you do not use
be created when they come up)7.http{keepalive_timeout 30s}# compression, compression of the minimum resource size, rank, the higher the level, the better the compression effect, occupy the server more serious resources.8.gzip On/gzip_min_length 1000/gzip_comp_level#压缩文件类型的选择, some file compression effect is not good choose not to compress, reduce server performance loss9.gzip_type#最大缓存数量, the file does not use survival time10.open_file_cache max=655350 inactive=20s;Open_file_cache_valid 30s #验证
1. Using the admin siteThe admin module is in Django. contrib. Therefore, you must remove the following two comments from ULRs when adding admin management;From Django. contrib import AdminAdmin. autodiscover ()
2. Setting settings1) Add Django. contrib. Admin to installed_appsTip: intalled_apps should be arranged by a
A Django app: grappelli was found online over the past few days. This app can be used to beautify the Django admin background management interface and make the ugly Django admin background interface very cool and nice.
The following is an article written by others for your reference:
References:
Improve the default Django-Admin background http://blog.sina.com.cn/
For a certain type of website, the management interface is very important. He can add, edit, delete site content, but the creation of a management interface cumbersome and repetitive, and the interface is stereotyped; Django can do this tedious work with no less code: it reads the metadata in your schema, and then provides you with a powerful and immediate interface to work with.Django.contrib is a large set of feature sets, part of the Django CodeBase, which contains:User Identification System
In the article Django implements the custom template page and adds a custom jump link in the Admin Site App module (a) we succeeded in/feedback/feedback_stats/ The path customizes the HTML file using the template syntax, completing the function of jumping to the custom statistics page via the corresponding link, but not being able to add the displayed jump link successfully under the Feedback app module in admin
Here are some of the free backend admin HTML templates that are very good. It is recommended that you collect.1. Charisma Admin Template (example)Charisma is a responsive management template built on Twitter bootstrap. There are 9 themes, including almost everything, such as forms, charts, buttons, tables, file managers, albums, etc. You can download the template to GitHub link.2. Inadmin–jquery
1. In
Settings. pyAdd 'django. contrib. admin' to the installed_apps section of the file ',
2. InURLs. pyIn the urlpatterns file, add (R' ^ admin/', include (Admin. Site. URLs), and introduce admin from Django. contrib.
From Django. conf. URLs. defaults import * # uncomment the next two lines to enable the
subscription account defaults to the admin account for Office 365.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/06/wKioL1WQBAmxAsBkAAa1ABOEJMQ131.jpg "title=" 02.png "alt=" Wkiol1wqbamxasbkaaa1aboejmq131.jpg "/>1 , install the Office suite on your computerIf you click on the "Install Office on PC" button in the page, "1" in this section. Office 365 will distribute a Setup program for Office installed online on your computer. Running
Almost every application or dynamic website needs to be managed in the background. background management plays an important role in the whole interface design. Many management screens are bundled with this application (such as WordPress, magento, etc.), but custom applications require Custom backend management. We usually use a simple process to create a management template, but we have to double the effort.
Thanks to the designers/developers for designing various free Management Templates for
Modify and add rich text editor on the Django 2.0 admin background management interface, djangoadmin
1. File Path:
For example, if the Python environment is on the drive F: \ My \ django \ env \ Lib \ site-packages \ django \ contrib \ admin \ templates \ admin \
2. Modify the logon Interface Name:
Initial Django Logon: F: \ My \ django \ env \ Lib \ site-packag
Enable Administrator features
The Django Administrator feature is not enabled by default-this is an optional option. To enable administrator functionality for your program, you need to do these three things:
1. Add "Django.contrib.admin" to the Installed_apps setting.
2. Run Python manage.py syncdb. When you add a new application to Installed_apps, the database table needs to be manually updated.
3. Edit file mysite/urls.py, uncomment "uncomment the next two lines ..." The line comments belo
Installing NGINXInstalling NGINX PlusInstalling NGINX Open SourceNGINX Plus on Microsoft AzureNGINX Plus on Amazon EC2NGINX Plus on the Google Cloud PlatformGetting StartedRuntime control–starting and stopping nginx and nginx Plus processes, including zero-downtime reconfiguration and binary UpgradesBasic functionalityWeb ServerServing Static contentReverse ProxyCompression and decompressionWeb Content CacheManaging SSL TrafficSSL terminationSSL Termination for TCP UpstreamsSSL between NGINX and
Django has no read-only permission by default and can only be implemented by itself. I checked a lot of information and finally got it done.
Modify Admin. pyFrom Django. contrib. admin. util import flatten_fieldsets # introduce classClass gconfadmin (Admin. modeladmin ):List_display = ('mailserver', 'mailsender', 'mail _ on_off ', 'sms _ on_off ')# Search field
See H-ui Admin backstage compare like
But don't know why I'm so stuck, open the page and refresh it for 5-6 seconds
and other people's DEMO is very smooth, we have experience?
Check with Google Chrome, good dozens of of these errorsUncaught Referenceerror:loadready is not definedVM82 product_category.html:93 uncaught referenceerror:loadready is not definedVM82 product_category.html:93 uncaught referenceerror:loadready is not definedVM82 product_categ
1. New projects and projects under the appDjango-admin Startproject csvt03Django-admin Startapp App12. Modify the settings.py fileSet the default installation appInstalled_apps = ( 'Django.contrib.auth', 'Django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'Django.contrib.staticfiles', 'App1', #uncomment the next line to enable
Django admin site (2) ModelAdmin methods, djangomodeladminModelAdmin methods
Save_model (request, obj, form, change)
This method is used when the admin interface saves the model instance. Request is an HttpRequest instance, obj is a model instance, form is a ModelForm instance, and change is a bool value, depending on whether the model instance is added or modified.
Override this method to perform some pre-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.