Re: Fast hosting for Django

2006-09-24 Thread iain duncan
On Sun, 2006-24-09 at 23:18 -0400, David Sissitka wrote: > I am a WebFaction customer, definitely not a bad company. A few > thoughts about WebFaction: > > 1) It's a one man show, at least, support is. Support ticket response > times are anywhere from three hours to a day and a half. > 2) The co

Re: The Holy Grail of Web Development

2006-09-24 Thread Boris
Tom Smith schreef: > For me at least is... > > A long time ago, I used to use a programming language that let me set > breakpoints and when the code stopped, I could inspect all the > variables, change them (the code would roll back to where the > earliest change was)... call non-existent functi

Re: Login crazyness...

2006-09-24 Thread Karen Tracey
Shots in the dark -- you are passing a RequestContext, not a regular old Context, into your main template? And you've got django.core.context_processors.auth in your TEMPLATE_CONTEXT_PROCESSORS setting? Karen John M wrote: > I'm trying out the login / logout methods from a simple webpage, and a

Login crazyness...

2006-09-24 Thread John M
I'm trying out the login / logout methods from a simple webpage, and am having some real trouble here. My main page has a link to /accounts/login, setup according to the docs, allows the user to fill in a name and password, hit OK, and viola they are logged in. On the main page, i check to see i

Re: Fast hosting for Django

2006-09-24 Thread Gabriel Puliatti
On 9/24/06, iain duncan <[EMAIL PROTECTED]> wrote: > I know this has been asked many times, but as new hosting solutions pop > up continually, just wanted to check on recommendations for good fast > shared hosting that is Django friendly and reliable for business > clients. http://code.djangoproj

Re: Fast hosting for Django

2006-09-24 Thread David Sissitka
I am a WebFaction customer, definitely not a bad company. A few thoughts about WebFaction:1) It's a one man show, at least, support is. Support ticket response times are anywhere from three hours to a day and a half. 2) The control panel may be appealing but it is definitely flawed. It supports Fir

Re: Fast hosting for Django

2006-09-24 Thread Jay Parlar
On 9/24/06, iain duncan <[EMAIL PROTECTED]> wrote: > > I know this has been asked many times, but as new hosting solutions pop > up continually, just wanted to check on recommendations for good fast > shared hosting that is Django friendly and reliable for business > clients. I've had a lot of su

Re: Output category name in a generic view

2006-09-24 Thread Jay Parlar
On 9/24/06, Alfonso <[EMAIL PROTECTED]> wrote: > > Thanks Jay but for some reason django doesn't like that - nothing is > output in the view?? Do you have objects in the database? And I just noticed that you were using .get(pk=1). You should be using .all(). .get() returns a single instance, but

Fast hosting for Django

2006-09-24 Thread iain duncan
I know this has been asked many times, but as new hosting solutions pop up continually, just wanted to check on recommendations for good fast shared hosting that is Django friendly and reliable for business clients. Thanks Iain --~--~-~--~~~---~--~~ You received

Re: Error in formatting:can't adapt

2006-09-24 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 20:28 +, [EMAIL PROTECTED] wrote: > Hi all, > > i've got a problem in one of my views that is returning an "Error in > formatting:can't adapt" > > If i take away the "en" and "c" dictionary items everything "works". > > Can anybody give me an hint on how to fix this? >

Re: Re: One-To-Many doesn't return a list.

2006-09-24 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 13:40 -0300, Ramiro Morales wrote: > Hi guys, > > On 9/24/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > On 9/24/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > > "Look, Russell! Shiny interesting thing... pay no attention to hook > > > shaped object...

Re: The Holy Grail of Web Development

2006-09-24 Thread Tom Smith
On 24 Sep 2006, at 19:41, [EMAIL PROTECTED] wrote:File > Launch > give it the path to manage.py runserver and debug from there Sorry but when I do that... it just sits there doing nothing.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Error in formatting:can't adapt

2006-09-24 Thread [EMAIL PROTECTED]
Hi all, i've got a problem in one of my views that is returning an "Error in formatting:can't adapt" If i take away the "en" and "c" dictionary items everything "works". Can anybody give me an hint on how to fix this? Thanks, Lorenzo @login_required def enrolled_course_list(request, user_id)

Re: The Holy Grail of Web Development

2006-09-24 Thread [EMAIL PROTECTED]
aaloy wrote: > It seems a nice piece of sofware, but unfortunatelly it's not working > for me. For example I can't attach it to a running manager. Would you > mind to tell us how are you working with the debugger? File > Launch > give it the path to manage.py runserver and debug from there Loren

Re: FilePathField displaying file in template

2006-09-24 Thread sago
James, Presumably your FilePathField points to something that is accessible via a URL. Unfortunately, unlike the other fields, FilePathField doesn't pretend to know how to map the path on your machine to the URL, so you'll have to do it manually. Something like: class MyModel(models.Model): f

Re: Re: One-To-Many doesn't return a list.

2006-09-24 Thread Ramiro Morales
Hi guys, On 9/24/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/24/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > "Look, Russell! Shiny interesting thing... pay no attention to hook > > shaped object..." > > Ohh. shiny. () > > Sorry - I've been having a 'dealing

Re: Output category name in a generic view

2006-09-24 Thread Alfonso
Thanks Jay but for some reason django doesn't like that - nothing is output in the view?? While I'm here - if I get that to work how would I take that one step further and output that categories cescription text - does it make a huge difference if the dict reads: ammonite_dict = { 'queryset': Ca

Re: One-To-Many doesn't return a list.

2006-09-24 Thread Tyson Tate
[snip] Wow! Thanks to Russell, Malcom, and Jay for hopping on this so quickly. I'm glad to know that I've uncovered an ugly ol' bug. It's definitely a blocker for my current app, so I'll be eagerly watching (and helping, if I can) for a resolution to this. Unfortunately, getting five-year-o

Re: Output category name in a generic view

2006-09-24 Thread Jay Parlar
On 9/24/06, Alfonso <[EMAIL PROTECTED]> wrote: > > If I have a dict in my urls.py set up to obtain all products in a > category like this: > > ammonite_dict = { > 'queryset': Category.objects.get(pk=1), > 'allow_empty': 'true', > } > > and then use a generic view to map that url: > > (r'^glassware

Output category name in a generic view

2006-09-24 Thread Alfonso
If I have a dict in my urls.py set up to obtain all products in a category like this: ammonite_dict = { 'queryset': Category.objects.get(pk=1), 'allow_empty': 'true', } and then use a generic view to map that url: (r'^glassware/ammonite/$', 'django.views.generic.list_detail.object_list', dict(a

Re: The Holy Grail of Web Development

2006-09-24 Thread aaloy
2006/9/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Tom Smith wrote: > > > Has anyone tried running Django from within an IDE with the ability > > to set breakpoints? Does anyone have ideas/experience about this? > > I debugged Django with this and was quite happy: > http://www.digitalpeers.com/

problem with custom validator and booleanfields

2006-09-24 Thread simon101
Hi I have a model with a boolean field which has a custom validator defined in the validator_list parameter. The validator has to run whenever the form is submitted, whether the checkbox is ticked or not. I have set the 'always_test' parameter to true for the validator, but the validator still o

Re: Re: One-To-Many doesn't return a list.

2006-09-24 Thread Russell Keith-Magee
On 9/24/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > "Look, Russell! Shiny interesting thing... pay no attention to hook > shaped object..." Ohh. shiny. () Sorry - I've been having a 'dealing with a 5 month old child that doesn't want to sleep' kind of weekend. There are a c

send_mail and ESMTP

2006-09-24 Thread Fabien Schwob
Hello, I would like to know if someone here has already tried to send mail using an ESMTP compatible server. When I'm trying to do that, I get the following error : smtplib.SMTPAuthenticationError: (535, 'authorization failed (#5.7.0)') And I can't see if the problem come from Django or from th

Re: The Holy Grail of Web Development

2006-09-24 Thread [EMAIL PROTECTED]
Tom Smith wrote: > Has anyone tried running Django from within an IDE with the ability > to set breakpoints? Does anyone have ideas/experience about this? I debugged Django with this and was quite happy: http://www.digitalpeers.com/pythondebugger/ Probably the best Python debugger out there. L

Re: One-To-Many doesn't return a list.

2006-09-24 Thread Malcolm Tredinnick
Thanks for the cut-down test case Tyson and nice debugging, Jay. Certainly something to work with here. On Sun, 2006-09-24 at 01:48 -0400, Jay Parlar wrote: [...] > I did the following: [... code changes snipped...] > Three **BIG** disclaimers about this: > > 1) I'm running off the row-level-p

Re: HTTP response-code for missing querystring?

2006-09-24 Thread Corey Oordt
I see your point. In your example, if the query string is left off, I would just show a blank form, unless there is some overriding reason that they couldn't fill in one or more of the fields. But I guess sometimes you have to deviate from the rules. Corey On Sep 22, 2006, at 3:06 PM, gabo

The Holy Grail of Web Development

2006-09-24 Thread Tom Smith
For me at least is... A long time ago, I used to use a programming language that let me set breakpoints and when the code stopped, I could inspect all the variables, change them (the code would roll back to where the earliest change was)... call non-existent functions which would raise an

Re: Which best place to cross-validate Admin form fields?

2006-09-24 Thread Malcolm Tredinnick
On Sun, 2006-09-24 at 09:49 +0200, Mario wrote: > Can anyone tell me where is the best place to validate the whole form > when using the Admin interface? > > I read about validators, but they are tied to single fields. It often > happens that I need to cross-validate all form fields and, althou

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario
Can anyone tell me where is the best place to validate the whole form when using the Admin interface? I read about validators, but they are tied to single fields. It often happens that I need to cross-validate all form fields and, although I could set a validator for each field that looks at o

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario Graziosi
Can anyone tell me where is the best place to validate the whole form when using the Admin interface? I read about validators, but they are tied to single fields. It often happens that I need to cross-validate all form fields and, although I could set a validator for each field that looks at o