Re: haystack problem - already registered error

2012-11-02 Thread Laxmikant Gurnalkar
Hey Any Solution on this ? On Wednesday, September 15, 2010 4:53:26 AM UTC+5:30, Kenneth Gonsalves wrote: > > hi, > > I have installed haystack with xapian backend. My relevant code is like > this: > > import haystack > haystack.autodiscover() > > from haystack.indexes import * > from haystack

Re: Translation outside the broswer

2012-10-10 Thread Laxmikant Gurnalkar
You can pass the latest language_code in the url and set that to the session >>>Is there a way to retrieve the latest language used in the user session? cheers *Laxmikant* On Wed, Oct 10, 2012 at 9:14 PM, Bastian wrote: > Ok this is all very clear now, and the docs

Re: Disabling CSRF is not working.

2012-10-09 Thread Laxmikant Gurnalkar
ee https://docs/djangoproject.com/en/1.4/contrib/csrf/#utilities > > Bill > > On Sun, Oct 7, 2012 at 3:41 AM, Laxmikant Gurnalkar > <laxmikant.gurnal...@gmail.com> wrote: > > Thanks, for the response. > > I had a problem like this > >I was trying to create a stor

Javascript encoding and python decoding and vice versa

2012-10-08 Thread Laxmikant Gurnalkar
Hi, Guys. Anybody knows to encrypt the content in javascript and decode it using python and vice versa. I am doing a high security data transfer. The things are showstopper to transferring data through javascript to the python. Is it possible to hide data or send data over web in that should not

Re: Translation outside the broswer

2012-10-07 Thread Laxmikant Gurnalkar
Yeah, i18n works anywhere just put _(message) to send a mail. * * *cheers * On Fri, Oct 5, 2012 at 10:16 PM, Bastian wrote: > Thanks Tom, the logic seems pretty clear. I just didn't know about > translation.activate. What does it do exactly? Change the current

Re: Disabling CSRF is not working.

2012-10-07 Thread Laxmikant Gurnalkar
ve into the middleware code to see how this happens, and > >> come up with a stable strategy to circumvent it. Or you could just > >> fix the necessary views and templates. There is, after all, a chance > >> that you will want to be able to upgrade this site without jumping >

Re: Print html the normal way

2012-10-05 Thread Laxmikant Gurnalkar
Use {{yourvar|html|striptags}} https://docs.djangoproject.com/en/dev/ref/templates/builtins/#striptags Cheers *Laxmikant Gurnalkar* On Fri, Oct 5, 2012 at 2:32 PM, Ashish Jain <ashishjain@gmail.com>wrote: > Hi, > > Thanks a ton!! > > using mark_safe() worked per

Re: Missing manage.py

2012-10-04 Thread Laxmikant Gurnalkar
you can update, instead of reinstalling. cheers Laxmikant On Thu, Oct 4, 2012 at 6:29 PM, Ramiro Morales wrote: > I think so. The usual reason for the problem you are experiencing is a > previous installation of Django on top of which the one you are trying > to use was

Disabling CSRF is not working.

2012-10-04 Thread Laxmikant Gurnalkar
Hi, Guys Disabling CSRF is not working. These are my midlewares., Removed {% csrf_token %} all templates. MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', # 'django.middleware.csrf.CsrfViewMiddleware',

Re: Bug with collapse fieldsets?

2012-10-03 Thread Laxmikant Gurnalkar
What do you expect from None? On Thu, Oct 4, 2012 at 4:02 AM, Janusz Jaworski wrote: > Hello. I found probably a little bug or it's just a feature (dunno). But > my question is why i can't unhide collapsed fields when i use 'None' for > name of group and use 'collapse' in

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Laxmikant Gurnalkar
Okay, Thanks. Will hv to do that. On Wed, Oct 3, 2012 at 9:54 AM, Russell Keith-Magee <russ...@keith-magee.com > wrote: > On Wed, Oct 3, 2012 at 12:19 PM, Laxmikant Gurnalkar > <laxmikant.gurnal...@gmail.com> wrote: > > Hi, > > Thanks for the suggestion Russell, &g

Re: Autoescape of & char ignoring safe filter

2012-10-02 Thread Laxmikant Gurnalkar
>>>I have not used *safe* ever. But use *escape* this works for me. On Wed, Oct 3, 2012 at 9:54 AM, Laxmikant Gurnalkar < laxmikant.gurnal...@gmail.com> wrote: > Hi, > I have not used *sace* ever. But use *escape* this works for me. > https://docs.djangoproject.

Re: Autoescape of & char ignoring safe filter

2012-10-02 Thread Laxmikant Gurnalkar
Hi, I have not used *sace* ever. But use *escape* this works for me. https://docs.djangoproject.com/en/1.0/ref/templates/builtins/#escape Cheers *Laxmikant G.* On Wed, Oct 3, 2012 at 4:06 AM, Marc Serra wrote: > Hi, i'm trying to output raw html content form the database on

Re: send_mail on MAC OS X 10.7

2012-10-02 Thread Laxmikant Gurnalkar
Hi, Thanks for the suggestion Russell, I never felt insecure when I dont use csrf. Since I hv disabled. anyways, Thanks again. *Laxmikant* On Wed, Oct 3, 2012 at 4:41 AM, Russell Keith-Magee <russ...@keith-magee.com > wrote: > On Tue, Oct 2, 2012 at 1:36 PM, Laxmikant

Re: Newbie question - setting a model form foriegn key

2012-10-02 Thread Laxmikant Gurnalkar
se a model form to proccess the quest and manually > set just the FK of it? > > Keir > > > On Tuesday, October 2, 2012 6:18:21 AM UTC+1, Laxmikant Gurnalkar wrote: > >> Sorry, see again!! >> >> def payments_view(request, contact_id): >> payment = Payment

Re: send_mail on MAC OS X 10.7

2012-10-01 Thread Laxmikant Gurnalkar
Comment the csrf from settings. It doesnt work when you want.I use session and own credentials to do that And just write a simple view to send mail. This will work without csrf or any of credentials & etc. *Cheers* Laxmikant On Tue, Oct 2, 2012 at 6:15 AM, Cheng wrote:

Re: Newbie question - setting a model form foriegn key

2012-10-01 Thread Laxmikant Gurnalkar
at 10:42 AM, Laxmikant Gurnalkar < laxmikant.gurnal...@gmail.com> wrote: > def payments_view(request, contact_id): > payment = Payment() > payment.contact = contact[0] > >> 'contact': contact, 'payments': payments, 'form' : PaymentForm() >> }) &g

Re: Newbie question - setting a model form foriegn key

2012-10-01 Thread Laxmikant Gurnalkar
def payments_view(request, contact_id): payment = Payment() payment.contact = contact[0] rctx = RequestContext(request,{ > 'contact': contact, 'payments': payments, 'form' : PaymentForm() > }) > return render_to_response('CRMSite/contact_payments.html',rctx) > On

Re: i am getting ConfigParser.NoSectionError: No section: 'database' plz help

2012-09-28 Thread Laxmikant Gurnalkar
ohh sorry I didnt checked, I thought it was the part of settings itself. On Fri, Sep 28, 2012 at 10:06 AM, Nick Dokos <nicholas.do...@hp.com> wrote: > Laxmikant Gurnalkar <laxmikant.gurnal...@gmail.com> wrote: > > > Thats the same I'm saying to you. > > In your sett

Re: last changed by User

2012-09-27 Thread Laxmikant Gurnalkar
Hello. You can Hack the *Default models* & add new fields in User Table created_datetime, modified_datetime & created by, modified by etc. Cheers On Fri, Sep 28, 2012 at 9:03 AM, Lachlan Musicman wrote: > On Friday, September 28, 2012, Lachlan Musicman wrote: > >> >>

Unable to Store Decimal values to DecimalField

2012-09-27 Thread Laxmikant Gurnalkar
Hi , While storing decimal values to database I have following error. Exception in storeFormatMetadataTraceback (most recent call last): File "/var/opt/igp_acfs/acfs/bookproducts_manager.py", line 118, in storePricing book.save() File "/var/opt/igp_acfs/acfs/models.py", line 529, in

Re: Getting Started

2012-09-25 Thread Laxmikant Gurnalkar
Hi, Extending to Jani Tiainen-- Or you have not properly installed Django, It looks like manage.py is missing. In any of the version manage.py comes by default. Use 7-zip to unzip the django tarballs on windows machine. regards, Laxmikant On Mon, Sep 24, 2012 at 9:37 PM, Greg

Re: Inheritance and default value

2012-09-25 Thread Laxmikant Gurnalkar
Hi winniehell, I think this will help you. Dummy.__dict__.update({"myfield":42}) regards --Laxmikant Gurnalkar On Tue, Sep 25, 2012 at 4:17 PM, winniehell <dja...@winniehell.de> wrote: > Hello list! > > I try to overwrite a default value of a field in a subcla

save() got an unexpected keyword argument 'force_insert'

2012-09-24 Thread Laxmikant Gurnalkar
Hi guys, Anybody knows why I'm at this stage ? Group.objects.using('db2').get_or_create(name='Maintenance Admin') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 383, in get_or_create