Re: QuerySet.distinct and aggregates

2010-05-09 Thread Russell Keith-Magee
On Thu, May 6, 2010 at 7:50 PM, zinckiwi wrote: >> I was hoping for an elegant solution for when I know there's going to >> be several thousand plus instances (or hundreds of thousands after a >> year or two of deployment). So in the end, I guess I can work with it, >> but mostly I was hoping to

Practical Django Projects 2: Weblog urls.py help...

2010-05-09 Thread mhulse
Hi, I am working my way through Practical Django Projects, 2nd addition, and I am having troubles getting the weblog permalink url to function. >From my urls.py: === entry_info_dict = { 'queryset': Entry.objects.all(), 'date_field': 'pub_date', } ... ... (r'^(?P\d{4}

Custom Model Fields

2010-05-09 Thread Nick Taylor
Hi all, I want to create my own "field" type for a model, this essentially will be a relationship to another model via a generic link model (using GenericForeignKey etc). As en example I basically want to do the following in models.py: class Pizza(models.Model): toppings = IngredientsField()

Re: Django translations doesn't work !!!

2010-05-09 Thread leveille
On May 9, 4:35 am, nameless wrote: > I have: > >     * created translation strings in the template and in the > application view. >     * run this command: django-admin.py makemessages -l it and the > file it/LC_MESSAGES/django.po has been created >     * translated strings in the django.po file.

Re: Getting object representing the current user

2010-05-09 Thread Paul
On May 5, 10:12 pm, Daniel Roseman wrote: > On May 5, 9:30 pm, Paul wrote: > > > > > I have the following model (stripped of comments and __unicode__ for > > brevity) which defines  a comment in my Django app (I'm not using the > > comment module provided with Django for various reasons): > > > c

Re: Is passing values into the admin add page possible?

2010-05-09 Thread leveille
On May 9, 4:58 am, nih wrote: > I've got a python program that starts up a django web app, I'm trying > to figure out how to pass values from the program to the web app so > some fields in the admin add page are automatically populated with > values from the program, is the only way via url parame

Re: Quotas for Django models

2010-05-09 Thread Shawn Milochik
See the notes about "commit = False" and its effects on many-to-many tables. http://docs.djangoproject.com/en/1.1/topics/forms/modelforms/#the-save-method Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

virtualenvwrapper for Windows (Powershell)

2010-05-09 Thread Guillermo
Hi, If you've ever missed it on Windows and you can use Powershell, you might want to take a look at this port of virtualenvwrapper: http://bitbucket.org/guillermooo/virtualenvwrapper/wiki/Home Regards, Guillermo -- You received this message because you are subscribed to the Google Groups "Dj

Django Database API in standalone mode

2010-05-09 Thread Ozgur Yılmaz
Hi everybody, I'm writing an open source asset,resource and project manager for animation and vfx studios. And I want to use Django's database api to handle all the db stuff. In my system every project is going to have its own database (probably sqlite3 files in project root folder). So what is th

Help Requested: Getting Started with Django

2010-05-09 Thread Chuck
Hi all, I've read through the Django tutorial and it makes a lot of sense to me. Does anyone have the full version of the poll application available for download? I think it would be a good reference for me as I develop my own site. Thank you, Chuck -- You received this message because you are

django forums with polling

2010-05-09 Thread Simon Davies
Are there any django forum applications available which come packaged with polling functionality? Cheers Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe f

Is passing values into the admin add page possible?

2010-05-09 Thread nih
Hi all I've got a python program that starts up a django web app, I'm trying to figure out how to pass values from the program to the web app so some fields in the admin add page are automatically populated with values from the program, is the only way via url parameters?, I sense its a lot more c

Django translations doesn't work !!!

2010-05-09 Thread nameless
I have: * created translation strings in the template and in the application view. * run this command: django-admin.py makemessages -l it and the file it/LC_MESSAGES/django.po has been created * translated strings in the django.po file. * run this command: django-admin.py compile

Re: Additional Text Form Field within a Models Admin Screen

2010-05-09 Thread Daniel Roseman
On May 9, 12:49 am, Nick Taylor wrote: > Hi all, > > I'm pretty new to Django so bare with me if this is a simple question. > > Basically, I have an Article model which is simply title, body, status > etc. Now, I want to add an additional TextBox to the admin for the > model, but I don't want to a