#13322: Problem with inspectdb and encoding -------------------------------------------------+-------------------------- Reporter: josema...@simpleoption.com | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.2-beta Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------------+-------------------------- Changes (by josema...@simpleoption.com):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: While trying to generate model from database with manage.py inspectdb I get the following error: {{{ class Categorias(models.Model): Traceback (most recent call last): File "./manage.py", line 11, in <module> execute_manager(settings) File "/usr/local/lib/python2.6/site- packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/usr/local/lib/python2.6/site- packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.6/site- packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/local/lib/python2.6/site- packages/django/core/management/base.py", line 223, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.6/site- packages/django/core/management/base.py", line 352, in handle return self.handle_noargs(**options) File "/usr/local/lib/python2.6/site- packages/django/core/management/commands/inspectdb.py", line 22, in handle_noargs for line in self.handle_inspection(options): File "/usr/local/lib/python2.6/site- packages/django/core/management/commands/inspectdb.py", line 113, in handle_inspection field_desc = '%s = models.%s' % (att_name, field_type) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/13322#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.