Re: Recursive comments

2007-12-07 Thread Thomas
Resolved: easier than I thought! Part where I got stuck was the correct syntax for the template tags when commenting on the comments: For example for the comments form I'd need. {% comment_form for [pkg].[py_module_name] [context_var_containing_obj_id] with [list of options] %} For the

Re: creating an inline comma-separated list

2007-12-07 Thread Eric Abrahamsen
> The template snippet which does this is actually pretty simple: > > Its part of the categor{{ > object.categories.count|pluralize:"y,ies" }} {% for category in > object.categories.all %}{{ > category.title }}{% if forloop.last %}{% else %}{% ifequal > forloop.revcounter0 1 %} and {% else %}, {%

Recursive comments

2007-12-07 Thread Thomas
Hi list, any pointers on how to implement the recursive comments functionality slashdot/reddit-style (comments on the comments)? I think I can't use django.contrib.comments straight but need a wrapper application in my project directory ... Thanks, Thomas

Re: creating an inline comma-separated list

2007-12-07 Thread James Bennett
On Dec 8, 2007 12:28 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > Hope the formatting survives. I have two questions: > > 1. Is there really no easier way to do this? > 2. I'm up against the negative indexing problem in getting the last > author, and while the negative order_by seems okay,

Using 'Form Preview' to allows users to preview their order before submission

2007-12-07 Thread Greg
Hello, I have a form where website visitor's enter in their billing, shipping, and credit card info. I want to give the user the ability to preview their order information before they submit their order. I've been reading about Django's 'Form Preview' module however I'm not sure if that is what

Re: Distributing Updates

2007-12-07 Thread James Bennett
On Dec 7, 2007 10:16 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > This quite literally is the only thing that's keeping me from going > with Django and not looking back, but I really can't bother my clients > with having to walk them through opening a database and adding new > columns and

Distributing Updates

2007-12-07 Thread [EMAIL PROTECTED]
I've been considering using Django to serve as a means of receiving some pretty basic data from a client GUI application. I absolutely love Django but the process of distributing updates really bothers me. Let's say I change the layout of the database via models and need to get this to my

Re: flatpages and 404s

2007-12-07 Thread zero
*erch* seems as if I also trapped into the SITE_ID problem ... see here http://groups.google.com/group/django-users/browse_thread/thread/6b0c21bb395df46/a1c24b6c76dc6ac1?hl=de=gst=flatpages#a1c24b6c76dc6ac1 On 8 Dez., 02:04, zero <[EMAIL PROTECTED]> wrote: > hm ... I have the same problem, but

Re: flatpages and 404s

2007-12-07 Thread zero
hm ... I have the same problem, but no solution to it as Loki. I did exactly the same as what he decribed above. very annoying if something that simple doesn't work. I am running django with mod_python and also checked the Apache access logs to be sure to get that 404 that is required to make

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread Malcolm Tredinnick
On Fri, 2007-12-07 at 06:53 -0800, sector119 wrote: > When I try to use admin in queryset-refactor branch I get errors with > handle_legacy_orderlist. > It was removed from django.db.models.query, but still use in django/ > contrib/admin/views/main.py at ChangeList.get_ordering.. Since the

Re: overriding User model list_display and fields in Admin

2007-12-07 Thread Malcolm Tredinnick
On Fri, 2007-12-07 at 06:08 -0800, l5x wrote: > Hello, > > I couldn't find the information how to override the 'list_display' and > 'fields' of the Django (SVN) User model in Admin interface. > > I need to display User altogether with his two profiles. I know that > there is a get_profile(),

Internet Explorer shenanigans

2007-12-07 Thread jim
I am using django in the standard style: if request.method == 'GET': do_something() elif request.method == 'POST': get the form data validate it if fail validation show the errors else redirect to sucess page Let's say the the form post fails caus of invalid data, and the

Store your photos secure, online. 2 GB free!

2007-12-07 Thread Zooric
Store your photos secure, online. 2 GB free! Store, access, share and use your digital documents. With complete privacy. 2GB free!

Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty
Added ticket http://code.djangoproject.com/ticket/6155 with patch. Still need to write tests. Michael On Dec 7, 2007 3:15 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote: > > > > > > > > > Seems dumpdata is coded to require a Manager named

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread michaelbuddy
Thanks everyone, this has been helpful. I think I will go with Django and experiment for a couple weeks. The flat pages looks interesting. On Dec 7, 8:17 am, l5x <[EMAIL PROTECTED]> wrote: > I suppose that you should take a look > athttp://www.djangoproject.com/documentation/flatpages/ >

Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 7, 2007 2:31 PM, Empty <[EMAIL PROTECTED]> wrote: > > > Seems dumpdata is coded to require a Manager named 'objects' for the > Models > > it dumps, even though (as described here: > > http://www.djangoproject.com/documentation/model-api/#manager-names), > Django > > does not require that a

Re: get choice value in Form

2007-12-07 Thread Chris Brand
> class CustomForm( forms.Form): > age = forms.ChoiceField(label='Age', choices=AGE_CHOICES) > > How can I get the value (not the key) of the age attribute after > validation? > > if f.is_valid(): > cd = f.cleaned_data > > cd['age'] # returns the "key", not the value Once you've saved

Re: Attribute Error on Dumpdata

2007-12-07 Thread Empty
> Seems dumpdata is coded to require a Manager named 'objects' for the Models > it dumps, even though (as described here: > http://www.djangoproject.com/documentation/model-api/#manager-names), Django > does not require that a Manager named objects exists for all Models. > Whether this is just an

Who is Jesus?

2007-12-07 Thread عاصم عبد اللطيف
Who is Jesus? Without a doubt, you have often heard the claim that Jesus is God, the second person in the "Holy trinity." However, the very Bible which is used as a basis for knowledge about Jesus and as the basis for doctrine within Christianity clearly belies this claim. We urge you to consult

Re: Caching when caching is disabled

2007-12-07 Thread JLathem
Karen, Thanks for your help. That was just a simplified example to show my point but your suggestion was the problem I was facing. Jon On Dec 7, 11:54 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Dec 6, 2007 1:43 PM, JLathem <[EMAIL PROTECTED]> wrote: > > > > > > > I have a template that

Re: Caching when caching is disabled

2007-12-07 Thread Karen Tracey
On Dec 6, 2007 1:43 PM, JLathem <[EMAIL PROTECTED]> wrote: > > I have a template that extends another. Each template have variables > in them. When the variable in the parent template changes the HTML is > not updated. That is to say, a variable in the parent page is set to > X I view the page

Re: Attribute Error on Dumpdata

2007-12-07 Thread Karen Tracey
On Dec 6, 2007 8:01 PM, ttk <[EMAIL PROTECTED]> wrote: > > I think I found my problem... > > I failed to add "objects = models.Manager()" into my models which > would explain why that attribute isn't found. > > I'll try this out but if anyone has additional suggestions, I'm all > ears. Seems

To Django Developers in the Boston Area

2007-12-07 Thread Mendel
My name is John Mendelewski, and I am currently attending Northeastern University in Boston, MA. I am in a student group called ACM, the Association for Computing Machinery. It is basically the computer science student group for the college. Throughout the year, we have professionals and

Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-07 Thread Shev
Yes, thanks, I'd agree and understand that whatever is in the models.py cannot and should not override what's specified in the database. In this case, a NULL for my BooleanField() is actually allowed in the Postgres database as well. And given the error message, it would seem to be a problem

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread sector119
more errors.. when I try to retrive some data: % python2.5 manage.py shell >>> from organizations.models import Organization >>> offices = list(Organization.objects.all()) File "/home/sector119/devel/django_src/django/db/models/sql/ query.py", line 524, in find_ordering_name order)) File

Re: ordering. missing FROM-clause entry for table "locations_location"

2007-12-07 Thread sector119
When I try to use admin in queryset-refactor branch I get errors with handle_legacy_orderlist. It was removed from django.db.models.query, but still use in django/ contrib/admin/views/main.py at ChangeList.get_ordering.. On 7 Грд, 01:21, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu,

Re: serving static files with apache on windows with mod_python

2007-12-07 Thread Empty
> to the apache httpd.conf file > but when i turn off debug in the settings file as well as turning > PythonDebug Off in the httpd.conf, > my media files (css,images,...) disappear. > I have also done > > SetHandler None > > as well as > > SetHandler None > > I have read that my media files

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread l5x
I suppose that you should take a look at http://www.djangoproject.com/documentation/flatpages/ as well. It will give you the basic possibilty to manage the content, than you can extend it while learning more. Best regards, l --~--~-~--~~~---~--~~ You received

Re: mark form field as required in markup

2007-12-07 Thread l5x
You also do this like that: class CommentForm(forms.Form): name = forms.CharField( widget=forms.TextInput(attrs={'class':'special'})) url = forms.URLField() comment = forms.CharField( widget=forms.TextInput(attrs={'size':'40'})) 'class':'special' --

overriding User model list_display and fields in Admin

2007-12-07 Thread l5x
Hello, I couldn't find the information how to override the 'list_display' and 'fields' of the Django (SVN) User model in Admin interface. I need to display User altogether with his two profiles. I know that there is a get_profile(), but I want to display everything related to User in the Admin,

Fwd: serving static files with apache on windows with mod_python

2007-12-07 Thread bayo
--- Forwarded message --- From: bayo <[EMAIL PROTECTED]> To: django-users@googlegroups.com Cc: Subject: serving static files with apache on windows with mod_python Date: Fri, 07 Dec 2007 14:42:02 +0100 Hi All, I have been trying to setup django on windowsxp with mod_python. I have got

Re: mark form field as required in markup

2007-12-07 Thread Empty
Well each field has and id that in your case here appears as 'id_age'. So you can attach a style sheet item to that field directly but that will not do anything for the whole row. If you just wanted to add something to the label like 'Age *" so the user can see that it's required that way, then

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Peter Herndon
Hi Michael, > I've been wanting to get into Python, thinking it could be good for > certain interactivity which I haven't implemented really in my sites, > DB access, forms. Indeed, Python in general and Django in particular are quite good for these sorts of features. > But I have a site

Re: get choice value in Form

2007-12-07 Thread Tim Chase
> # Assume these are key-value pairs > AGE_CHOICES=( > (1, '0-3'), > (2, '3-6'), > (3, '6-15'), > ) > > class CustomForm(forms.Form): > age = forms.ChoiceField(label='Age', choices=AGE_CHOICES) > > How can I get the value (not the key) of the age attribute after validation? > >

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Gustavo Orrillo
Michael, Plone and Django will do the job 2007/12/7, michaelbuddy <[EMAIL PROTECTED]>: > > > I'm ok in CSS, HTML, I use a text editor to make sites, typically I've > been using a wiki framework called pmwiki created in PHP and is pretty > nice. But it doesn't have an RTF editor. > > I've been

New German speaking mailinglist for Django in Berlin

2007-12-07 Thread djb
There ist a new German speaking mailinglist for Django users in Berlin, Germany, and its neighbourhood. The current description in German reads as follows: """ Dies ist eine deutschsprachige Liste zu Django, einem Web-Application- Frame- work, speziell für den Austausch zwischen Django-Benutzern

mark form field as required in markup

2007-12-07 Thread Frank 7200
Hi group, another question. Is there a way how to pass an information to markup that a form field is required? I have this form with one field, which is required (default value). class CustomForm(forms.Form): age = forms.ChoiceField(label='Age', choices=AGE_CHOICES) {{ form.as_table}}

get choice value in Form

2007-12-07 Thread Frank 7200
Hi group, I have a form (from newforms) with choices # Assume these are key-value pairs AGE_CHOICES=( (1, '0-3'), (2, '3-6'), (3, '6-15'), ) class CustomForm(forms.Form): age = forms.ChoiceField(label='Age', choices=AGE_CHOICES) How can I get the value (not the key) of the age