Ubuntu Kylin + apache2 + Django 1.7.1 + python 2.7.6

Source: Internet
Author: User

Follow the tutorials using WSGI to configure.

But there are a lot of problems, mainly in the. wsgi file

' /home/phoenix/django/expr/expr ' if  not inch Sys.path:    sys.path.append (path)#sys.path.append ('/home/phoenix/django/expr/expr ') os.environ['django_settings_module'SETTINGS' 

This paragraph is still subject to revision, and there are still similar errors, but it is much better than the simple rough 500 that was created by the path.

Setting problems with the path parameter in. WSGI can cause a lot of trouble.

# Import Django.core.handlers.wsgi # application = Django.core.handlers.wsgi.WSGIHandler ()  from Import  = Get_wsgi_application ()

The comment is the function that the tutorial uses, actually because the version question will error, need to change to use now.

Ubuntu Kylin + apache2 + Django 1.7.1 + python 2.7.6

Related Article

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.