Hi, I put all the strings on my app on english and it works, but I translated them to spanish with makemessages and compilemessages and then every time I try to load a page on the /admin I get the exception at the end. My apache envvars and Django are all set to UTF-8. If I delete the django.mo file everything works again.
This problem is driving me mad... Environment: Request Method: GET Request URL: http://fbwidget.jaratech.com/facebook_vacancies_widget/admin/ Django Version: 1.1.1 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'facebook_vacancies_widget.clients', 'facebook_vacancies_widget.fbapp', 'facebook_vacancies_widget.fbnotifications', 'facebook_vacancies_widget.fbusers', 'facebook_vacancies_widget.countries', 'facebook_vacancies_widget.vacancies', 'facebook_vacancies_widget.django_extensions', 'facebook_vacancies_widget.scrapper', 'facebook_vacancies_widget.tweets', 'facebook_vacancies_widget.provincias'] Installed Middleware: ('django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 83. request.path_info) File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve 216. for pattern in self.url_patterns: File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_url_patterns 245. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_urlconf_module 240. self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.5/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/www/facebook_vacancies_widget/urls.py" in <module> 3. from facebook_vacancies_widget.admin import admin_site File "/var/www/facebook_vacancies_widget/admin.py" in <module> 7. from django.contrib.auth.admin import UserAdmin, GroupAdmin File "/usr/lib/python2.5/site-packages/django/contrib/auth/admin.py" in <module> 128. admin.site.register(Group, GroupAdmin) File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py" in register 90. validate(admin_class, model) File "/usr/lib/python2.5/site-packages/django/contrib/admin/ validation.py" in validate 22. models.get_apps() File "/usr/lib/python2.5/site-packages/django/db/models/loading.py" in get_apps 100. self._populate() File "/usr/lib/python2.5/site-packages/django/db/models/loading.py" in _populate 58. self.load_app(app_name, True) File "/usr/lib/python2.5/site-packages/django/db/models/loading.py" in load_app 74. models = import_module('.models', app_name) File "/usr/lib/python2.5/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/www/facebook_vacancies_widget/fbnotifications/models.py" in <module> 5. from facebook_vacancies_widget.vacancies.models import Process File "/var/www/facebook_vacancies_widget/vacancies/models.py" in <module> 23. class Division(models.Model): File "/usr/lib/python2.5/site-packages/django/db/models/base.py" in __new__ 92. new_class.add_to_class(obj_name, obj) File "/usr/lib/python2.5/site-packages/django/db/models/base.py" in add_to_class 213. value.contribute_to_class(cls, name) File "/usr/lib/python2.5/site-packages/django/db/models/fields/ related.py" in contribute_to_class 737. super(ForeignKey, self).contribute_to_class(cls, name) File "/usr/lib/python2.5/site-packages/django/db/models/fields/ related.py" in contribute_to_class 105. self.do_related_class(other, cls) File "/usr/lib/python2.5/site-packages/django/db/models/fields/ related.py" in do_related_class 117. self.contribute_to_related_class(other, self.related) File "/usr/lib/python2.5/site-packages/django/db/models/fields/ related.py" in contribute_to_related_class 746. setattr(cls, related.get_accessor_name(), ForeignRelatedObjectsDescriptor(related)) Exception Type: UnicodeEncodeError at /admin/ Exception Value: 'ascii' codec can't encode characters in position 5-8: ordinal not in range(128) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.