Thanks for the responses, Stomme poes. I finally got the path to Python working but now when I try to do "python manage.py runserver" I get the following response:
Code:
$ python manage.py runserver
Validating models...
Unhandled exception in thread started by <bound method Command.inner_run of <django.core.management.commands.runserver.C
Traceback (most recent call last):
File "c:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 88, in inner_run
self.validate(display_num_errors=True)
File "c:\Python27\lib\site-packages\django\core\management\base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "c:\Python27\lib\site-packages\django\core\management\validation.py", line 102, in get_validation_errors
connection.validation.validate_field(e, opts, f)
File "c:\Python27\lib\site-packages\django\db\backends\mysql\validation.py", line 14, in validate_field
db_version = self.connection.get_server_version()
File "c:\Python27\lib\site-packages\django\db\backends\mysql\base.py", line 338, in get_server_version
self.cursor()
File "c:\Python27\lib\site-packages\django\db\backends\__init__.py", line 250, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "c:\Python27\lib\site-packages\django\db\backends\mysql\base.py", line 322, in _cursor
self.connection = Database.connect(**kwargs)
File "C:\Users\Christian\AppData\Roaming\Python\Python27\site-packages\MySQLdb\__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "C:\Users\Christian\AppData\Roaming\Python\Python27\site-packages\MySQLdb\connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")
even though I do have MySQL installed and running.
Bookmarks