Note that there are some explanatory texts on larger screens.

plurals
  1. POerror while linking mysql and django
    primarykey
    data
    text
    <p>i am using aptana for creating a website using django. I have installed mysql but not able to link the database when i run this command <code>*Python2.7 manage.py runserver*</code> i get a message that Python2.7 not recognized and when i run this command <em>Python manage.py runserver</em> i get a error message</p> <pre><code>C:\Users\George\Documents\Aptana Studio 3 Workspace\Firstwebsite&gt;python manage.py runserver </code></pre> <p>Validating models...</p> <pre><code>Unhandled exception in thread started by &lt;bound method Command.inner_run of &lt;dja ngo.contrib.staticfiles.management.commands.runserver.Command object at 0x028E5C 70&gt;&gt; Traceback (most recent call last): File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 92, in inner_runself.validate(display_num_errors=True) `File "C:\Python27\lib\site-packages\django\core\management\base.py", line 280, in validate num_errors = get_validation_errors(s, app)` File "C:\Python27\lib\site-packages\django\core\management\validation.py", line 28, in get_validation_errors from django.db import models, connection File "C:\Python27\lib\site-packages\django\db\__init__.py", line 40, in &lt;module&gt; backend = load_backend(connection.settings_dict['ENGINE']) File "C:\Python27\lib\site-packages\django\db\__init__.py", line 34, in __getattr__ return getattr(connections[DEFAULT_DB_ALIAS], item) File "C:\Python27\lib\site-packages\django\db\utils.py", line 93, in __getitem__ backend = load_backend(db['ENGINE']) File "C:\Python27\lib\site-packages\django\db\utils.py", line 27, in load_backend return import_module('.base', backend_name) File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in import_module__import__(name) File "C:\Python27\lib\site-packages\django\db\backends\mysql\base.py", line 17, in &lt;module&gt; raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb </code></pre> <p><strong>I am using Django 1.5 and python 2.7 and aptana 3 I am confused whether i am tying this commands in the correct directory.</strong> any help !!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload