ここから、次のようにモデルを変更しました。
class MyModel(User):
class Meta:
verbose_name=u"my app verbose name"
app_label = u"My Members"
db_table = "members_mymodel"
今、django admin で app に行くときにエラーが発生しました:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "/Library/Python/2.6/site-packages/django/contrib/staticfiles/handlers.py", line 68, in __call__
return self.application(environ, start_response)
File "/Library/Python/2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
response = self.get_response(request)
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py", line 146, in get_response
response = debug.technical_404_response(request, e)
File "/Library/Python/2.6/site-packages/django/views/debug.py", line 294, in technical_404_response
'reason': smart_str(exception, errors='replace'),
File "/Library/Python/2.6/site-packages/django/utils/encoding.py", line 123, in smart_str
errors) for arg in s])
File "/Library/Python/2.6/site-packages/django/utils/encoding.py", line 124, in smart_str
return unicode(s).encode(encoding, errors)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py", line 191, in __repr__
return '<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py", line 191, in __repr__
return '<%s %s (%s:%s) %s>' % (self.__class__.__name__, self.urlconf_name, self.app_name, self.namespace, self.regex.pattern)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0130' in position 17: ordinal not in range(128)
管理者リンク:
http://localhost:8000/admin/My%20Members/
どうすればこの問題を解決できますか?
前もって感謝します