Próbuję zainstalować xadmin (jest to wtyczka django do użycia backoffice z bootstrapem twittera). Ale kiedy uruchomić mój projekt, mam następujący błąd w moim terminalu pycharm:AttributeError: Obiekt 'module' nie ma atrybutu 'setdefaultencoding'
File "C:\Python34\lib\site-packages\xadmin\sites.py", line 10, in <module>
sys.setdefaultencoding("utf-8")
AttributeError: 'module' object has no attribute 'setdefaultencoding'
Jest to ekstrakt z kodu źródłowego od sites.py w wtyczce xadmin:
import sys
from functools import update_wrapper
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models.base import ModelBase
from django.views.decorators.cache import never_cache
from imp import reload
reload(sys)
sys.setdefaultencoding("utf-8")
Projekt jest uruchomiony z interpreterem Pythona 3.4 i Django 1.7.1. Wersja xadmin to 0.5.0
Co mogę zrobić?
OK, myślę, że domyślnie będę zachowywał administratora django ... Dzięki za pomoc faceci –