Re: Website Documentation Search broken?

2011-12-18 Thread kenneth gonsalves
On Sat, 2011-12-17 at 12:51 -0600, Jacob Kaplan-Moss wrote: > On Sat, Dec 17, 2011 at 12:30 AM, kenneth gonsalves > wrote: > > thanks for the info - the search *has* improved, for example a > search > > for get_FOO_display used to fail, it now succeeds. But I still need > > ddg's site search for m

How do I prevent messages getting cached?

2011-12-18 Thread Nathan Geffen
Hi I am using per-view caching in version 1.3 and would prefer to avoid caching in my templates as far as possible. However, I've hit a snag. If the messaging framework generates a message for a cached view, one of two things happen: 1. If the page is not yet in cache, the page gets cached with t

RE: auth.login function not working as expected

2011-12-18 Thread Abraham Yusuf
Hi all, I found a solution to the problem so i taught i'd let you know. It was really an oversight, my login view is like so: @return_json def login(request) In the decorator i was ripping off the raw post data and passing it to the view as arguments while the view itself only takes the request

ListField Implementation

2011-12-18 Thread Roy McElmurry IV
One thing I found very useful for myself was building a ListField and ListInput widget that built lists of forms. This widget comes with a button to dynamically generate new elements to the list. The code I wrote uses only built-in packages and existing django code. I think this could a very popula

Re: auth.login function not working as expected

2011-12-18 Thread Jhonny5
2011/12/18 Jhonny5 > Hi, > 2011/12/18 Abraham Yusuf > >> Hi all, >> I'm trying to login a user using django's authentication backend with the >> following: >> user=auth.authenticate(userid,pass) >> if user: >> if user.is_active: >> auth.login(request,user) >> I am getting TypeError login(

Re: auth.login function not working as expected

2011-12-18 Thread Jhonny5
Hi, 2011/12/18 Abraham Yusuf > Hi all, > I'm trying to login a user using django's authentication backend with the > following: > user=auth.authenticate(userid,pass) > if user: > if user.is_active: > auth.login(request,user) > I am getting TypeError login() takes exactly 1 argument (2 give

auth.login function not working as expected

2011-12-18 Thread Abraham Yusuf
Hi all, I'm trying to login a user using django's authentication backend with the following: user=auth.authenticate(userid,pass) if user: if user.is_active: auth.login(request,user) I am getting TypeError login() takes exactly 1 argument (2 given). I've checked the docs and i can't find

Re: Organizing/Loading components on a home page using python

2011-12-18 Thread Kristian Øllegaard
Hi Waqar, Check out django-cms - you are probably looking for a CMS. There are other django based CMSes as well, but personally I only had experience with the django-cms, which worked great for my usecases. Here you can make cms plugins that you can rearrange dire

change charfield choices from within a ModelForm

2011-12-18 Thread brian
How do I change the CharField choices from within a ModelForm? Here is the stripped down version of what I have: - class myModel(models.Model): test = models.CharField(max_length=3, verbose_name='test choices',

Re: Organizing/Loading components on a home page using python

2011-12-18 Thread creecode
Hello Waqar, It sounds like you are looking for something like Drupal. Although I've not used it myself I think Drupal has an architecture like you describe. Django is a web framework it is not a website builder with auto-configuring modules. Don't get me wrong. Django is a fantastic web fram

Organizing/Loading components on a home page using python

2011-12-18 Thread Waqar Azeem
I don't know from where to start to ask this question. I need to create a HOME page with multiple components, like • News • Products • Forum Topic • Ads and so on. The little knowledge that i have accumulated on Django forced me to start using the templates, because I didn't find small, reusable

searching for a django developer for an online gig

2011-12-18 Thread Mo Mughrabi
hi, am looking for a good django developer to help finish a site, we are a team of two and we would like to increase the work force. Must have strong communication skills, good knowledge with html, css and javascripting (jquery). We are using amazon was, celery, rabbitmq and social networking int