Traceback most recent call last File opt django lib python django temp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Traceback (most recent call last):
File "/opt/django/lib/python/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/opt/django/lib/python/django/template/defaulttags.py", line 373, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "/opt/django/lib/python/django/core/urlresolvers.py", line 252, in reverse
*args, **kwargs)))
File "/opt/django/lib/python/django/core/urlresolvers.py", line 226, in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(), ()])
File "/opt/django/lib/python/django/core/urlresolvers.py", line 160, in _get_reverse_dict
for name, (matches, pat) in pattern.reverse_dict.iteritems():
File "/opt/django/lib/python/django/core/urlresolvers.py", line 153, in _get_reverse_dict
if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'):
File "/opt/django/lib/python/django/core/urlresolvers.py", line 197, in _get_urlconf_module
self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
File "/opt/django/projects/oxyum/apps/postimage/urls.py", line 3, in <module>
from postimage.views import *
File "/opt/django/projects/oxyum/apps/postimage/views.py", line 9, in <module>
from postimage.forms import AttachForm, UploadForm
File "/opt/django/projects/oxyum/apps/postimage/forms.py", line 28, in <module>
class UploadForm(forms.Form):
File "/opt/django/projects/oxyum/apps/postimage/forms.py", line 29, in UploadForm
subdirectory = forms.CharField(_('Subdirectory'), required=False)
File "/opt/django/lib/python/django/forms/fields.py", line 144, in __init__
super(CharField, self).__init__(*args, **kwargs)
File "/opt/django/lib/python/django/forms/fields.py", line 91, in __init__
extra_attrs = self.widget_attrs(widget)
File "/opt/django/lib/python/django/forms/fields.py", line 162, in widget_attrs
return {'maxlength': str(self.max_length)}
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)