python - Getting Django to work with Eclipse -
I'm new to Python and Django, but wanted to follow some tutorials. I installed Python, then the Django, and then the pydev plugin for eclipse. In the eclipse I tried to run a new project and tried to run it, I have established a run configuration for manage.py with argument runner and it has said "model valid", but I never said anything.
I also tried to run through the command line, but I found some errors, in eclipse:
c: \ user \ jp \ workspace \ mysite \ Src \ mysite> python manage.py runerver Confirm model ... unwanted exceptions for threads & lt; Function by internal_rane 0x02851E in 30 & gt; Traceback (most recent call final): file "c: \ Python27 \ lib \ site-packages \ django \ core \ management \ commands \ runerver. Py", line 48, in the inner_run self.validate (display_num_errors = true) file "C: \ Python27 \ lib \ site-packages \ django" c: \ Python27 \ lib \ site-packages \ django \ core \ management \ base.py ", line 245, valid num_errors = get_validation_errors (s, app) file From the django.db import model in the \ core \ management \ validation.py ", lin e22, get_validation_errors, the connection file" c: \ Python27 \ lib \ site-packages \ django \ db \ __ init__.py ", line 75, In & lt; Module E & gt; Connection = Connection [DEFAULT_DB_ALIAS] The file "c: \ Python27 \ lib \ site-packages \ django \ db \ utils.py", in line 91, __getitem__ backend = load_backend (db ['engine']) "c: Python 27 \ lib \ site-packages \ django \ db \ utils.py ", line 32, load_back termination import_module ('.base', backend_name) in the file" c: \ Python27 \ lib \ site-packages \ django \ utils \ Importlib.py ", in line 35, im port_module __import __ (name) the file" c: \ Python27 \ lib \ site-packages \ django \ db \ backends \ mysql \ base.py ", in line 14, in & lt; Module & gt; ("Error loading the MySQLdb module:% s"% e) django.core.exceptions.ImproperlyConfigured: Error loading the MySQLdb module: Any mo named MySQLdb is open
I think that Do something with my SQL setup, but I'm not sure because this is a blank project and I have not written any code yet. I am worried that there is nothing in the eclipse.
I'm just starting to myself, apparently a MySQLdb plugin (sorry if that right word Is not) that you need to use in addition to a standard MySQL install. It is so much that Python can communicate with MySQL.
Comments
Post a Comment