Filtering results before & after update?

2012-03-31 Thread symmitchry
I have a straightforward form that simply reduces an item count by 1, for a selected product. (The form essentially "ships" a product, so need to decrease remaining term_length by 1). I have the following code: cd = form.cleaned_data q = Subscription.objects.filter(prod

getting POST 500 (OK), when using $.ajax on that url

2012-03-31 Thread Ahmad
I trying to use jquery ajax to send json data to django sorry if providing javascript code but it may help solving my problem $("#send").click(function() { events = $('#calendar').fullCalendar('clientEvents'); console.log(events); var filter = new Array(); filter[0] =

Re: I don't get what Poll.objects.get(pk=1) does

2012-03-31 Thread Kisun Pokharel
hello, thanks. I wonder if it was caused by this error: ValueError: unknown locale: UTF-8 . It shows up but if I run the code again, it disappears..Otherwise, I have not made any mistakes and followed the tutorials .. -Kisun On Mar 31, 2012, at 11:38 PM, Sergiy Khohlov wrote: > look like all i

Re: TemplateDoesnotExist: 500.html

2012-03-31 Thread Gabriel .
On Sat, Mar 31, 2012 at 5:03 PM, Pals wrote: >  I am a novice programmer who just started to learn Django.. I could > not figure out the error related to 500.html. In fact, I would be > grateful if someone guides me making 500.html file. I am using mac > osx, Python 2.7 and Django 1.4. > https://

Re: I don't get what Poll.objects.get(pk=1) does

2012-03-31 Thread Sergiy Khohlov
look like all is correct. it will be nice to separate a working with database and python object. Using pk=1 you will get object with primary key equal 1. Also yo will try to worki wit object as with list... thanks, serge 2012/3/31 excalibur1491 : > Hi, > > I'm learning Django (I already kn

TemplateDoesnotExist: 500.html

2012-03-31 Thread Pals
I am a novice programmer who just started to learn Django.. I could not figure out the error related to 500.html. In fact, I would be grateful if someone guides me making 500.html file. I am using mac osx, Python 2.7 and Django 1.4. Thanks! -- You received this message because you are subscribe

Re: modifying generated create table scripts and ise sync db?

2012-03-31 Thread Bhargav Kowshik
Hello Kasun, I hope the following link helps. https://docs.djangoproject.com/en/1.4/ref/models/fields/#primary-key Thanks. 2012/3/31 KasunLak > This is a oracle create table statements for what I wanted to do in > django. How to get a relationship like this in django model. Is there > a way to

Re: Report generation-reportlab

2012-03-31 Thread Iván Raskovsky
On Sat, Mar 31, 2012 at 7:54 AM, Marc Aymerich wrote: > On Sat, Mar 31, 2012 at 12:38 PM, Ganesh Kumar wrote: >> Hi guys, >> >> I am new to django reportlab. I want to generate pdf. file to select >> mysql (table) content. How to proceed with reportlab, I can do with >> some other tool. >> please

django forms in admin

2012-03-31 Thread dummyman dummyman
Hi , I ve a set of fields which is displayed in admin using fieldsets in django. But i want to modify the display of only one field. ie i used CommaSeparatedField , i want that 2 display in forms.MultipleChoiceField . How do i achieve it ? i did like this class A(forms.ModelForm): fielda = f

Re: canceling account

2012-03-31 Thread Joey Espinosa
Lilian, To be clear here, Django is a web framework for creating web applications. Then there are web hosting services out there that will let you run your Django applications on their servers. Within your own Django application, you may have administrative accounts setup. What account (and where

Django inline display

2012-03-31 Thread Pedro Coelho
Is it possible to change the display of inlines in order to change it from this to something like this?

Re: canceling account

2012-03-31 Thread Sergiy Khohlov
Hello, What do you mean ? Each django application has ability to add django superuser account. Also hoster company provide a account for setting django application at the host. Please clarify what do you want to do Thanks, Serge 2012/3/31 Lillian Cauldwell : > > My previous webmaster se

canceling account

2012-03-31 Thread Lillian Cauldwell
My previous webmaster set up my company's d'jango account. He no longer works for me. How do I cancel my account? Thanks, Lillian -- "Creator" Cauldwell CEO, Passionate World Radio, Inc. Distinguish Yourself From the Ordinary! (c) 2010-2011 PWR http://www.internetvoicesradio.com http://www.amazin

integer array in django models

2012-03-31 Thread dummyman dummyman
Which model field in django is used to represent an integer array in mysql ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to djang

Re: django-admin change form page validation

2012-03-31 Thread Nikhil Verma
Hi I did not override response_change method but i override clean method by creating form in admin like this :- class InterviewAdminForm(forms.ModelForm): class Meta: model = Interview def clean(self, *args, **kwargs): cleaned_data = super(InterviewAdminForm, self).clean(

Re: Report generation-reportlab

2012-03-31 Thread Marc Aymerich
On Sat, Mar 31, 2012 at 12:38 PM, Ganesh Kumar wrote: > Hi guys, > > I am new to django reportlab. I want to generate pdf. file to select > mysql (table) content. How to proceed with reportlab, I can do with > some other tool. > please guide me. your valuable suggestion. > I'll use pisa, it allow

Report generation-reportlab

2012-03-31 Thread Ganesh Kumar
Hi guys, I am new to django reportlab. I want to generate pdf. file to select mysql (table) content. How to proceed with reportlab, I can do with some other tool. please guide me. your valuable suggestion. -Ganesh. Did I learn something today? If not, I wasted it. -- You received this message b

I don't get what Poll.objects.get(pk=1) does

2012-03-31 Thread excalibur1491
Hi, I'm learning Django (I already know Python) and I'm following the tutorial: https://docs.djangoproject.com/en/1.3/intro/tutorial01/ At the end of the tutorial there is a code where the programmer does: p = Poll.objects.get(pk=1) . I want to be sure if I understand it well. Poll.object.get(pk=1

Re: How can I best create a blog that works similarly to Tumblr?

2012-03-31 Thread Willy Cordeiro
Thanks for the reply! I'll try that, I had asked the same question on IRC at #django and I got no real results. I'll try this and see how it works. :) -Wellington "Willy" Cordeiro On Fri, Mar 30, 2012 at 11:46 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On 31/03/2012, at 4:01 A

modifying generated create table scripts and ise sync db?

2012-03-31 Thread KasunLak
This is a oracle create table statements for what I wanted to do in django. How to get a relationship like this in django model. Is there a way to manually modify the generated create table statements in django to fulfil our needs. eg: removing id column, make one column a primary key of another li