python - Bug in django voting? -


i trying retrieve top voted items in django. here's relevant line of code:

originallist = [x[0] x in list(vote.objects.get_top(item, endidx))[startidx:]] 

the indexes pagination purposes. when try load page in browser, get:

attributeerror @ /items/top/ 'settings' object has no attribute 'database_engine' 

however, attribute should looking not database_engine, rather, in databases['default']['engine']. how can fixed?

yea, looks code hasn't been touched in 4 years. claims

note application requires python 2.3 or later, , django 0.97-pre or later. can obtain python http://www.python.org/ , django http://www.djangoproject.com/. 

at time, way define database engine , deprecated. personally, avoid using this, there other issues well...


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -