GithubHelp home page GithubHelp logo

Comments (3)

mk-fg avatar mk-fg commented on June 2, 2024

Thanks for the report.

Can you get a full traceback of that error?

Haven't ran the app with Django-1.8 myself, but the "field" is not used with select_related anywhere in the code explicitly, so I've no idea where this comes from.
I think it might also be an easily reproducible thing with Django-1.8 (as often is the case with major django updates), so maybe I'll stumble upon it myself eventually.

from feedjack.

renpj avatar renpj commented on June 2, 2024

here is the full traceback:
Environment:
Request Method: GET
Request URL: http://192.168.56.190:8000/feedjack
Django Version: 1.8
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'feedjack')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/feedjack/views.py" in mainview
  2.  (_mainview)(request, view_data, **criterias)
    
    File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/http.py" in inner
  3.             response = func(request, _args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/feedjack/views.py" in _mainview
  4.  ctx = fjlib.page_context(request, site, **criterias)
    
    File "/usr/local/lib/python2.7/dist-packages/feedjack/fjlib.py" in page_context
  5. if site.show_tagcloud and page.object_list:
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in nonzero
  6.     return type(self).**bool**(self)
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in bool
  7.     self._fetch_all()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in _fetch_all
  8.         self._result_cache = list(self.iterator())
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in iterator
  9.     results = compiler.execute_sql()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  10.         sql, params = self.as_sql()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in as_sql
  11.         extra_select, order_by, group_by = self.pre_sql_setup()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in pre_sql_setup
  12.     self.setup_query()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in setup_query
  13.     self.select, self.klass_info, self.annotation_col_map = self.get_select()
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in get_select
  14.         related_klass_infos = self.get_related_selections(select)
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in get_related_selections
  15.             select, f.rel.to._meta, alias, cur_depth + 1, next, restricted)
    
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in get_related_selections
  16.                     ', '.join(_get_field_choices()) or '(none)',
    

Exception Type: FieldError at /feedjack
Exception Value: Invalid field name(s) given in select_related: 'post_processor_tags'. Choices are: (none)

from feedjack.

mk-fg avatar mk-fg commented on June 2, 2024

Should be fixed as of 91924b2 and 15.4.6, was indeed Django-1.8 incompatibility thing, thanks again for an early warning.

from feedjack.

Related Issues (5)

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.