Re: Tables with same schema

2009-04-30 Thread Ramashish Baranwal
> > > I want to create several tables with same schema. This is to partition > > the data into different tables. Apart from having model classes with > > same definition, is there another way to do it? > > > Here is a trivial example that duplicates the class definition- > > > class

Re: help needed: apache httpd.conf and urls

2009-04-30 Thread zayatzz
Thanks! Its working just fine now :) Alan. On Apr 30, 10:37 pm, Malcolm Tredinnick wrote: > On Thu, 2009-04-30 at 12:27 -0700, zayatzz wrote: > > Hello > > > I have this in my template : > > > > > settings file is following: > > MEDIA_ROOT = '/var/www/media/' > >

Choices validation on model fields

2009-04-30 Thread Jeremy Epstein
Hi, I have a model with a number of fields that use Django's 'choices' attribute, to limit the allowed values of those fields to a pre-defined list. I assumed that the Model system would validate my fields when I create or update them, to ensure that invalid choices weren't being assigned to

Re: Tables with same schema

2009-04-30 Thread Alex Gaynor
On Fri, May 1, 2009 at 1:21 AM, Ramashish Baranwal < ramashish.li...@gmail.com> wrote: > > Hi, > > I want to create several tables with same schema. This is to partition > the data into different tables. Apart from having model classes with > same definition, is there another way to do it? > >

Tables with same schema

2009-04-30 Thread Ramashish Baranwal
Hi, I want to create several tables with same schema. This is to partition the data into different tables. Apart from having model classes with same definition, is there another way to do it? Here is a trivial example that duplicates the class definition- class Person(models.Model): first

Re: slug field not populated on form save

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 23:46 -0300, Gabriel wrote: > I have a model with a custom field: [...] > class AutoSlugField(fields.SlugField): > def __init__(self, prepopulate_from, force_update = False, *args, > **kwargs): > self.prepopulate_from = prepopulate_from >

Re: ManyToMany query on all()?

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 19:26 -0700, jeff wrote: > This seems like it should be easy, but it's got me stumped. > > Here's a model from the Django examples: > > class Entry(models.Model): > blog = models.ForeignKey(Blog) > headline = models.CharField(max_length=255) > body_text =

slug field not populated on form save

2009-04-30 Thread Gabriel
I have a model with a custom field: class Project(models.Model): slug = fields.AutoSlugField(max_length=50, unique=True, editable=False, prepopulate_from="name", force_update=False) name = models.CharField(unique=True, verbose_name=_('Name'), max_length=50, help_text=_('The project name

ManyToMany query on all()?

2009-04-30 Thread jeff
This seems like it should be easy, but it's got me stumped. Here's a model from the Django examples: class Entry(models.Model): blog = models.ForeignKey(Blog) headline = models.CharField(max_length=255) body_text = models.TextField() pub_date = models.DateTimeField() authors

Re: Template help

2009-04-30 Thread AlexK
On May 1, 9:47 am, Alex Gaynor wrote: > On Thu, Apr 30, 2009 at 7:45 PM, AlexK wrote: > > > Hi all, > > > I would just like some comments about something particular in my > > template. I'm concerned there may be a better way of doing what I am >

Re: url template tag help

2009-04-30 Thread Margie
Oh, and one other thing I will add is that if you do find an import error, you sometimes (maybe always?) need to then restart the server. I can't explain any of this, but I've been thinking about your question since you posted it beause I know this type of error happens to me a lot (and indeed

Re: url template tag help

2009-04-30 Thread Margie
Have you confirmed that you don't have any python syntax errors in any of your .py files, including urls.py? I thinkt that when reverse gets evaluated, it may be importing files at that time. If one of the imports encounters a syntax error, i think that you will in some cases just get an error

Re: Template help

2009-04-30 Thread Alex Gaynor
On Thu, Apr 30, 2009 at 7:45 PM, AlexK wrote: > > Hi all, > > I would just like some comments about something particular in my > template. I'm concerned there may be a better way of doing what I am > doing. You will see why when you look at my code. > >

Template help

2009-04-30 Thread AlexK
Hi all, I would just like some comments about something particular in my template. I'm concerned there may be a better way of doing what I am doing. You will see why when you look at my code. http://dpaste.com/39858/ I am mainly concerned with lines 3 to 7. Ignore that I should use a variable

Re: Allow only specified HTML tags.

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 15:35 -0700, Brandon wrote: > I want to have a message board type program which will only allow html > tags which are in a specified list. How can I accomplish such a feat > with the django template system? I want to find a way before trying to > write my own template tags.

Re: managing templates(html pages)

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 15:14 -0700, Frutoso wrote: > Hello all - I am new to Django development and I have a question about > templates. > > I have many templates(html pages) and want to know the best way to > manage them all. For example: > I have business_form.html: to get data > I have

Re: I'm having some trouble with signals.

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 15:03 -0700, Brian McKeever wrote: > I'm sure I made some dumb mistake, but I just can't see it. > Basically, I'm having difficulty connecting to the signal with my > model. Don't have time to look into this deeply at the moment, but I suspect I know the problem. The signal

Re: managing templates(html pages)

2009-04-30 Thread Laszlo Antal
On Thu, 30 Apr 2009 3:14 pm, Frutoso wrote: > > Hello all - I am new to Django development and I have a question about > templates. > > I have many templates(html pages) and want to know the best way to > manage them all. For example: > I have business_form.html: to get data > I have

Chaining Managers

2009-04-30 Thread adam
I was wondering if it was possible (and, if so, how) to chain together multiple managers to produce a query set that is affected by both of the individual managers. I'll explain the specific example that I'm working on: I have multiple abstract model classes that I use to provide small, specific

Allow only specified HTML tags.

2009-04-30 Thread Brandon
I want to have a message board type program which will only allow html tags which are in a specified list. How can I accomplish such a feat with the django template system? I want to find a way before trying to write my own template tags. --~--~-~--~~~---~--~~ You

managing templates(html pages)

2009-04-30 Thread Frutoso
Hello all - I am new to Django development and I have a question about templates. I have many templates(html pages) and want to know the best way to manage them all. For example: I have business_form.html: to get data I have business.html: to display data and so on. Now, if I change a link in

I'm having some trouble with signals.

2009-04-30 Thread Brian McKeever
I'm sure I made some dumb mistake, but I just can't see it. Basically, I'm having difficulty connecting to the signal with my model. #my test def test_set_trigger_bug(self): self.assertEqual(len(game_reset.receivers), 0) def trigger(): pass

Re: how to change database within Django.

2009-04-30 Thread peter
Hi, We have a database for each product that we have. Within the database, there are product specific tables. The current setup uses PHP/MySQL and the front end is a simple form that a user can use to select which product they want to do a search on, follow by a serial number. I'm _very_

Re: how to change database within Django.

2009-04-30 Thread Daniel Roseman
On Apr 30, 6:45 pm, peter wrote: > Hello, >   I'm an newbie so please bear with me. > >   I have a simple form that a user can select the from different > product line (databases) and search based on serial number.  From what > I have read, the database name needs to be

Re: Template tags and variables overlapping

2009-04-30 Thread Sean Brant
If the tag excepts more than one argument you should be able to do something like this. {% sayHello "Robert and" currentname %} You would just need to figure out how best to break the bits up (a regex probably would work) and iterate over those bits resolving the variables to strings, keeping

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
I love you all :) Thanks :) --~--~-~--~~~---~--~~ 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

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 12:42 -0700, Bro wrote: > class SentenceText(models.Model): > language = models.ForeignKey(Language) > text_id = models.IntegerField() > text = models.TextField() > def __unicode__(self): > return self.id + ' ' + self.text > > class

Re: Template tags and variables overlapping

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 12:22 -0700, Julián C. Pérez wrote: > jajaja i know > that what just a stupid example to make my point... Well, the details are important for something like this, since the complexity of what you're after dictates which solution approach might be most appropriate. > i plan

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Alex Gaynor
On Thu, Apr 30, 2009 at 3:42 PM, Bro wrote: > > class SentenceText(models.Model): >language = models.ForeignKey(Language) >text_id = models.IntegerField() >text = models.TextField() >def __unicode__(self): >return self.id + ' ' + self.text > > class

Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
class SentenceText(models.Model): language = models.ForeignKey(Language) text_id = models.IntegerField() text = models.TextField() def __unicode__(self): return self.id + ' ' + self.text class Box(models.Model): label = models.ForeignKey(SentenceText,

Re: database user vs schema owner

2009-04-30 Thread Jason
I'm running 1.0.2 unfortunately. I'll run the idea of synonyms by our DBAs. Thanks! Jason On Apr 30, 11:53 am, Ian Kelly wrote: > On Apr 30, 12:30 pm, Jason Geiger wrote: > > > Hello. I'm using Oracle and I would like to have a restricted user for >

Re: help needed: apache httpd.conf and urls

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 12:27 -0700, zayatzz wrote: > Hello > > I have this in my template : > > > settings file is following: > MEDIA_ROOT = '/var/www/media/' > MEDIA_URL = "http://localhost/media/; > > when i go to the webpage then the stuff that i get from server says > > > Even when i

help needed: apache httpd.conf and urls

2009-04-30 Thread zayatzz
Hello I have this in my template : settings file is following: MEDIA_ROOT = '/var/www/media/' MEDIA_URL = "http://localhost/media/; when i go to the webpage then the stuff that i get from server says Even when i replace {{ MEDIA_URL }} with anything else i still get this in browser: Why?

Re: Template tags and variables overlapping

2009-04-30 Thread Julián C . Pérez
jajaja i know that what just a stupid example to make my point... i plan to make more complex custom tags On Apr 30, 12:11 pm, Lakshman Prasad wrote: > Why cant you just do something like > > {% sayHello " Hello Robert and " %} {{ currentname }} > > 2009/4/30 Julián C.

Rename and Regroup apps in admin dashboard

2009-04-30 Thread lzantal
Hi, I have a very unusual need. (long post) I am developing an e-store with satchmo. It fits all my needs but I need to rename and regroup the apps in admin view. Eg: It keeps customer/supplier info in Contact App, I would like to rename it to Customer and Supplier and move them into there own

Re: database user vs schema owner

2009-04-30 Thread Ian Kelly
On Apr 30, 12:30 pm, Jason Geiger wrote: > Hello. I'm using Oracle and I would like to have a restricted user for > Django that can only do DML. Is there a way to specify a schema that > would prefix all "naked" table references so that this user can find > the tables as it

how to change database within Django.

2009-04-30 Thread peter
Hello, I'm an newbie so please bear with me. I have a simple form that a user can select the from different product line (databases) and search based on serial number. From what I have read, the database name needs to be specified within Django, which in this case is a dynamic variable.

Re: Saving Multiple forms? or fields... confused.

2009-04-30 Thread Karen Tracey
On Thu, Apr 30, 2009 at 10:09 AM, tdelam wrote: > > Hi Karen, > > Thanks for responding. > > Okay so, here is the new forms code: > > class TrueFalseForm(forms.Form): >def __init__(self, q, *args, **kwargs): >super(TrueFalseForm, self).__init__(*args,

Re: Configuration help. Multiple projects.

2009-04-30 Thread Margie
I have a similar situation, in that I have been implementing a website for my company which is trying to move data from excel spreadsheets into a web app that manages the "stuff" we track. agree with Kevin that I think you want one project (I'm assuming by project you mean settings.py file),

Re: Configuration help. Multiple projects.

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 11:33 -0700, eric.frederich wrote: > Malcom, > > That helped. > > I think I understand what you're saying. > > I could have two projects, projectA that has appA1 and appA2 installed > and projectB that has appB1 and appB2 installed. > If projectA and projectB's

Re: Configuration help. Multiple projects.

2009-04-30 Thread eric.frederich
Malcom, That helped. I think I understand what you're saying. I could have two projects, projectA that has appA1 and appA2 installed and projectB that has appB1 and appB2 installed. If projectA and projectB's settings.py file shares the same DB info...then projectB would be able to use data

database user vs schema owner

2009-04-30 Thread Jason Geiger
Hello. I'm using Oracle and I would like to have a restricted user for Django that can only do DML. Is there a way to specify a schema that would prefix all "naked" table references so that this user can find the tables as it isn't the schema owner? If there isn't something like that, I think an

Re: Django on Amazon EC2

2009-04-30 Thread creecode
Hello Joshua, On Apr 30, 2:34 am, Joshua Partogi wrote: > it seems that EC2 is not reliable though > scalable. I don't think this is the case. I've been running an instance for months with no more issues than if I'd been running on my own hardware. If you take

Re: Dynamic form validation doesn't work.

2009-04-30 Thread Lacrima
Thank you very much, Daniel!!! Max. On Apr 30, 8:41 pm, Daniel Roseman wrote: > On Apr 30, 5:43 pm, Lacrima wrote: > > > > > Hello! > > > For example I have: > > class ContactForm(forms.Form): > >     def __init__(self, foo, *args,

Re: Configuration help. Multiple projects.

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 10:53 -0700, eric.frederich wrote: > Malcom, > > Thanks for replying. > > Let me try to explain a little more. > > When I said "get a list of XYZ training courses" I did mean getting > the Course objects back and doing a little logic with them. > Something I'd want on the

Re: Configuration help. Multiple projects.

2009-04-30 Thread eric.frederich
Kevin, Yes...that is what I was thinking but I wasn't sure if it was the "correct" thing to do. You saying that helps ease my mind. Also, one concern I had was that if I did this and the "1 project to rule them all" was hogging up the root directory "/", would I still be able to have other

Re: Configuration help. Multiple projects.

2009-04-30 Thread eric.frederich
Malcom, Thanks for replying. Let me try to explain a little more. When I said "get a list of XYZ training courses" I did mean getting the Course objects back and doing a little logic with them. Something I'd want on the XYZ main page would be a listing of upcoming training courses for XYZ by

Re: Configuration help. Multiple projects.

2009-04-30 Thread Kevin Audleman
Your needs are a bit vague, but here's a thought: I would think that you would want one project which would conceptually encompass everything your company does. Within that project you would create multiple apps: one for training and one for project XYZ (if I'm reading your requirements

Re: Dynamic form validation doesn't work.

2009-04-30 Thread Daniel Roseman
On Apr 30, 5:43 pm, Lacrima wrote: > Hello! > > For example I have: > class ContactForm(forms.Form): >     def __init__(self, foo, *args, **kwargs): >         super(ContactForm, self).__init__(*args, **kwargs) >         self.fields['subject'] = forms.CharField() >        

Re: url template tag help

2009-04-30 Thread Kevin Audleman
The other thing is that if there is anything else wrong with your views.py file it can cause Django to throw up this error. See if the error is occurring on the first occurence of {% url %} that gets called for the page you are requesting. That would be a good indication that your error is

Re: How do you manage the depenedencies between your project and other open source?

2009-04-30 Thread Matías Iturburu
On Wed, Apr 29, 2009 at 10:44 PM, meppum wrote: > > Just wanted to get an idea of what tools others were using to manage > the dependencies between their code and other projects. For instance, > if I have a project that uses django registration, voting, and tags > I'd like to

Re: Template tags and variables overlapping

2009-04-30 Thread Lakshman Prasad
Why cant you just do something like {% sayHello " Hello Robert and " %} {{ currentname }} 2009/4/30 Julián C. Pérez > > hi u all... again > this has become my first resource on getting help > a new doubt i have... > in templates... > i have a variable, let's say varOne

Re: How to include session data in traceback

2009-04-30 Thread Brian Morton
D'oh. Thanks. I was confusing load and loads. I thought they were the same thing. On Apr 30, 12:55 pm, Malcolm Tredinnick wrote: > On Thu, 2009-04-30 at 09:47 -0700, Brian Morton wrote: > > Thanks.  That makes perfect sense.  Since my session data is persisted > >

Re: How to include session data in traceback

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 09:47 -0700, Brian Morton wrote: > Thanks. That makes perfect sense. Since my session data is persisted > in the db (and I don't have a cleanup script active at the moment), I > can retrieve the pickled session data based on the session id in the > cookie (that is in the

Template tags and variables overlapping

2009-04-30 Thread Julián C . Pérez
hi u all... again this has become my first resource on getting help a new doubt i have... in templates... i have a variable, let's say varOne -suposse it's equal to "Kathleen" ... {{ currentName }} ... and i have created a custom tag which takes an argument, called sayHello ... {% sayHello

Re: Configuration help. Multiple projects.

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 07:47 -0700, eric.frederich wrote: > So, I have been tasked with creating a new website within my company > for a new project. Lets call the project XYZ (because just calling it > 'the project' is confusing since Django already has a concept of > projects). > > The website

Dynamic form validation doesn't work.

2009-04-30 Thread Lacrima
Hello! For example I have: class ContactForm(forms.Form): def __init__(self, foo, *args, **kwargs): super(ContactForm, self).__init__(*args, **kwargs) self.fields['subject'] = forms.CharField() self.fields['message'] = forms.CharField() self.fields['sender'] =

Re: export the html data in table format to CSV or excel file format using javascript

2009-04-30 Thread Phil Mocek
On Thu, Apr 30, 2009 at 01:41:01AM -0700, Nalini wrote: > Does any one give me the source to export the html data in table > format to CSV or excel file format using javascript. Your question does not seem to be related to Django, which is the topic of this mailing list. You'd be more likely to

Re: How to include session data in traceback

2009-04-30 Thread Brian Morton
Thanks. That makes perfect sense. Since my session data is persisted in the db (and I don't have a cleanup script active at the moment), I can retrieve the pickled session data based on the session id in the cookie (that is in the traceback). The problem is decoding that session data. Can the

Re: How to include session data in traceback

2009-04-30 Thread Malcolm Tredinnick
On Thu, 2009-04-30 at 04:58 -0700, Brian Morton wrote: > I am considering filing an enhancement request but I want to check > first to make sure this functionality doesn't already exist. > > Is there some way to make Django include the contents of session in > the traceback email received from a

Getting user info into an attribute while still using generic views?

2009-04-30 Thread Lior
Hello, I'm using generic views to manage a model. In that model, when I create an instance (and not when I update it), I need to set one of its attribute (owner) to the currently logged in user value. I'd like to continue using generic views, so can I do this without creating a view. Is that

Re: url template tag help

2009-04-30 Thread Karen Tracey
2009/4/30 Julián C. Pérez > > anyone?? > i can't get around this... > and i don't want to hard-code the urls in templates either > :( > Truly, the url template tag is not fundamentally broken, so there is something you are doing that is causing a problem. There may be a bug,

Re: url template tag help

2009-04-30 Thread Julián C . Pérez
anyone?? i can't get around this... and i don't want to hard-code the urls in templates either :( On 30 abr, 09:20, Julián C. Pérez wrote: > by now, i'll try to found some other way to create dynamic urls based > on the views... > maybe using a custom template tag > > On 29

Re: Help: django.contrib.admin

2009-04-30 Thread David
fixed... thanks! david On Apr 30, 8:42 am, Karen Tracey wrote: > On Thu, Apr 30, 2009 at 11:36 AM, David wrote: > > > Hello, > > > I followed Django tutorial 2 to activate the admin site, however I got > > > da...@django:~/mysite$ python manage.py syncdb

Re: Help: django.contrib.admin

2009-04-30 Thread Karen Tracey
On Thu, Apr 30, 2009 at 11:36 AM, David wrote: > > Hello, > > I followed Django tutorial 2 to activate the admin site, however I got > > da...@django:~/mysite$ python manage.py syncdb > Error: No module named admindjango.contrib > > after I added "django.contrib.admin" to your

Help: django.contrib.admin

2009-04-30 Thread David
Hello, I followed Django tutorial 2 to activate the admin site, however I got da...@django:~/mysite$ python manage.py syncdb Error: No module named admindjango.contrib after I added "django.contrib.admin" to your INSTALLED_APPS setting. This is how it looks like. INSTALLED_APPS = (

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-30 Thread Tyler Erickson
Malcolm, As you guessed, it was the default ordering that was causing the problem for me. After removing the default ordering from the model, distinct() works as expected. I still find it strange that distinct().count() was not affected by the model's default ordering, while the actual list of

Configuration help. Multiple projects.

2009-04-30 Thread eric.frederich
So, I have been tasked with creating a new website within my company for a new project. Lets call the project XYZ (because just calling it 'the project' is confusing since Django already has a concept of projects). The website will be your run of the mill project page with announcements,

Re: url template tag help

2009-04-30 Thread Julián C . Pérez
by now, i'll try to found some other way to create dynamic urls based on the views... maybe using a custom template tag On 29 abr, 21:52, Julián C. Pérez wrote: > uhhh > i tried but nooo... your suggestion doesn't work... > let me show you 2 versions of error... > > 1.

Re: Saving Multiple forms? or fields... confused.

2009-04-30 Thread tdelam
Hi Karen, Thanks for responding. Okay so, here is the new forms code: class TrueFalseForm(forms.Form): def __init__(self, q, *args, **kwargs): super(TrueFalseForm, self).__init__(*args, **kwargs) self.fields[q.title] = forms.ModelChoiceField(

Re: Ajax and https

2009-04-30 Thread Rishabh Manocha
On Thu, Apr 30, 2009 at 4:10 PM, ruben.django wrote: > > Hi, > > i've got a template with a jquey ajax call. Before, the web service > (Apache) always redirects to a http direction and the ajax call worked > perfectly, but from now, it redirects to a secure https direction

Re: Ajax and https

2009-04-30 Thread shi shaozhong
Hi, there. I will be interested as well. Regards, David 2009/4/30 ruben.django : > > Hi, > > i've got a template with a jquey ajax call. Before, the web service > (Apache) always redirects to a http direction and the ajax call worked > perfectly, but from now, it

Ajax and https

2009-04-30 Thread ruben.django
Hi, i've got a template with a jquey ajax call. Before, the web service (Apache) always redirects to a http direction and the ajax call worked perfectly, but from now, it redirects to a secure https direction and the ajax call has stopped working. The browser shows me the next message: Security

Re: Django on Amazon EC2

2009-04-30 Thread Jörn Paessler
Hi Joshua, we do not have public AMIs to offer, but if you logon to Amazon's Management Console and search for "django" under AMIs you find at least three public images: I reckon this should be a good start. Best Joern

Form using widget built by filter_horizontal

2009-04-30 Thread Filip Gruszczyński
In admin definition attribute filter_horirozntal can be specified, that creates cool javascript using widget for ManyToMany field. I would like to use such widget in my form. How can I specify this? I looked into django.forms.widgets, but none looks like this one. -- Filip Gruszczyński

How to include session data in traceback

2009-04-30 Thread Brian Morton
I am considering filing an enhancement request but I want to check first to make sure this functionality doesn't already exist. Is there some way to make Django include the contents of session in the traceback email received from a 500 error? It is very useful in the case of debugging an error

Re: count the number of times an object / class has been instantiated

2009-04-30 Thread Bastien
Sorry if my question is a bit off topic, sometimes my mind tends to forget that python has not been created just for django... and thanks for the answer Andy. Bastien On Apr 30, 1:40 pm, Andy Mikhailenko wrote: > Hi, your question does not seem to be related to Django.

Re: count the number of times an object / class has been instantiated

2009-04-30 Thread Andy Mikhailenko
Hi, your question does not seem to be related to Django. Anyway: class A: cnt = 0 def __init__(self): A.cnt += 1 If you want to count saved instances of a Django model, use MyModel.objects.count(). Cheers, Andy --~--~-~--~~~---~--~~ You received

Re: how to require/validate minimum number of forms in formset?

2009-04-30 Thread patrickk
I know that it´s not allowed to ask things twice on this list ... unfortunately this bug makes formsets unusable (at least for me) and I ´m wondering why nobody else seems to have problems with this issue. so maybe I´m just doing something wrong and I don´t see it. thanks, patrick On 15 Apr.,

count the number of times an object / class has been instantiated

2009-04-30 Thread Bastien
Hi, Just for curiosity, anyone knows about a way to count how many times an object or a class has been instantiated? I could add a simple counter as a method of the class but what would trigger it? thanks, Bastien --~--~-~--~~~---~--~~ You received this message

Re: Do you know about Django 1.1 current status

2009-04-30 Thread Russell Keith-Magee
On Thu, Apr 30, 2009 at 2:29 PM, Alex Gaynor wrote: > > > On Thu, Apr 30, 2009 at 2:27 AM, chefsmart wrote: >> >> Hi, >> >> Am not sure whether Django-users or Django-developers is the better >> mailing list for this topic? However,... >> >> The

Re: Django, FCGI, Cherokee. Spawning PHP Processes and detaching?

2009-04-30 Thread Oli Warner
You're a fair way down this route already but I'll tell you what I would do faced with a similar situation: 1. Set up a local-only site inside Cherokee with my PHP and have it output the results in a nice format (I'd use JSON) 2. Use urllib2 and simplejson to pull the data back into

Re: Django on Amazon EC2

2009-04-30 Thread Joshua Partogi
Hi Jörn, Thank you very much for sharing your experience. We were going to use it for a community site, but it seems that EC2 is not reliable though scalable. This is a tough choice. :-( Any chance that you already created an AMI for this that perhaps you can share with the community? Best

Re: Django on Amazon EC2

2009-04-30 Thread Joshua Partogi
Hi creecode, Thanks very much for sharing your experience with django on EC2. We really appreciate it. :-) It made us more confident that it is more suitable than AppEngine. Best regards, On Apr 29, 5:28 pm, creecode wrote: > Hello Joshua, > > I don't have any detail or

export the html data in table format to CSV or excel file format using javascript

2009-04-30 Thread Nalini
Hi, Does any one give me the source to export the html data in table format to CSV or excel file format using javascript. Regards, Nalini --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Can the admin site link foreign keys?

2009-04-30 Thread Daniel Roseman
On Apr 30, 6:11 am, Rex wrote: > Let's say I've got two models: User, and Country. Each user is from > one country, and each country has multiple users. so the User model > contains a ForeignKey for a Country object. > > Can I do either of the following through the

Re: Do you know about Django 1.1 current status

2009-04-30 Thread Alex Gaynor
On Thu, Apr 30, 2009 at 2:27 AM, chefsmart wrote: > > Hi, > > Am not sure whether Django-users or Django-developers is the better > mailing list for this topic? However,... > > The Django roadmap for 1.1 estimated the release to be around mid- > April 2009. > > That

Do you know about Django 1.1 current status

2009-04-30 Thread chefsmart
Hi, Am not sure whether Django-users or Django-developers is the better mailing list for this topic? However,... The Django roadmap for 1.1 estimated the release to be around mid- April 2009. That hasn't happened and of course this is because the developers and contributors feel it's not ready