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: