Python manage.py Some errors after the shell:

Source: Internet
Author: User

1. Some errors after executing the Python manage.py shell:

[Email protected]:~/myobject$ python manage.py Shell/usr/lib/python2.7/dist-packages/pkg_resources.py:1049:userwarning:/home/wyl/.python-eggs isWritable by Group/others andVulnerable to attack when used with Get_resource_filename. Consider a more secure location (set with. Set_extraction_pathorThe python_egg_cache environment variable). Warnings.warn (msg, userwarning) Python2.7.8 (Default, Oct 20 2014, 15:05:19) Type"Copyright","credits" or "License"  forMore information. IPython2.3.0--An enhanced Interactive Python.? Introduction andOverview of IPython's features.%quickrefQuick reference.helpPython's own Help system.Object? Details about'Object', use'object??'  forextra details. in [1]:

Some people say that is the authority problem, as long as the implementation of the permission set statement is OK, but I executed a sentence of permission statement but still not OK.

Permission Settings statement:

chmod g-wx,o-wx ~/.python-eggs

Error after statement execution:

[Email protected]:~/myobject$ python manage.py shellpython2.7.8 (Default, Oct 20 2014, 15:05:19) Type"Copyright","credits" or "License"  forMore information. IPython2.3.0--An enhanced Interactive Python.? Introduction andOverview of IPython's features.%quickrefQuick reference.helpPython's own Help system.Object? Details about'Object', use'object??'  forextra details. in [0][

The error is indeed different. But what is the reason for the above error?

In fact, to this step has no error, this is just not a Python interface, this is Ipython operation interface, and this is more humane than the operation of Python, this also with the tab command to complement the function, is not very cool Ah!

in [3]: Fro fromFrozenset in [3]: fromdjango.django.conf django.forms django.templatetagsdjango.contrib django.http Django. Testdjango.core django.middleware django.utilsdjango.db django.shortcuts Django.viewsdjango.dis Patch Django.template in [3]: fromdjango.ddjango.db Django.dispatch in [3]: fromDjango.dbImportconnconnection connections in [3]: fromDjango.dbImportConnectionin [4]: cursor =connection.cursor () in [5]:

Python manage.py Some errors after the shell:

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.