Re: django google-app-engine appengine backend

2008-09-27 Thread Josh
Hi there, I seem to be having the same problem you are. Any chance you found a solution? Cheers, Josh On Sep 19, 7:51 am, bfrederi <[EMAIL PROTECTED]> wrote: > @Adam Fast > I think you are right. I'm not at home, so I can't check for sure, but > I'm almost positive I completely forgot to add

Hava any way to load django's app dynamic

2008-09-27 Thread vicalloy
Just like trac's plugin, I can upload a app and auto load it. --~--~-~--~~~---~--~~ 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: Restrict users to their own data

2008-09-27 Thread Alessandro
2008/9/28 Alessandro Ronchi <[EMAIL PROTECTED]>: > 2008/9/26 Orne <[EMAIL PROTECTED]>: >> >> This example doesn't work for me: >> Error: 'super' object has no attribute 'filter' I use this code (it works with django 1.0): def queryset(self, request): # Limit the queryset to some

Re: Django vs. Liferay

2008-09-27 Thread Malcolm Tredinnick
On Sat, 2008-09-27 at 10:16 -0700, Nic Jordan wrote: > Dear List, > > I'm currently involved in a project for building en entirely new site. > The choice of our informatics-advisor is Liferay. I now volunteered to > try to convince him, that "Django" is the better choice. > Unfortunately, I

Re: forms.DecimalField ... min_value=0.01 not honored

2008-09-27 Thread Malcolm Tredinnick
On Sat, 2008-09-27 at 18:07 +0200, Gerard Petersen wrote: > Dear Django team, > > It seems, but since I'm human it could be me, that in a modelform with a > forms.DecimalField declaration the min_value is not picked up when it has > decimals in it. The snippet: > > per_price =

Re: Restrict users to their own data

2008-09-27 Thread Alessandro Ronchi
2008/9/26 Orne <[EMAIL PROTECTED]>: > > This example doesn't work for me: > Error: 'super' object has no attribute 'filter' I use this code (it works with django 1.0): def queryset(self, request): # Limit the queryset to some subset based on the value of user. qs =

Re: actual django stack

2008-09-27 Thread Jeremy Sandell
On Sep 26, 1:25 pm, David Zhou <[EMAIL PROTECTED]> wrote: > > I've also heard good things about WSGI -- though I haven't heavily   > tested its stability compared to, say, mod_python. > --- > David Zhou > [EMAIL PROTECTED] FWIW, WSGI has thus far worked wonderfully for me, and using daemon mode

Re: admin.site.register breaks unittests

2008-09-27 Thread Russell Keith-Magee
On Sat, Sep 27, 2008 at 9:54 PM, Gerard Petersen <[EMAIL PROTECTED]> wrote: > > Russel, > > The example from the docs somehow doesn't work. I've turned on the > autodiscover but under admin it stays empty. I don't know if this is related, > but putting the register statements in urls.py does

Re: clustering with django recommender

2008-09-27 Thread Alessandro
2008/9/27 bcurtu <[EMAIL PROTECTED]>: > > Hi, > > Just to announce the new clustering methods in django-recommender: > http://code.google.com/p/django-recommender/. So far, it has methods > for Collaborative filtering, for Content Based filtering and to > cluster users and items, so it's already a

Re: Track usage

2008-09-27 Thread Alessandro
2008/8/24 Erik Allik <[EMAIL PROTECTED]>: > > You can try Google Analytics at http://google.com/analytics/ > > You could develop a Django application for that, but I see no reason. On the satchmo developer list someone told analytics is setting cookies and disable page caching. Is it true? Is

Re: Q - returning a data to the template. (many models).

2008-09-27 Thread Tom MacKenzie
http://django.pastebin.com/d1c579dbf Thanks! On Sat, Sep 27, 2008 at 5:48 PM, Ovnicraft <[EMAIL PROTECTED]> wrote: > is posible use pastebin? http://django.pastebin.com/ > > 2008/9/27 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > >> >> my view is below. >> >> >> >>Search{% if query %}

Re: Q - returning a data to the template. (many models).

2008-09-27 Thread Ovnicraft
is posible use pastebin? http://django.pastebin.com/ 2008/9/27 [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > my view is below. > > > >Search{% if query %} Results{% endif %} > > > Search > >Search: > > > > > {% if query %} >Results for "{{ query|escape }}": > >{%

Re: Q - returning a data to the template. (many models).

2008-09-27 Thread [EMAIL PROTECTED]
my view is below. Search{% if query %} Results{% endif %} Search Search: {% if query %} Results for "{{ query|escape }}": {% if results %} {% for company in results %} {{ company|escape }} {% endfor %} {% else %}

unable to resolve URL in template

2008-09-27 Thread Chuck Bai
In my url.py, I define the root my site is like this: urlpatterns = patterns('', url(r'^$', 'views.index', name="index"), ...) in my template, I have a link defined as follows: Home I got this error: TemplateSyntaxError at / Home Caught an exception while rendering: Reverse for

BaseInlineFormSet and querysets

2008-09-27 Thread TomP
Hey guys, I've been using a subclass of BaseInlineFormSet that takes queryset as an argument and I thought that maybe this would be something other people would want. So I thought I'd ask here before submitting a feature request / patch... Is this something other people want? This is how I

clustering with django recommender

2008-09-27 Thread bcurtu
Hi, Just to announce the new clustering methods in django-recommender: http://code.google.com/p/django-recommender/. So far, it has methods for Collaborative filtering, for Content Based filtering and to cluster users and items, so it's already a complete recommender engine. Cheers

Django vs. Liferay

2008-09-27 Thread Nic Jordan
Dear List, I'm currently involved in a project for building en entirely new site. The choice of our informatics-advisor is Liferay. I now volunteered to try to convince him, that "Django" is the better choice. Unfortunately, I don't know anything about Liferay, and I'm still fairly new to Django

forms.DecimalField ... min_value=0.01 not honored

2008-09-27 Thread Gerard Petersen
Dear Django team, It seems, but since I'm human it could be me, that in a modelform with a forms.DecimalField declaration the min_value is not picked up when it has decimals in it. The snippet: per_price = forms.DecimalField( label='Per Price',

Re: admin.site.register breaks unittests

2008-09-27 Thread Gerard Petersen
Russel, The example from the docs somehow doesn't work. I've turned on the autodiscover but under admin it stays empty. I don't know if this is related, but putting the register statements in urls.py does stop breaking my tests. Regards, Gerard. Russell Keith-Magee wrote: > On Sat, Sep 27,

Re: Changing field error messages

2008-09-27 Thread adrian olaru
You can try this: class AAForm(forms.ModelForm): fullname = forms.CharField(max_length=20, error_messages={'required': 'Be there no name?'}) class Meta: model = AuthorArtist On Sep 22, 11:59 am, Donn <[EMAIL PROTECTED]> wrote: > Hi, > I would like to change the 'already exists'

Re: Question about ornery nginx reverse proxy in front of apache mod_wsgi

2008-09-27 Thread john
On Sep 25, 2008, at 9:23 PM, Prairie Dogg wrote: > I'm trying to set up a new server to host several existing django > sites. The stack is: > > Ubuntu Hardy Heron > Apache 2.2 MPM Worker w/ mod_wsgi (for dynamic content) > Nginx (for static files) > > I'm migrating away from mod_python. The

Re: admin.site.register breaks unittests

2008-09-27 Thread Russell Keith-Magee
On Sat, Sep 27, 2008 at 3:26 AM, Gerard Petersen <[EMAIL PROTECTED]> wrote: > > Hi all, > > When I run my test suite, commands like these 'admin.site.register(Product, > ProductAdmin)' in models.py break my tests with this error: > > django.contrib.admin.sites.AlreadyRegistered: The model

Re: Looking for an example on how to use us.forms.USZipCodeField

2008-09-27 Thread Russell Keith-Magee
On Fri, Sep 26, 2008 at 9:11 PM, Adam Stein <[EMAIL PROTECTED]> wrote: > > While there is are phone number and US state model fields, there doesn't > seem to be the equivalent zip code field, even though there is a zip > code form element. Not sure why that would be. Mostly an accident of

Re: FormWizard and @login_required

2008-09-27 Thread Steve Holden
Knut Nesheim wrote: > 27 sep 2008 kl. 11.58 skrev Steve Holden: > > >> Knut Nesheim wrote: >> >>> Hi! >>> >>> We're trying to build a multi-page form using FormWizard. We need to >>> authorize the user first. In other views we use the user_passes_test >>> decorator, however the documented

Re: Why/where are field errors caught before form.is_valid is executed

2008-09-27 Thread Gerard Petersen
I noticed that de declarative statements (directly under class) are ignored when self.fields statements are used. class ProductForm(ModelForm): class Meta: model = Product exclude = ['order'] # This one is vaporised!!! description = forms.CharField(max_length=2,)

Re: FormWizard and @login_required

2008-09-27 Thread Knut Nesheim
27 sep 2008 kl. 11.58 skrev Steve Holden: > > Knut Nesheim wrote: >> Hi! >> >> We're trying to build a multi-page form using FormWizard. We need to >> authorize the user first. In other views we use the user_passes_test >> decorator, however the documented way of using FormWizard is to >>

Re: Form controls for choosing from long lists

2008-09-27 Thread Donn
On Friday, 26 September 2008 23:28:19 bruno desthuilliers wrote: > If you want to > avoid javascript, you'll need to store the current form's state and > whatnots (using session) and redirect to a page displaying possible > choices with (just like with the popup solution) paging, filtering > etc,

Why/where are field errors caught before form.is_valid is executed

2008-09-27 Thread Gerard Petersen
Hi All, I have a not to exciting app (modelwise) with forms all based on modelform. Im trying to figure out how to realize form field input validation. Went through piles of text. But I'm still missing the point (or rather place). This works for a date field in a defined modelform sub class:

Re: FormWizard and @login_required

2008-09-27 Thread Steve Holden
Knut Nesheim wrote: > Hi! > > We're trying to build a multi-page form using FormWizard. We need to > authorize the user first. In other views we use the user_passes_test > decorator, however the documented way of using FormWizard is to > include it directly in the urlconf: > > (r'^contact/$',

Re: Ordering results by m2m relations without multiply results

2008-09-27 Thread Alessandro
2008/9/27 Malcolm Tredinnick <[EMAIL PROTECTED]>: > You might want to prefer to do the ordering in Python or as a second > pass. Is it possible to order in python a queryset object? The generic view I use needs a queryset. If it's not possible I have to rewrite my generic object list to use a

Re: Ordering results by m2m relations without multiply results

2008-09-27 Thread Alessandro Ronchi
2008/9/27 Malcolm Tredinnick <[EMAIL PROTECTED]>: > Not really, except for writing a raw SQL query. The raw SQL for this > type of query is very complicated and it's such an edge case (it's > trying to do if-then logic in SQL when you write it out) and not always > even possible, so Django

Re: Form controls for choosing from long lists

2008-09-27 Thread Donn
On Friday, 26 September 2008 21:32:30 David Durham, Jr. wrote: > You could use something like an auto completing combo box The thing about them is I see a lot of db hits happening. Each letter (or two) pulls another query on the back end. Ouch. ( I think) \d

Re: Form controls for choosing from long lists

2008-09-27 Thread Donn
On Saturday, 27 September 2008 00:07:02 Diego Ucha wrote: > You could use the filter_(horizontal|vertical) solution Ah, that's somewhere to start. Thanks. I am not using admin because I really struggle to get it to work intuitively but will go look at the source for a while. \d