Re: Backwards incompatibility with fancy PostgreSQL queries and QS-RF

2008-04-30 Thread Barry Pederson
On Apr 30, 11:52 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 11:43 PM, Barry Pederson > > <[EMAIL PROTECTED]> wrote: > >  any thoughts on the best way to do this now with QS-RF? > > Well, the official database API docs say [1]: > > "In some rare cases, you might

Interesting Things About CheckboxSelectMultiple

2008-04-30 Thread Alex Ezell
Hi all, I am using the CheckboxSelectMultiple widget in several of my forms. I've had a little fun trying to figure out how they map to the database. I am using PostgreSQL and have a model field that looks something like this (these values and names I just typed in): DAYS_CHOICES = (

Re: Backwards incompatibility with fancy PostgreSQL queries and QS-RF

2008-04-30 Thread James Bennett
On Wed, Apr 30, 2008 at 11:43 PM, Barry Pederson <[EMAIL PROTECTED]> wrote: > any thoughts on the best way to do this now with QS-RF? Well, the official database API docs say [1]: "In some rare cases, you might wish to pass parameters to the SQL fragments in extra(select=...)`. For this

Backwards incompatibility with fancy PostgreSQL queries and QS-RF

2008-04-30 Thread Barry Pederson
Using PostgreSQL 8.3 and fulltext indexing, before QS-RF I was able to execute queries like: - q = 'hello world' queryset = Entry.objects.extra( select={ 'snippet': "ts_headline(body, query)", 'rank': "ts_rank_cd(body_tsv, query, 32)", },

Re: One choice field depending on another choice field in new forms?

2008-04-30 Thread ydjango
Thanks , all I needed to do was to create a new forms object again if request.method =='POST' : form = AssignMilestoneForm(request.POST,initial={'group': my_group,'a':a1}) if form.is_valid() ...standard processing form = AssignMilestoneForm(request.POST,initial={'group':

Re: Django on Jython - anybody doing it?

2008-04-30 Thread rich
>From the link: > "Lastly, Django running on Jython, like other Python web app frameworks, is a > compelling alternative for Java developers who need to use the Java platform, > but without unnecessary pain and development cost." Amen brother. On May 1, 1:00 pm, "James Bennett" <[EMAIL

Re: IE6/Safari not keeping cookie after closing browser

2008-04-30 Thread Michael
I am not sure what version of Safari you are using, but sorry there is no way for force users to keep cookies on their computer. IE6 flushes cookies on close and Firefox puts a default expire time on them. There are reasons, historically, why these browsers do this and unless you change the

Re: Django on Jython - anybody doing it?

2008-04-30 Thread James Bennett
On Wed, Apr 30, 2008 at 9:44 PM, rich <[EMAIL PROTECTED]> wrote: > More out of curiosity than anything else, is anybody using Django on > Jython? Several people are, and are actively involved in improving both Jython and Django to work better together; a number of bugs have been reported to

Django on Jython - anybody doing it?

2008-04-30 Thread rich
More out of curiosity than anything else, is anybody using Django on Jython? --~--~-~--~~~---~--~~ 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

Re: Passing a variable to forloop

2008-04-30 Thread Jay
Thanks! You rock. On Apr 30, 9:37 pm, Lucas Hazel <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 17:48:54 -0700 (PDT) > > > > Jay <[EMAIL PROTECTED]> wrote: > > > Thank you-- I meant to include that.  The template tag is here, > > unchanged: > > >http://www.djangosnippets.org/snippets/673/ >

Re: "data" is a reserved field in newforms?

2008-04-30 Thread msoulier
On Apr 30, 9:26 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > Seehttp://www.djangoproject.com/documentation/newforms/#accessing-clean-..., > check the 'Note' section. Ah, that explains much. Many thanks. Mike --~--~-~--~~~---~--~~ You received this message

Re: One choice field depending on another choice field in new forms?

2008-04-30 Thread Doug Van Horn
It looks like you have it there in your snippet, you just need to define your 'selected_a' var. Maybe something like: if 'a1' in kwargs: selected_a = kwargs['a1'] Then set your b1 choices based on the group and optional a attribute. On Apr 30, 4:58 pm, ydjango <[EMAIL PROTECTED]>

Re: Passing a variable to forloop

2008-04-30 Thread Lucas Hazel
On Wed, 30 Apr 2008 17:48:54 -0700 (PDT) Jay <[EMAIL PROTECTED]> wrote: > > Thank you-- I meant to include that. The template tag is here, > unchanged: > > http://www.djangosnippets.org/snippets/673/ > > On Apr 30, 8:41 pm, Lucas Hazel <[EMAIL PROTECTED]> wrote: > > On Wed, 30 Apr 2008

Inline editing quirk in admin - can you help me understand why?

2008-04-30 Thread Jef
Many thanks if you can - here's my scenario (django 0.96, python 2.5.2, MySQL5, Mac OSX) I've got a model with three classes - Article, Topic, and Relevance (see below for more detail). Logically speaking, Articles and Topics have a many-to-many relationship - a topic can contain many articles

Re: "data" is a reserved field in newforms?

2008-04-30 Thread Doug Van Horn
See http://www.djangoproject.com/documentation/newforms/#accessing-clean-data, check the 'Note' section. This was a problem in the old newforms where you couldn't have a field called 'data' due to the clean_ functions clashing with the clean_data dictionary. Also see:

Re: "data" is a reserved field in newforms?

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 8:39 PM, msoulier <[EMAIL PROTECTED]> wrote: > > A coworker of mine created a form with a field called "data". > > ie. data = forms.CharField() > > This resulted in an exception being thrown when is_valid() was called > on the form: > > form error - 'dict' is not callable

Re: Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
I got it figured out. It wasn't anything to do with my session code at all. It was my own fault, not matching the "thanks" view correctly. I'm still getting used to matching routes with RegExes, but now I know what to do next time. Thanks, Brandon On Apr 30, 7:48 pm, Brandon Taylor <[EMAIL

Re: Hardy Upgrade And PythonPath

2008-04-30 Thread dayvo
Thank you! That solves my problem I was afraid they decided to rip out generic relationships. I know some people don't like using a model like that but the truth is that it's been used in practice for a long time. There are advantages to it in some situations. I'll take your advice and use

Re: Passing a variable to forloop

2008-04-30 Thread Jay
Thank you-- I meant to include that. The template tag is here, unchanged: http://www.djangosnippets.org/snippets/673/ On Apr 30, 8:41 pm, Lucas Hazel <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 17:21:47 -0700 (PDT) > > > > Jay <[EMAIL PROTECTED]> wrote: > > > Hi, guys.  I'm working with a

Re: Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
Hi Karen, Ok, I have verified that the session cookie is being set using the WebDeveloper toolbar in Firefox, and I set up an "error" page to redirect to if the cookie wasn't set. All that worked as intended. So, my next stupid question is...how do I get the value of the cookie back out to the

Re: Passing a variable to forloop

2008-04-30 Thread Lucas Hazel
On Wed, 30 Apr 2008 17:21:47 -0700 (PDT) Jay <[EMAIL PROTECTED]> wrote: > > Hi, guys. I'm working with a paginator templatetag, and I'm trying to > apply a custom style to the current page. > > In the code below, page.number renders *outside* the forloop, but not > *inside* the forloop. > >

"data" is a reserved field in newforms?

2008-04-30 Thread msoulier
A coworker of mine created a form with a field called "data". ie. data = forms.CharField() This resulted in an exception being thrown when is_valid() was called on the form: form error - 'dict' is not callable The exception occurs at line 180 in \lib\site-packages\django\newforms\forms.py

Passing a variable to forloop

2008-04-30 Thread Jay
Hi, guys. I'm working with a paginator templatetag, and I'm trying to apply a custom style to the current page. In the code below, page.number renders *outside* the forloop, but not *inside* the forloop. {{ page.number }} << this one renders, but the next page.number does not. {% for page in

Re: Best way to extend an existing django app

2008-04-30 Thread Scott SA
Hi Rajesh, On 4/30/08, Rajesh Dhawan ([EMAIL PROTECTED]) wrote: >> Is there a reasonable/accptable ot better yet "recommended" way to add >functionality, etc. to an app without resorting to the above points? If so, >what stones should I turn (via google serches, etc.) to figure this out. >

Identify fieldmodel for attributes of an given object

2008-04-30 Thread Manuel Meyer
Hey, I want to get the Fieldmodel(Charfield, TextField, SlugField...) of each member of any given object. What I have now is this: def search_objects_attributes(o): object_dir = dir(o) for i in object_dir: try: current_attribute =

Re: Form submit URL has "/" in front of "?"

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 6:32 PM, RaviKondamuru <[EMAIL PROTECTED]> wrote: > > Changing > > the urls.py to > (r'^s/b$', status) > and > submit action to > action="/s/b" from action="." > > I am able to get the URL: http://10.217.6.53/s/b?id=2. This is how i > was hoping to get the URL to look. >

Re: Form submit URL has "/" in front of "?"

2008-04-30 Thread RaviKondamuru
Changing the urls.py to (r'^s/b$', status) and submit action to action="/s/b" from action="." I am able to get the URL: http://10.217.6.53/s/b?id=2. This is how i was hoping to get the URL to look. thanks, Ravi. On Apr 30, 2:58 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30,

Re: Hardy Upgrade And PythonPath

2008-04-30 Thread Rajesh Dhawan
On Apr 30, 6:08 pm, dayvo <[EMAIL PROTECTED]> wrote: > Thank you for the advice on this problem.  I haven't touched Django > since I finished this project.  It's been about 4 months. > > Having had some more time to explore the issue, I believe the problem > lies here: > > from

Re: Hardy Upgrade And PythonPath

2008-04-30 Thread cjl
Actually, if you installed Django from synaptic you probably have: http://packages.ubuntu.com/hardy/python-django Which is actually older than trunk. Your code, and the above import, needs trunk to work, I think. See:

Re: Hardy Upgrade And PythonPath

2008-04-30 Thread dayvo
Thank you for the advice on this problem. I haven't touched Django since I finished this project. It's been about 4 months. Having had some more time to explore the issue, I believe the problem lies here: from django.contrib.contenttypes import generic In my models.py, I'm using generic

One choice field depending on another choice field in new forms?

2008-04-30 Thread ydjango
I have two choice fields in same form populated from two different tables - A and B. B has foreign key to A (A to B is one to many). Based on A value selected by user on page, I want to refresh and show corresponding B values. What is the best way to do it? Any links to snippets or code example

Re: Form submit URL has "/" in front of "?"

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 5:19 PM, RaviKondamuru <[EMAIL PROTECTED]> wrote: > > Hi, > > The form submit has the URL in the format: http://10.217.6.53/s/b/?id=2. > The "/" before the ?id=2 in the URl seems to be incorrectly placed. It > works, but the syntax seems to be wrong. Is there a problem in

Form submit URL has "/" in front of "?"

2008-04-30 Thread RaviKondamuru
Hi, The form submit has the URL in the format: http://10.217.6.53/s/b/?id=2. The "/" before the ?id=2 in the URl seems to be incorrectly placed. It works, but the syntax seems to be wrong. Is there a problem in my urlconf? (r'^s/b/$', status), Is that "/" alright to have? How do I get rid of

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
Thanks Karen for your feedback again. I found that very useful. The NewForms-Admin branch is really something I absolutely use now and would probably be keen myself to help get the urgent issues ironed out, if possible of course. regards, -al On Apr 30, 11:02 pm, "Karen Tracey" <[EMAIL

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 4:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks Karen. Thats exactly what I was looking for. The patch attached > to the ticket is perfect. > > Quick question: how does the process of patches work in a case like > this? Does a patch for a small issue as such

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
Thanks Karen. Thats exactly what I was looking for. The patch attached to the ticket is perfect. Quick question: how does the process of patches work in a case like this? Does a patch for a small issue as such get accepted in short frame of time? -al On Apr 30, 10:00 pm, "Karen Tracey"

Re: Rendering specific widgets of a MultiWidget

2008-04-30 Thread Martin Diers
It occurred to me, last night as I was drifting off to sleep, that the only problem with just subclassing the DurationField widget, is that you won't see any value over 24hrs, as that will spill over into days. So - looks like your only option is to write your own version of Duration

Re: Simply can't get sessions to work - help!

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 3:40 PM, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > I must be missing the forest for the trees, because I simply can't see > what I'm doing wrong here! > > #in views.py > def find_seminar_occurrence(request, slug, id): >occurrence =

Re: Insane Frustration with IE and Image uploading

2008-04-30 Thread Patrick Taylor
On Apr 29, 9:03 pm, Roboto <[EMAIL PROTECTED]> wrote: > My code to validate picture data posted below. > My quick commentary on it is that it works 100% for fire fox, safari. > But images won't validate with IE.  I thought this might have to do > with the accept-chartype.  But I was dead wrong. >

Question abouit caching QuerySets

2008-04-30 Thread brandonl
Is there a way to disable QuerySet caching? Thanks. -Brandon --~--~-~--~~~---~--~~ 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

Re: The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 3:25 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The non_field_errors don't get displayed on newforms-admin templates > such as chnage_form.html > > I did a debug on adminform.form.errors.items in chnage_form.html and > my error is there under __all__ field. > >

Simply can't get sessions to work - help!

2008-04-30 Thread Brandon Taylor
Hello everyone, I must be missing the forest for the trees, because I simply can't see what I'm doing wrong here! #in views.py def find_seminar_occurrence(request, slug, id): occurrence = get_object_or_404(Occurrence, pk=id) other_occurrences =

The non_field_errors in newforms-admin templates don't get displayed (as default)

2008-04-30 Thread [EMAIL PROTECTED]
The non_field_errors don't get displayed on newforms-admin templates such as chnage_form.html I did a debug on adminform.form.errors.items in chnage_form.html and my error is there under __all__ field. Is there a reason the __all__ field messages don't get displayed on top of form templates as

Re: a question about model inheritance after qs-rf

2008-04-30 Thread medhat
Trying to use this idea, I created the following function: def extend(parent_class, parent_id, child_class, **kwargs): p = parent_class.objects.filter(pk=parent_id).values()[0] p.update(kwargs) c = child_class(**p) return c but that still does not work. It throws an

Re: UnicodeDecodeError

2008-04-30 Thread Amit Ramon
* Szymon <[EMAIL PROTECTED]> [2008-04-30 07:34 -0700]: > > On 30 Kwi, 15:40, Amit Ramon <[EMAIL PROTECTED]> wrote: > > Hope this helps, > > Yup. I've replaced that extra function with simple {{ foo.bar.0 }} in > templates and now everything works, so that was problem you've > described. I

[Repost] Error with .extra(tables=[]) after qs-rf

2008-04-30 Thread shabda
Reposting: Essentially my question is, what does "If that isn’t possible, put your extra() call at the front of the queryset construction so that your table is the first use of that table." mean? If I have overriden .get_query_set, to add a .extra, how can I move it too beginning of queryset

Re: newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
After reading over the newforms documentation, I came across the Form.clean() method that suites my case nicely regarding my newforms- admin form: """ The Form subclass’s clean() method. This method can perform any validation that requires access to multiple fields from the form at once. This is

Pickling error / cmemcache?

2008-04-30 Thread Szymon
Hello, Can anybody tell me what that exception means? It's my fault or some kind of bug in Django (todays SVN, before upgrade there wasn't such error). Exception Type: PicklingError Exception Value: Cant pickle class django.utils.functional.__proxy__: attribute lookup

Re: Django failed to parse quote URL.

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 10:12 AM, chatchai <[EMAIL PROTECTED]> wrote: > > Hi, > With Django trunk version, when make a web request with following URL, > Django return 400 client error, > > - http://localhost/%A1 (- http://localhost/? ) > See the discussion

Re: newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
Hi Al, On Apr 30, 3:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Oh and the NewformsHOWTO doc says: > > "How do I add custom validation?" > """One option is to override form_add() and form_change() in > ModelAdmin and provide a custom form that does the validation.""" > There doesn't

Re: newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
Hi Al, On Apr 30, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would like to add some custom validation to the newform-admin form. > I have look at the > -http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddcustomval... > - and am still not finding a solution. > > Here is

Re: Passing file contents to output w/o reading it to memory

2008-04-30 Thread vv2
On Apr 30, 3:39 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Although Django can be hosted on WSGI, I am not sure if it makes use > of this if it is available. I know it is mentioned in django/core/ > servers/basehttp.py, and that there are are means of specifying > platform specific ways

Re: Django failed to parse quote URL.

2008-04-30 Thread chatchai
The problem is python cannot decode my language (Thai) character using utf8 which is default. Moreover, Django doesn't use character settings (DEFAULT_CHARSET) at beginning of processing of request. At, \django\core\handlers\wsgi.py", line 78, in __init__ self.path =

Strange error after qs-rf

2008-04-30 Thread simonbun
Hi, Before I begin: I'm using newforms-admin r7508, which is a couple of commits after the qs-rf update. Here's my stack trace: Traceback (most recent call last): File "/var/www/mydomain/project/django/core/handlers/base.py", line 82, in get_response response = callback(request,

Re: UnicodeDecodeError

2008-04-30 Thread Szymon
On 30 Kwi, 15:40, Amit Ramon <[EMAIL PROTECTED]> wrote: > Hope this helps, Yup. I've replaced that extra function with simple {{ foo.bar.0 }} in templates and now everything works, so that was problem you've described. Thank you very much! :) Szymon

Re: Translation problem

2008-04-30 Thread gcorneau
Yes: make sure you save your source file with a BOM. At least, that worked for me (I develop under Windows). I hope this helps, Gaetan On 30 avr, 10:06, Mauro <[EMAIL PROTECTED]> wrote: > On Apr 11, 6:43 am, gcorneau <[EMAIL PROTECTED]> wrote: > > > # -*- coding: utf-8 -*- > > from django

Re: newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
Oh and the NewformsHOWTO doc says: "How do I add custom validation?" """One option is to override form_add() and form_change() in ModelAdmin and provide a custom form that does the validation.""" There doesn't seem to be the from_add() and form_change() methods available in ModelAdmin, unless

Re: django-admin error

2008-04-30 Thread [EMAIL PROTECTED]
I know this may sound dumb but are you actually on the correct drive to be issuing that command? Also are you using the svn or .96. Not that it matters I am just curious. On Apr 30, 9:57 am, curt <[EMAIL PROTECTED]> wrote: > I've completed the install of python and django and I'm trying to run

newform-admin: appending an error message

2008-04-30 Thread [EMAIL PROTECTED]
I have a below class as an Admin option for the newform-admin. class JobInfoOptions(admin.ModelAdmin): def add_view(self, request): if request.method == "POST" and not request.POST['job_title'] and request.POST['status'] != "I": raise forms.ValidationError('Status can

Django failed to parse quote URL.

2008-04-30 Thread chatchai
Hi, With Django trunk version, when make a web request with following URL, Django return 400 client error, - http://localhost/%A1 (- http://localhost/ก) Below is exception details, Traceback (most recent call last): File "D:\projects\simple\userprofile\tests.py", line 12, in test_details

Re: File caching and pickling issue

2008-04-30 Thread Julien
Forgot to say that I'm running with trunk updated this morning (say, 10 hours ago). On May 1, 12:10 am, Julien <[EMAIL PROTECTED]> wrote: > Hi, > > I'm doing file caching and it's working pretty well. However, today > within 6 minutes I've received 14 errors by email (my site runs with >

File caching and pickling issue

2008-04-30 Thread Julien
Hi, I'm doing file caching and it's working pretty well. However, today within 6 minutes I've received 14 errors by email (my site runs with DEBUG=False), all very similar to: File "/MYPATH/django/core/handlers/base.py", line 82, in get_response response = callback(request, *callback_args,

Re: Translation problem

2008-04-30 Thread Mauro
On Apr 11, 6:43 am, gcorneau <[EMAIL PROTECTED]> wrote: > # -*- coding: utf-8 -*- > from django import newforms as forms > from django.conf import settings > from django.utils.translation import ugettext_lazy as _ > from apparto.building import models > > class BuildingForm(forms.Form): > #~

django-admin error

2008-04-30 Thread curt
I've completed the install of python and django and I'm trying to run django-admin to start the first project in the tutorial. When I enter the command: django-admin.py startproject mysite I get the following response: Type 'django-admin.py help' for usage. What am I doing wrong? Thanks...

Re: Newform help

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 9:35 AM, Constantin Christmann < [EMAIL PROTECTED]> wrote: > > Hello, > > can someone tell me, how I display only the errors that are _not_ > specific to one field of a newform. > What I mean is the following: > I have two password field which should match. I check that

Re: NewForms Admin - convention

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 9:22 AM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Apr 30, 4:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > As per the NewFormsAdmin Branch - > http://code.djangoproject.com/wiki/NewformsAdminBranch > > - there is a proposal convention that reads as

Re: NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
i see. I created a admin.py in my app and added a "import admin" to __init__.py. In the admin.py I had to import all from the models.py. Tested it and it works. Does that sound right? -al On Apr 30, 3:22 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Apr 30, 4:39 am, "[EMAIL PROTECTED]"

Re: UnicodeDecodeError

2008-04-30 Thread Amit Ramon
* Szymon <[EMAIL PROTECTED]> [2008-04-30 01:43 -0700]: > > Hello, > > I have this code: > > foo = bar.objects.filter(status=True).extra(select={ 'litera' : > 'LEFT(CONCAT(pseudonim, nazwisko), 1)' }) > > and it gives me an error: > > 'utf8' codec can't decode byte 0xc5 in position 0:

Newform help

2008-04-30 Thread Constantin Christmann
Hello, can someone tell me, how I display only the errors that are _not_ specific to one field of a newform. What I mean is the following: I have two password field which should match. I check that in clean() and throw a ValidationError. But how can I access this comprehensive error message

Re: NewForms Admin - convention

2008-04-30 Thread Rajesh Dhawan
On Apr 30, 4:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As per the NewFormsAdmin Branch > -http://code.djangoproject.com/wiki/NewformsAdminBranch > - there is a proposal convention that reads as follows: > > """A proposal convention: Specifying all admin options in a file > called

Re: how to read progress of uploading on the server in python?

2008-04-30 Thread Karen Tracey
On Wed, Apr 30, 2008 at 3:56 AM, kamil <[EMAIL PROTECTED]> wrote: > > hi. I want to implement "fancyupload" from > http://digitarald.de/project/fancyupload/ > Is there any way to read progress of uploading from the server in > python? > Any sugestions? > You might take a look at ticket #4165:

newform-admin: custom validation (multiple fields)

2008-04-30 Thread [EMAIL PROTECTED]
I would like to add some custom validation to the newform-admin form. I have look at the - http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowdoIaddcustomvalidation - and am still not finding a solution. Here is what I'm trying to do: I have several form fields on an admin form that

Re: Hardy Upgrade And PythonPath

2008-04-30 Thread Rajesh Dhawan
On Apr 29, 7:55 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Apr 30, 3:26 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > I could use some help getting my Django website back up after an > > > upgrade to Hardy Heron.  Instead of using svn to get Django, I used > >

Re: a question about model inheritance after qs-rf

2008-04-30 Thread AmanKow
Hmmm... this seems to be a common issue... extending already existing records Would be nice if there were a way to create the child, specify the pk and do a "save child only" On Apr 30, 9:04 am, AmanKow <[EMAIL PROTECTED]> wrote: > Assuming ACT is your class name: > > ct = #... get the content

Re: Best way to extend an existing django app

2008-04-30 Thread Rajesh Dhawan
Hi, > Is there a reasonable/accptable ot better yet "recommended" way to add > functionality, etc. to an app without resorting to the above points? If so, > what stones should I turn (via google serches, etc.) to figure this out. It depends quite a bit on how "extensibly" the said app was

Re: beware: make-messages is file extension sensitive

2008-04-30 Thread omat
And ... If you would like to add a few words to the translation, like menu items, etc. without going into views and database, do not put them into the .po file directly. They will be commented out each time you run make-messages. Also there can be duplications that will result in errors. More

Re: dúvida

2008-04-30 Thread Andrews Medina
On Wed, Apr 30, 2008 at 8:01 AM, pauloleandro <[EMAIL PROTECTED]> wrote: > > Bom dia, queria saber se o Django só aceita a linguagem Python, se é > um framework desenvolido somente para esta linguagem?? > Sim. O Django foi desenvolvido em Python e só é possível utilizar ele com Python. []'s

beware: make-messages is file extension sensitive

2008-04-30 Thread omat
Hi, I was wondering why my email templates were not getting translated. It took me hours before I check the bin/make-messages.py and figure out that only some files, depending on their extensions, are translated. I thought make-messages were working in more django-aware manner and inspects the

dúvida

2008-04-30 Thread pauloleandro
Bom dia, queria saber se o Django só aceita a linguagem Python, se é um framework desenvolido somente para esta linguagem?? Grato Paulo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: web hosting

2008-04-30 Thread Kenneth Gonsalves
On 30-Apr-08, at 3:09 PM, sharongolfer wrote: > I am not a tech head and so excuse my basic language. My web site has > been redesigned using Python and Django. My current hosting company > supports Python but not Django, does this matter? If it does can > anyone recommend a host. The designer

RE: web hosting

2008-04-30 Thread Sharon Coleman
That's great help thanks I will check them out. From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Justin Lilly Sent: 30 April 2008 12:13 To: django-users@googlegroups.com Subject: Re: web hosting If your host supports python, it

Re: web hosting

2008-04-30 Thread Tim Chase
> If your host supports python, it should support django as well. Woah...BIG CAVEAT. I've used hosting services that only have CGI available for running python programs. While yes, I believe I've seen a hack float by that allows Django apps to be "run" within CGI, it entails horrible

Re: web hosting

2008-04-30 Thread Justin Lilly
If your host supports python, it should support django as well. You can also check out webfaction http://www.webfaction.com for more information. Feel free to contact me directly if you have any questions. -jusin On Wed, Apr 30, 2008 at 5:39 AM, sharongolfer <[EMAIL PROTECTED]> wrote: > > I am

Re: Feed of all comments

2008-04-30 Thread Matt Davies
ahh there's already one written from django.contrib.comments.feeds import LatestFreeCommentsFeed I'll be back though as the feed is pumping out FreeComment Object as the object title in the feed, hmm. 2008/4/30 Matt Davies <[EMAIL PROTECTED]>: > Sorry for yet another dumbass question, but

web hosting

2008-04-30 Thread sharongolfer
I am not a tech head and so excuse my basic language. My web site has been redesigned using Python and Django. My current hosting company supports Python but not Django, does this matter? If it does can anyone recommend a host. The designer is recommending that we use their web hosting service,

Template fragment caching and ManyToManyField

2008-04-30 Thread Fabien
Hello, When I'm trying to use template fragment caching with a ManyToManyField as argument to the cache tag, I get a MemcachedKeyCharacterError since the argument is "keyed" as something like "[obj1, obj2]" and " " (space) don't seems to be allowed in Memcached keys. {% load cache %} {% cache

UnicodeDecodeError

2008-04-30 Thread Szymon
Hello, I have this code: foo = bar.objects.filter(status=True).extra(select={ 'litera' : 'LEFT(CONCAT(pseudonim, nazwisko), 1)' }) and it gives me an error: 'utf8' codec can't decode byte 0xc5 in position 0: unexpected end of data when there is in database record starting with polish char

Re: Suggestions on UI (client side web) framework to complement Django

2008-04-30 Thread shabda
We used Dojo for our last project, but there was far too many things happening behind the scenes, and not really documented. We finally decided to rewrite evrything in Jquery. Now I never look farther than JQuery. :) Andre Meyer wrote: > On Tue, Apr 29, 2008 at 9:00 PM, Szaijan <[EMAIL

NewForms Admin - convention

2008-04-30 Thread [EMAIL PROTECTED]
As per the NewFormsAdmin Branch - http://code.djangoproject.com/wiki/NewformsAdminBranch - there is a proposal convention that reads as follows: """A proposal convention: Specifying all admin options in a file called admin.py, and import it in the __init__.py file of your application module to

Feed of all comments

2008-04-30 Thread Matt Davies
Sorry for yet another dumbass question, but can someone point me to a link on how to set up a feed of all comments on a django site if you're using the 'django.contrib.comments', installed app. Thanks again. --~--~-~--~~~---~--~~ You received this message because

Re: APPEND_SLASH trouble (ticket 6167)

2008-04-30 Thread Giovanni Giorgi
Hi, I have seen the ticket are still open. I have done a small patch. It is simpler then the http://code.djangoproject.com/attachment/ticket/6213/common_middleware.py.diff but works great for me. I have derived it from the ticket 616, which was not working on the latest subversion. I can send

how to read progress of uploading on the server in python?

2008-04-30 Thread kamil
hi. I want to implement "fancyupload" from http://digitarald.de/project/fancyupload/ Is there any way to read progress of uploading from the server in python? Any sugestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: need to use both django 0.96 and django trunk for work

2008-04-30 Thread Jarek Zgoda
berthor pisze: > I've read around the web a bit and haven't come across anywhere > explaining hwo to keep both versions up and running. and I'm sure > it's as simple as a few lines of code in a terminal shell, but I'm not > that familiar with this OS. Probably a line or two in a settings file

Re: get for errors as string and not as HTML

2008-04-30 Thread Rishabh Manocha
Did you take a look at http://www.djangoproject.com/documentation/newforms/#customizing-the-error-list-format ?? You could just return the error message without wrapping it in any div/span/ul etc. R On Tue, 2008-04-29 at 22:23 -0700, Mike Chambers wrote: > Thanks. > > This was the only way I

Re: Which kind of model inheritance is most suited?

2008-04-30 Thread Guillaume Lederrey
2008/4/29 francesco <[EMAIL PROTECTED]>: > I'd like to implement two kind of users in my system: a buyer and a > seller. > Both kind of users should, of course, inherit from a user model. > As I'd like to use the authentication framework from django.contrib, > should I have the "user" as