Nice to meet you, everyone !
I can use English very very little.
But I want to ask you the question.
Now, I'm building the rental server what use django.
But, the page is "500 Internal Server Error" and I see the log message as follows:
=================================================================================================
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
=================================================================================================
I tried install mysql-python:
=================================================================================================
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb
running build_ext
creating build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/_mysql_exceptions.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg
creating build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/__init__.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/converters.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/connections.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/cursors.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/release.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/times.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb
creating build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/__init__.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/CR.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/FIELD_TYPE.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/ER.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/FLAG.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/REFRESH.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/MySQLdb/constants/CLIENT.py -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants
copying build/lib.freebsd-8.1-RELEASE-p13-amd64-2.7/_mysql.so -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/_mysql_exceptions.py to _mysql_exceptions.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/__init__.py to __init__.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/converters.py to converters.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/connections.py to connections.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/cursors.py to cursors.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/release.py to release.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/times.py to times.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/__init__.py to __init__.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/CR.py to CR.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/FIELD_TYPE.py to FIELD_TYPE.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/ER.py to ER.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/FLAG.py to FLAG.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/REFRESH.py to REFRESH.pyc
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/MySQLdb/constants/CLIENT.py to CLIENT.pyc
creating stub loader for _mysql.so
byte-compiling build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/_mysql.py to _mysql.pyc
creating build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO
copying MySQL_python.egg-info/PKG-INFO -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO
copying MySQL_python.egg-info/SOURCES.txt -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO
copying MySQL_python.egg-info/dependency_links.txt -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO
copying MySQL_python.egg-info/top_level.txt -> build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO
writing build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg' and adding 'build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg' to it
removing 'build/bdist.freebsd-8.1-RELEASE-p13-amd64/egg' (and everything under it)
Processing MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg
Removing /home/username/local/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg
Copying MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg to /home/username/local/lib/python2.7/site-packages
MySQL-python 1.2.3 is already the active version in easy-install.pth
Installed /home/username/local/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg
Processing dependencies for MySQL-python==1.2.3
Finished processing dependencies for MySQL-python==1.2.3
=================================================================================================
Now, the contents of /home/username/local/lib/python2.7/site-packages/ is follows:
=================================================================================================
-rw-r--r-- 1 username users 1225 Django-1.5-py2.7.egg-info
-rw-r--r-- 1 username users 104697 MySQL_python-1.2.3-py2.7-freebsd-8.1-RELEASE-p13-amd64.egg
drwxr-xr-x 17 username users 512 django
-rw-r--r-- 1 username users 276 easy-install.pth
-rw-r--r-- 1 username users 333087 setuptools-0.6c11-py2.7.egg
-rw-r--r-- 1 username users 30 setuptools.pth
-rw-r--r-- 1 username users 2362 site.py
-rw-r--r-- 1 username users 1749 site.pyc
=================================================================================================
For example, I edit the source use Eclipse now.
I can see "MySQLdb" directory in Windows C:\Python27\Lib\site-packages.
Therefore, Mypage could shown if I delete "DATABASES" in settings.py
Could I succeeded install ?? --
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment