About the Django website admin css missing issue in Apache deployment

Source: Internet
Author: User
Tags django website

Beginner Django, when deployed on Apache, found that the admin of the CSS is missing, not normal display. Google, Baidu has countless solutions ineffective, or on the stackowerflow to get inspiration, by looking at httpd log, after a morning finally resolved.

Deployment

    • Install the Mod_wsgi module, open the httpd.conf, and add the following
LoadModule wsgi_module  modules//d:/django-app/mysite/mysite/wsgi.pywsgipythonpath D:/ django-app/mysite<directory d:/django-app/mysite/mysite><files wsgi.py>from  All </Files></Directory>

Admin CSS problem, add these fixes

" C:/python27/lib/site-packages/django/contrib/admin/static/admin ">    Order deny,allow    from all </Directory>  /  Static/admin/c:/python27/lib/site-packages/django/contrib/admin/static/admin/

About the Django website admin css missing issue in Apache deployment

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.