Django with Haystack

2017-01-08 Thread Branko Zivanovic
I'm using haystack with whoosh backend to implement a search on website. It works on /search page but it doesn't work on /members. It redirects me to search page if I try to submit form on any other page. How can I add search on multiple pages? -- You received this message because you are subs

Re: Are we ever meant to make a totally new python module in our app?

2017-01-08 Thread Vijay Khemlani
Using urls.py and views.py as names is not mandatory in the app, the "urls.py" is referenced in the urls.py of the project, and can have any name you want, but these are convention names and useful for other people reading your code models.py is a tad more special because models need to be auto di

Are we ever meant to make a totally new python module in our app?

2017-01-08 Thread sas3897
First off, I'd like to say that I am a huge noob to Django in general so I apologize if it's a dumb question, and second the title's vague because it's hard to concisely phrase this question so allow me to clarify. Throughout the tutorials we are told to make several specifically-named python m

Re: Session key is empty after login on Django Channels development server

2017-01-08 Thread Andrew Godwin
Hi, Have you tried removing the "channels" package from INSTALLED_APPS and making sure it fails without that as well? Andrew On Sun, Jan 8, 2017 at 1:43 AM, Utku Gültopu wrote: > When I log a user in using django.contrib.auth.login function, session_key > is sometimes not set in the request of

Re: data must be QuerySet-like (have count() and order_by()) or support list(data) -- NoneType has neither

2017-01-08 Thread Vijay Khemlani
At least by looking at the source code https://github.com/bradleyayers/django-tables2/blob/master/django_tables2/views.py It seems you need to have a "table_data" attribute, or a "object_list" attribute, or define a "get_table_data" method in your class On 1/8/17, Ali khan wrote: > I am using D

Session key is empty after login on Django Channels development server

2017-01-08 Thread Utku Gültopu
When I log a user in using django.contrib.auth.login function, session_key is sometimes not set in the request of the view. Code in views.py: from django.contrib import auth from django.contrib.auth.models import User from django.http import HttpResponse import json def login(request): user