Re: [Django-users] how about a subject prefix???

2007-01-03 Thread Honza Král
if you are using gmail, you can set up a filter to put all django related stuff to a specific label, even skip the inbox so that it wouldn't interfere with your normal mail... just search for django-developers@googlegroups.com in To: field... that should do the trick... (if you are using some ot

Re: [Django-users] how about a subject prefix???

2007-01-03 Thread Felix Ingram
On 03/01/07, Honza Král <[EMAIL PROTECTED]> wrote: if you are using gmail, you can set up a filter to put all django related stuff to a specific label, even skip the inbox so that it wouldn't interfere with your normal mail... just search for django-developers@googlegroups.com in To: field... t

Re: Newforms clean_data

2007-01-03 Thread Honza Král
On 12/30/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: On 12/29/06, Vadim Macagon <[EMAIL PROTECTED]> wrote: > > Adrian Holovaty wrote: > > > > Would it help if the form automatically called its validation the > > first time you accessed form.clean_data? I'm trying to decide whether > > that wou

Django users at WebDD? (Reading, UK, Feb 3rd)

2007-01-03 Thread Jon Atkinson
Hi all, http://www.webdd.org.uk/ Are any Django users going to be attending WebDD? It's on February the 3rd, at the Microsoft Campus in Reading (here: http://tinyurl.com/wgaz8). It's a free one-day event. From their website: "The mantra behind the conference is that currently there is no focus

Re: newforms - updating ChoiceField choices at runtime

2007-01-03 Thread gordyt
Many thanks Honza! I modified my Form class as follows (this is the complete form class, not just a fragment...sorry for all of the choppy lines. Trying to keep from wrapping in the wrong place): class AddEditContactHistoryForm(forms.Form): customer_id = forms.Field( widget=forms.Hid

Re: Newforms and composite widgets

2007-01-03 Thread gordyt
Adrian I have been experimenting with the SelectDateWidget and I have noticed one bit of strange behavior. Wondering if I'm using it incorrectly. My original element in the form class is this: date_opened = forms.DateField(initial=date.today()) This works as expected and if the data supplied

CRUD design question

2007-01-03 Thread John M
Still a newbie so bear with me.. I'm starting to get into forms, which are pretty easy with manipulators. I'm wondering though, would it be possible to use ONE form for add, view and update? If so, what would I need to do, meaning, obviously two of them have a post, the others dont. Is this a

make free calls across the globe

2007-01-03 Thread ameresh
Download the software and Call any phone anywhere across the globe Free! - http://surl.in/HLGB7238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Newforms and composite widgets

2007-01-03 Thread Adrian Holovaty
On 1/3/07, gordyt <[EMAIL PROTECTED]> wrote: date_opened = forms.DateField( initial=date.today(),widget=SelectDateWidget) This does render the composite widget just fine, but it will not use a date_opened value that is supplied with the form class is instantiated and so displays the error s

Re: Problem with django installation

2007-01-03 Thread Joseph Heck
Antti - can you give us some more information to help you? It looks like you're running a development server. Is that correct? Did you just start it with "django-admin.py runserver" or something else? It looks like it was trying to throw an exception when it dumped out unhappily. The exception th

Re: What user does django server runs?

2007-01-03 Thread Michel Thadeu Sabchuk
Hi guys! I'm not very familiar with pg_hba.conf file but with your help I will :D Thanks for help! -- Michel Thadeu Sabchuk Curitiba/PR --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: CRUD design question

2007-01-03 Thread [EMAIL PROTECTED]
Create a form where if it's new, it's blank and has a "create" button that makes the thing. If you are viewing, fill in the form with the existing info with an "update" button. You can also add a "delete" button to the view/update version if you want. This is just a couple of conditionals real

flatpages with content entirely in template

2007-01-03 Thread James Tauber
The djangoproject.com site itself seems to use flatpages with the content entirely in the template. For example, http://code.djangoproject.com/browser/djangoproject.com/ django_website/templates/flatfiles/homepage.html doesn't reference flatpage.title or flatpage.content at all. Assumi

psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe
Hey all. Im trying to get django up and running on my Mac (powerbook, powerpc chip, 10.4 OSX). I got postgresql v 8.2.0 up and going, along with Python 2.4. I go to install psycopg to get the two communicating with one another, and, following the directions on the SetupOnTiger (http://code.djan

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Abe
Sorry, ignore the "bold --~--~-~--~~~---~--~~ 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 [EMAIL

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Honza Král
On 1/3/07, Abe <[EMAIL PROTECTED]> wrote: Hey all. Im trying to get django up and running on my Mac (powerbook, powerpc chip, 10.4 OSX). I got postgresql v 8.2.0 up and going, along with Python 2.4. I go to install psycopg to get the two communicating with one another, and, following the direc

Re: psycopg installation error: C compiler cannot create executables

2007-01-03 Thread Joseph Heck
Your path probably doesn't include pg_config on it. Step 4 in the Postgres instructions has you adding /opt/pgsql/bin to your path - I don't have a Mac with me to check, but is pg_config in there? If not, add on to your PATH environment variable for where-ever its located and it should build from

ProgrammingError: ERROR: invalid input syntax for integer: ""

2007-01-03 Thread Baurzhan Ismagulov
Hello all, I have a ForeignKey that may be NULL in a table editable inline, see http://www.radix50.net/~ibr/mysite/myapp/models.py (the whole project with the data is available at http://www.radix50.net/~ibr/mysite.tar.gz ). When I fill in the first Price in the Admin Home -> Object page, saving

user registration app

2007-01-03 Thread James Tauber
Has anyone here built a user registration app for django (including email verification and support for password resets, etc) that is generic enough to be shared? In particular, I want a system that works pretty much like the diagrams at: http://jtauber.com/blog/2006/03/20/accoun

Re: user registration app

2007-01-03 Thread [EMAIL PROTECTED]
I made one http://fivethreeo.dynalias.org/pages/using-userprofile-app/ But not very generic --~--~-~--~~~---~--~~ 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@

Re: user registration app

2007-01-03 Thread Joseph Heck
I'm afraid my stuff is pretty customized to the account extensions we used, but we based it off the examples and conversation at http://groups.google.com/group/django-users/browse_thread/thread/f5799bd10a7 6914c/66f7149584eeda72?q=registration+login&rnum=3#66f7149584eeda72 - which will hopefully b

Re: flatpages with content entirely in template

2007-01-03 Thread James Bennett
On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: Or are people using template-only flatpages just going ahead and making flatpage database records with dummy title/content just to specify the template to use? (and is this indeed what djangoproject.com itself is doing?) Off the top of my head

Many-To-Many relationships, select_related()

2007-01-03 Thread Trey
Is there a problem in django's many-to-many relationship mapper when it comes to selecting the related fields? In this simple example I have a user with permissions and they are related via an intermediary table. "select_related()" only brings back the User object and each access of a Permission

DATE template filter breaks utf-8 encoded week days

2007-01-03 Thread [EMAIL PROTECTED]
Hello, I had a slight problem with the DATE template filter - it incorrectly truncates localized (in my case to 'cs-cz' locale) week names when I wanted to get 3-char week day name - utf-8 characters got broken "at half". A small fix for that solved the problem: --- django/utils/dateformat.py (

Sessions without cookies for mobile sites

2007-01-03 Thread davo
Hi, I'm fairly new to Django (first post!) and have searched for a solution to this problem without finding anything useful - forgive me if this has been covered before. I'm currently working on a hybrid web/mobile app, and have hit a bit of a stumbling block because a lot of the phones on the

Re: noob help, many to one, model

2007-01-03 Thread Trey
Awesome, thanks for the help. I think a piece of my problem was being new to Python as well but now I am on the right tracks. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: CRUD design question

2007-01-03 Thread John M
[EMAIL PROTECTED] wrote: Create a form where if it's new, it's blank and has a "create" button that makes the thing. If you are viewing, fill in the form with the existing info with an "update" button. You can also add a "delete" button to the view/update version if you want. This is just a

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
Thanks, that's helpful. It does, however, raise the question why djangoproject.com does the homepage as a flatpage rather than direct_to_template generic view. James On 03/01/2007, at 7:41 PM, James Bennett wrote: On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: Or are people using t

Re: flatpages with content entirely in template

2007-01-03 Thread James Bennett
On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: It does, however, raise the question why djangoproject.com does the homepage as a flatpage rather than direct_to_template generic view. If I had to guess, I'd say it's because direct_to_template didn't exist until revision 1247 of Django, and

Re: flatpages with content entirely in template

2007-01-03 Thread James Tauber
Makes sense. I guess djangoproject.com might not be the best production deployment of django to look to for the latest-and- greatest way to do things :-) James On 03/01/2007, at 10:40 PM, James Bennett wrote: On 1/3/07, James Tauber <[EMAIL PROTECTED]> wrote: It does, however, raise th

Unpacking in template loops

2007-01-03 Thread Brian Beck
Sorry if this has been brought up before, I tried searching... Would it be too complex/controller-y/confusing to allow sequence unpacking in Django's for loops? As far as I can tell it isn't supported. So for example, if I have a list... fruits = [('apple', 10), ('orange', 5), ('banana', 7)]

Daily Kos considering switch to python

2007-01-03 Thread ogghead
The extremely popular left-leaning political website, Daily Kos, is planning to dump their perl-based Scoop backend and start again. They need a highly customizable CMS or framework that can handle heavy loads. This would be an excellent opportunity for Django to be considered if we argue our c

Re: CRUD design question

2007-01-03 Thread [EMAIL PROTECTED]
you would have an html form with if's around each input if there was a value or not or even just around the whole thing. Now that I think about it, it might be easier to make 2 views for this though. --~--~-~--~~~---~--~~ You received this message because you ar

Re: Daily Kos considering switch to python

2007-01-03 Thread James Bennett
On 1/3/07, ogghead <[EMAIL PROTECTED]> wrote: This would be an excellent opportunity for Django to be considered if we argue our case well. Ehh... I'm wary of communities wading in and evangelizing people they don't know, so I'd recommend caution and care to anyone who wants to argue the case

Re: Newforms clean_data

2007-01-03 Thread Adrian Holovaty
On 1/3/07, Honza Král <[EMAIL PROTECTED]> wrote: I do agree that the magic would be bad - but the current state IS confusing, would it be possible to simply a) hide clean_data until validation has been done b) throw some exception when accessing uninitialized clean_data This is a good idea -

problem with inclusion_tag

2007-01-03 Thread stoKes
Running into a bit of an issue trying to load a custom tag in my base.html file. ive got /project/templates/base.html /project/templatetags/showmenu.py showmenu.py from django.template import Library, Node from django.contrib.auth.models import User from django.conf import settings register =

django.core.handlers.modpython imported several times

2007-01-03 Thread [EMAIL PROTECTED]
Hi all, here what I've got from my Apache2 error log: [Thu Jan 04 16:07:57 2007] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython' [Thu Jan 04 16:08:06 2007] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython' [Thu Jan 04 16:34:15 2007] [notice] m

Re: django.core.handlers.modpython imported several times

2007-01-03 Thread Adrian Holovaty
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: here what I've got from my Apache2 error log: [Thu Jan 04 16:07:57 2007] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython' [Thu Jan 04 16:08:06 2007] [notice] mod_python: (Re)importing module 'django.core.handlers.

Re: django.core.handlers.modpython imported several times

2007-01-03 Thread [EMAIL PROTECTED]
Adrian Holovaty wrote: On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > here what I've got from my Apache2 error log: > > [Thu Jan 04 16:07:57 2007] [notice] mod_python: (Re)importing module > 'django.core.handlers.modpython' > [Thu Jan 04 16:08:06 2007] [notice] mod_python: (Re)import