Giter Site home page Giter Site logo

Comments (3)

bartTC avatar bartTC commented on June 24, 2024

What error happens here exactly? Can you provide a traceback?

from django-frontendadmin.

artemrizhov avatar artemrizhov commented on June 24, 2024

UnicodeEncodeError at /frontendadmin/change/gblocks/titleandtext/5/
('ascii', u'/\u0443\u0441\u043b\u0443\u0433\u0438/', 1, 7, 'ordinal not in range(128)')
Request Method: POST
Request URL: http://127.0.0.1:8000/frontendadmin/change/gblocks/titleandtext/5/?next=/%D1%83%D1%81%D0%BB%D1%83%D0%B3%D0%B8/
Exception Type: UnicodeEncodeError
Exception Value:
('ascii', u'/\u0443\u0441\u043b\u0443\u0433\u0438/', 1, 7, 'ordinal not in range(128)')
Exception Location: /home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/http/init.py in _convert_to_ascii, line 306
Python Executable: /home/artem/Work/dev/corp/env/bin/python
Python Version: 2.6.4

Traceback:
File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response

  1.             response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  2.     response = view_func(request, _args, *_kwargs)
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  3.     response = view_func(request, _args, *_kwargs)
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/contrib/auth/decorators.py" in call
  4.         return self.view_func(request, _args, *_kwargs)
    
    File "/home/artem/Work/dev/corp/src/apps/frontendadmin/views.py" in change
  5. cancel = _handle_cancel(request)
    
    File "/home/artem/Work/dev/corp/src/apps/frontendadmin/views.py" in _handle_cancel
  6.         return HttpResponseRedirect(request.GET.get('next'))
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/http/init.py" in init
  7.     self['Location'] = redirect_to
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/http/init.py" in setitem
  8.     header, value = self._convert_to_ascii(header, value)
    
    File "/home/artem/Work/dev/corp/env/lib/python2.6/site-packages/django/http/init.py" in _convert_to_ascii
  9.                 yield value.encode('us-ascii')
    

from django-frontendadmin.

artemrizhov avatar artemrizhov commented on June 24, 2024

(There are two such places in views.py)

from django-frontendadmin.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.