Home Backend Development PHP Tutorial Django is deployed using the bootstrap-admin interface

Django is deployed using the bootstrap-admin interface

Jul 29, 2016 am 09:11 AM
addclass root static

Error

The static resources in the admin management directory cannot be loaded. The specific reason is unknown.

Solution

  1. Collecting static resources is required.
    Reference resources

    <code>在settings.py文件中添加STATIC_ROOT='/static/'
    此目录必须为相对目录。
    采用python manage.py collectstatic 搜集需要的静态资源,存放在STATIC_ROOT目录下面。
    </code>
    Copy after login
  2. Configure the nginx server to support static resources.
    Reference resources

    <code>location /static {
        alias /var/www/my_blog/static;
    }
    </code>
    Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the interface deployment of Django using bootstrap-admin, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Log in to Ubuntu as superuser Log in to Ubuntu as superuser Mar 20, 2024 am 10:55 AM

In Ubuntu systems, the root user is usually disabled. To activate the root user, you can use the passwd command to set a password and then use the su- command to log in as root. The root user is a user with unrestricted system administrative rights. He has permissions to access and modify files, user management, software installation and removal, and system configuration changes. There are obvious differences between the root user and ordinary users. The root user has the highest authority and broader control rights in the system. The root user can execute important system commands and edit system files, which ordinary users cannot do. In this guide, I'll explore the Ubuntu root user, how to log in as root, and how it differs from a normal user. Notice

Step by step using Python to delete long path files under Windows Step by step using Python to delete long path files under Windows Apr 12, 2023 pm 01:31 PM

0x01 Background of the article Recently, the storage of a business system of the author's company is approaching the limit, and the server will soon be unable to run. Because the business system A contains multiple subsystems A1, A2, A3... An, the middle of these subsystems Due to design reasons, the stored files are all stored in the same parent directory. The only difference is that the names of files and folders generated by different subsystems all start with the name of the subsystem. For example, the files generated by the A1 subsystem are all named A1xxxxxx​, and the file names generated by the A2 subsystem are all A2xxxxx. Now we need to delete the historical files of some of these subsystems to free up server space. Dozens of terabytes of data are stored together. Manual deletion will definitely not show up. We can only use program automation.

What is the difference between the root and alias directives in Nginx configuration? What is the difference between the root and alias directives in Nginx configuration? May 12, 2023 pm 12:16 PM

Both root and alias can be defined in the location module, and are used to specify the real path of the requested resource, for example: location/i/{root/data/w3;} requests http://foofish.net/i/top.gif When this address is used, the corresponding real resource in the server is the /data/w3/i/top.gif file. Note: The real path is the value specified by root plus the value specified by location. And alias is just like its name. The path specified by alias is the alias of location. No matter how the value of location is written, the real path of the resource is the path specified by alias, such as

How to change the root user name in Linux How to change the root user name in Linux May 18, 2023 pm 07:50 PM

1. Taking CentOS as an example, after logging in, modify /etc/passwd and /etc/shadow, change the root starting on the first line to a new user name (such as admin), and save through wq! after modification. 2. After modifying and saving, it will take effect after restarting the server. You can check the permissions of the file and see that the account column has changed to admin, as follows: Note: The default user with the highest administrative authority in Linux is root, uid is 0. Only uid is recognized in the system, so as long as uid is 0, the system is regarded as the highest administrative user. However, there may be certain problems with applications. Some software uses the root user by default, so if you have limited understanding of software applications,

Advantages and Disadvantages of Rooting Your Phone Advantages and Disadvantages of Rooting Your Phone Jul 06, 2023 pm 04:53 PM

The benefits of rooting your phone: 1. You can back up the system; 2. You can use advanced programs; 3. You can modify and delete system programs; 4. You can install programs on the SD card; 5. You can modify system fonts, etc. Disadvantages: 1. After the mobile phone is rooted, it is easy to be invaded by Trojan viruses; 2. System damage may occur due to incompleteness and software compatibility issues; 3. After the mobile phone is rooted, the software mistakenly deletes system files, causing system errors; 4. There is a risk that user privacy will be leaked after rooting the phone, etc.

How to install Linux programs without root permissions How to install Linux programs without root permissions Jan 13, 2024 pm 03:27 PM

For some shared machines, we may not have root permissions, so it will be a little troublesome to install the program. In fact, as long as the relevant files are placed in their own directories, the root permission restrictions can be waived. I installed libevent without root permissions. Just specify the installation path to my /home directory through prefix: ./configure--prefix=/home/****/libevent--enable-sharedmakemakeinstallmakeverify#libevent test, others The installation may not be available.

What does it mean that the current phone is not rooted? What does it mean that the current phone is not rooted? Sep 19, 2023 pm 02:01 PM

The current mobile phone is not rooted, which means that the operating system of the mobile phone has not obtained super user permissions. In the Android system, root permission is the highest permission, which allows users to make in-depth modifications to the system and access sensitive system files. The phone is still in the default state. status, no system permissions have been modified, which means that users cannot directly access and modify system files, and cannot perform some advanced system operations. Ordinary users using unrooted mobile phones can use the basic functions of the mobile phone and install applications normally. There will be restrictions in certain special scenarios.

How to set password for root in mysql How to set password for root in mysql May 29, 2023 pm 01:22 PM

Step 1: First log in to MySQL and enter the following command in the terminal to enter the MySQL console: sudomysql If you are prompted for a password after entering this command, please enter the password of your root user. Step 2: Change the password. After we enter the MySQL console, we can start to change the password of the root user. Set the password as follows: ALTERUSER'root'@'localhost'IDENTIFIEDWITHmysql_native_passwordBY'new_password&am

See all articles