Hi everyone, I'm brand-new to Django, so please bear with me.
I have created an app called 'portfolio' within my project, and added it to my installed apps in 'settings.py' In my models.py, here are my class definitions: from django.db import models class WorkCategory(models.Model): title = models.CharField(max_length = 30) position = models.PositiveSmallIntegerField() class WorkType(models.Model): title = models.CharField(max_length = 40) class Customer(models.Model): position = models.PositiveSmallIntegerField() name = models.CharField(max_length = 50) url = models.CharField(max_length = 50) display = models.BooleanField() class WorkSample(models.Model): work_category = models.ForeignKey(WorkCategory) work_type = models.ForeignKey(WorkType) customer = models.ForeignKey(Customer) title = models.CharField(max_length = 75) desc = models.TextField() thumbnail = models.ImageField(upload_to = '/public/images') sample_image = models.ImageField(upload_to = '/public/images') sample_alt = models.CharField(max_length = 75) permalink = models.SlugField() When I run: 'python manage.py sqlall portfolio', I get the following error: iMac:~/django_projects/btaylor_design bt$ python manage.py sqlall portfolio Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/__init__.py", line 272, in execute_manager utility.execute() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/__init__.py", line 219, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/base.py", line 72, in run_from_argv self.execute(*args, **options.__dict__) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/base.py", line 86, in execute output = self.handle(*args, **options) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/base.py", line 136, in handle app_output = self.handle_app(app, **options) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/commands/sqlall.py", line 10, in handle_app return '\n'.join(sql_all(app, self.style)) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/sql.py", line 244, in sql_all return sql_create(app, style) + sql_custom(app) + sql_indexes(app, style) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/sql.py", line 85, in sql_create known_models = set([model for model in installed_models(table_list()) if model not in app_models]) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management/sql.py", line 14, in table_list return get_introspection_module().get_table_list(cursor) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/utils/functional.py", line 3, in _curried return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/__init__.py", line 38, in _import_database_module return __import__('%s%s.%s' % (import_path, settings.DATABASE_ENGINE, module_name), {}, {}, ['']) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/backends/mysql/introspection.py", line 1, in <module> from django.db.backends.mysql_old.base import DatabaseOperations ImportError: No module named mysql_old.base I'm using Python 2.5.1 and MySQL 5 on Mac OS X, 10.4.11, Intel. I have validated my models using: python manage.py validate, and there were 0 errors. I have also started up a shell using: python manage.py shell, opened a connection: from django.db import connection cursor = connection.cursor() ...and it did not throw an error. Anyone know what I need to do differently? I would appreciate some help! Kind regards, Brandon -- View this message in context: http://www.nabble.com/Error-running%3A-python-manage.py-sqlall-%27myapp%27-tp15919765p15919765.html Sent from the django-users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---