Hi,

I hope someone can shed some light on this as I have been trying to
get Django to work for hours and hours.

If I run a Django site that does not have a database connection the
localserver starts correctly, however if I run a site that requires a
database connection I get the following error when I run:

python manage.py syncdb

Validating models...
Unhandled exception in thread started by <function inner_run at
0x4bbb30>
Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/django/core/management/
commands/runserver.py", line 47, in inner_run
    self.validate(display_num_errors=True)
  File "/Library/Python/2.5/site-packages/django/core/management/
base.py", line 112, in validate
    num_errors = get_validation_errors(s, app)
  File "/Library/Python/2.5/site-packages/django/core/management/
validation.py", line 60, in get_validation_errors
    for c in f.choices:
  File "/Users/Arif/Sites/Acquisition App/acquisitionapp/../
acquisitionapp/app/models.py", line 184, in __iter__
    for o in Organisation.objects.filter(models.Q(administrator=user)
| models.Q(participants=user)).distinct():
  File "/Library/Python/2.5/site-packages/django/db/models/query.py",
line 164, in _result_iter
    self._fill_cache()
  File "/Library/Python/2.5/site-packages/django/db/models/query.py",
line 586, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "/Library/Python/2.5/site-packages/django/db/models/query.py",
line 252, in iterator
    for row in self.query.results_iter():
  File "/Library/Python/2.5/site-packages/django/db/models/sql/
query.py", line 204, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/Library/Python/2.5/site-packages/django/db/models/sql/
query.py", line 1609, in execute_sql
    cursor.execute(sql, params)
  File "/Library/Python/2.5/site-packages/django/db/backends/util.py",
line 18, in execute
    return self.cursor.execute(sql, params)
  File "build/bdist.macosx-10.5-i386/egg/MySQLdb/cursors.py", line
166, in execute
  File "build/bdist.macosx-10.5-i386/egg/MySQLdb/connections.py", line
35, in defaulterrorhandler
_mysql_exceptions.ProgrammingError: (1146, "Table
'acquisitionapp.app_organisation' doesn't exist")

Any help would be really appreciated.

Many thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to