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

Django is deployed using the bootstrap-admin interface

WBOY
Release: 2016-07-29 09:11:15
Original
1201 people have browsed it

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.

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template