I'm trying to add a FileField to one of my models, but I keep getting
an exception whenever I try to open the admin page. The code is:

class Test(models.Model):
    fileUploadField = models.FileField(upload_to='tmp/', core=True)

The stacktrace is below.

====================================

Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\core\handlers\base.py"
in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\decorators.py"
in _checklogin
  55. return view_func(request, *args, **kwargs)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\views\decorators\cache.py"
in _wrapped_view_func
  40. response = view_func(request, *args, **kwargs)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\main.py"
in change_list
  739. cl = ChangeList(request, model)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\main.py"
in __init__
  570. self.get_results(request)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\contrib\admin\views\main.py"
in get_results
  628. result_list = list(self.query_set)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\query.py"
in __iter__
  103. return iter(self._get_data())
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\query.py"
in _get_data
  430. self._result_cache = list(self.iterator())
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\models\query.py"
in iterator
  172. cursor.execute("SELECT " + (self._distinct and "DISTINCT " or
"") + ",".join(select) + sql, params)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\backends\util.py"
in execute
  12. return self.cursor.execute(sql, params)
File
"C:\Python24\lib\site-packages\django-0.95-py2.4.egg\django\db\backends\mysql\base.py"
in execute
  35. return self.cursor.execute(sql, params)
File "C:\Python24\lib\site-packages\MySQLdb\cursors.py" in execute
  137. self.errorhandler(self, exc, value)
File "C:\Python24\lib\site-packages\MySQLdb\connections.py" in
defaulterrorhandler
  33. raise errorclass, errorvalue

  OperationalError at /admin/translator/translation/
  (1054, "Unknown column 'translator_translation.fileUploadField' in
'field list'")


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to