How to do DB memcaching in Django with derived data?

2014-11-24 Thread Saqib Ali
My question is explained in detail here: http://stackoverflow.com/questions/27114947/how-to-do-db-memcaching-in-django-with-derived-data -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Django FormWizards: How to painlessly pass user-entered data between forms?

2013-02-13 Thread Saqib Ali
Crossposting from here: http://stackoverflow.com/questions/14860392/django-formwizards-how-to-painlessly-pass-user-entered-data-between-forms I'm using the FormWizard functionality in Django 1.4.3. I have successfully created a 4-step form. In the first 3 steps of the form it correctly takes

Re: Best/Cleanest way to add fields to Class User in models.py?

2013-01-12 Thread Saqib Ali
t, Jan 12, 2013 at 12:06 PM, Saqib Ali wrote: > >> >> In my models.py, I use django.contrib.auth.models.User as a foreign key >> in many of the classes I created. >> >> The User class obviously has a lot of important features that any website >> developer will

Best/Cleanest way to add fields to Class User in models.py?

2013-01-11 Thread Saqib Ali
In my models.py, I use django.contrib.auth.models.User as a foreign key in many of the classes I created. The User class obviously has a lot of important features that any website developer will need to track and manage users to the website. However, I wish the class had three additional member

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
s there any csrftoken ? > > Did you change SESSION_COOKIE_DOMAIN ? > > On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: >> >> BTW, I forgot to mention that my template contains the following HTML: >> >> {% csrf_token %} >> >> E

Re: CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
BTW, I forgot to mention that my template contains the following HTML: {% csrf_token %} E-mail: On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django

CSRF Verification error appeared after I changed DNS

2013-01-08 Thread Saqib Ali
Hi. I have been using Django successfully for a few days now. I was running my django application on an Amazon Web Service machine. I was assigned some arbitrary DNS name that looked like this: http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. My Django app was working find with my model and

Re: How to add an element of derived data to a Django model?

2013-01-05 Thread Saqib Ali
> I think you can write a function that returns a > b and then make it a > getter method with python's property. > > i would have given an example but typing code from my phone isn't very > appealing. > > Sent from my Windows Phone > > -Original Mess

How to add an element of derived data to a Django model?

2013-01-05 Thread Saqib Ali
I have a Django Model as follows: class myModel(models.Model): a = models.IntegerField() b = models.IntegerField() I want to add a models.BooleanField() named c to the myModel class. However the value of c is simply derived from a and b so I don't want it to be stored in the Da