Re: fixtures (yaml)

2007-09-30 Thread AniNair
Hi... Thanks alot for trying to help me out... It is a typing mistake made while posting the message. I did not make that mistake here. I get a localsettings.py not set, using default settings when I try to run the dev server, when don't have such a file in my project.Any idea what's wrong?..

Re: How to create a nested list in a view?

2007-09-30 Thread staff-gmail
You are right - you don't want to do all that in the view. You should be able to pass in your railway_list as an object to the template then in your template show each item as {{railway_list.name}} or something like that. Dan wrote: > Hello All > > I seem to be having a bit of a problem

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:37 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > I'm not sure what drove me to call it "fragment caching". > > What I really meant to point at are the little things (such as > > form_for_model()) that would likely benefit from some

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:29 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > My question was really only about the former, a much simpler problem: > > How to keep a tcp connection persistent and re-use it across requests? > > By using a pooling connection

How to create a nested list in a view?

2007-09-30 Thread Dan
Hello All I seem to be having a bit of a problem with separation of markup and code. I would like to output from 3 different models; railways, rail lines and stations a nested unordered list, so far i have got this to work: def view_transport(request): railway_list = Railway.objects.all()

overriding checked value for CheckboxSelectMultiple widget

2007-09-30 Thread Nabuco
going to sleep, enough for tonight... zzz the subject is self-explanatory guys, I tried using attrs={'checked': something} but rendering is not on my side here, i falls to <... checked="checked" ...>, please gimme some light to this, and a little gift for tomorrow :)

Re: unsubscribe

2007-09-30 Thread James Bennett
Instructions for unsubscribing are in the bottom of every message sent from this list: > A minor plea for those who are still subscribed: please don't pile on with responses. It's an easy mistake to make. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

unsubscribe

2007-09-30 Thread Parnell
--~--~-~--~~~---~--~~ 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 PROTECTED] For more

Re: Downloadable HTML documentation?

2007-09-30 Thread Thejaswi Puthraya
> A search of the group didn't turn this up, so I thought I'd ask: is > there any way to get an HTML version of the docs other than slurping [snipped] Since the documentation is in reST format you can generate the HTML yourself. Install docutils and then use rst2html to convert the documentation

Re: Django Email Failure

2007-09-30 Thread Thejaswi Puthraya
[snipped] > I get the error message: > > SMTP AUTH extension not supported by server. It would be helpful if you could post the exact error message. Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > I'm not sure what drove me to call it "fragment caching". > What I really meant to point at are the little things (such as > form_for_model()) that would likely benefit from some object > caching instead of burning cycles for each request. You

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > My question was really only about the former, a much simpler problem: > How to keep a tcp connection persistent and re-use it across requests? By using a pooling connection manager external to Django. Again, complicating the application layer

Re: weird behavior of connection.cursor.execute()

2007-09-30 Thread james_027
anyone who has opinion on this? thanks james On Sep 29, 10:01 am, james_027 <[EMAIL PROTECTED]> wrote: > hi all > > the 2 methods below have no errors but are different in a way that the > first one doesn't give me the resultset in the order that I want while > the second method give me the

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 16:16 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > Hm, this raises some serious scalabity questions for me. > > >From your description it sounds like there is no template > > fragment caching, not even db connection pooling possible > >

Django Email Failure

2007-09-30 Thread kidormb
I am trying to use the send_email facility from django.core.mail with the following in my settings.py EMAIL_HOST = 'smtp-server.cfl.rr.com' EMAIL_PORT = '25' EMAIL_HOST_USER = 'username' EMAIL_HOST_PASSWORD = 'password' I get the error message: SMTP AUTH extension not supported by server. I

Re: about auth

2007-09-30 Thread Cat
Richard Thanks for that - I appreciate it Cat On Sep 29, 12:19 pm, r_f_d <[EMAIL PROTECTED]> wrote: > Cat, > I will be posting what I am doing within the next day or to for you. > -richard > > On Sep 27, 8:47 pm, Cat <[EMAIL PROTECTED]> wrote: > > > > > Richard > > > I am currently developing

Re: Templates for Custom Template Tags

2007-09-30 Thread Steve Potter
I was misunderstanding where the app_directories loader looks for files. It makes sense now. Thanks, Steve On Sep 30, 3:58 pm, AndrewK <[EMAIL PROTECTED]> wrote: > You need to place your tag templates into the subdirectory called > "templates" of your application directory. > In that case >

Re: Downloadable HTML documentation?

2007-09-30 Thread Nathaniel Whiteinge
On Sep 30, 2:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Given the age of that ticket, however, is the procedure that "requires > a bit of work" documented anywhere? Or you could just use SmileyChris' implementation [1]_ for now (which works well). .. [1]

Re: login() doesn't log me in

2007-09-30 Thread Alper Çuğun
On Sep 29, 4:16 pm, Alper Çuğun <[EMAIL PROTECTED]> wrote: > At this point I'm suspecting my webserver from doing something > strange. Any way I can diagnose this and contact my admin with a solid > error? It was. Found the solution, it seems that SCGI is buggy:

Re: Downloadable HTML documentation?

2007-09-30 Thread James Bennett
On 9/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Given the age of that ticket, however, is the procedure that "requires > a bit of work" documented anywhere? Don't be put off by the ticket being old; for a while there really wasn't a suitable "champion" for the idea, and so not much

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread James Bennett
On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > Hm, this raises some serious scalabity questions for me. > >From your description it sounds like there is no template > fragment caching, not even db connection pooling possible > with django? You can cache anything you want to cache; read the

Implementing opening hours (model + form + view + template...)

2007-09-30 Thread novice
HI all, I am trying to implement opening hour feature for a seller so that they can put two sets of opening hours per day. WOuld be great if anyone already has implemented similar code and wants to share it!:-) This is the way I am trying to do it and at the end you will find my questions. I

Re: Templates for Custom Template Tags

2007-09-30 Thread AndrewK
You need to place your tag templates into the subdirectory called "templates" of your application directory. In that case django.template.loaders.app_directories.load_template_source would be able to found your custom tag template. And you don't need to add this directory's path to TEMPLATE_DIRS

Re: Downloadable HTML documentation?

2007-09-30 Thread [EMAIL PROTECTED]
Thanks. Given the age of that ticket, however, is the procedure that "requires a bit of work" documented anywhere? Regards, -scott On Sep 28, 11:25 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > A search of the group didn't turn

Templates for Custom Template Tags

2007-09-30 Thread Steve Potter
I created a custom inclusion tag that makes use of a template file named menu_tag.html. I placed that file in the app's subdirectory of the template directory. When I tried to make use of it I got a template does not exist error. I was able to resolve this by adding the app's subdirectory to

mysql error

2007-09-30 Thread Jan Stavel
Hello, I tried to fill this Item with data (non english texts): (Django version 0.97-pre-SVN-unknown) class StoreItem(models.Model): ITEM_TYPES = ( ('VHS','VHS'), ('CD','CD'), ('VHS','VHS') ) class Admin: list_display =

Re: how to do something at startup

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:34 -0600, staff-gmail wrote: > James Bennett wrote: > > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > > >> i'm looking for a way to perform a bunch of initialization tasks > >> right after django startup. > >> > > > > There really is no such thing as

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:29 -0500, James Bennett wrote: > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > i'm looking for a way to perform a bunch of initialization tasks > > right after django startup. > > There really is no such thing as "Django startup"; remember that > Django is hosted

RSS feed reader in Python

2007-09-30 Thread stanleypark
We just finiched a really cool RSS feed news reader. I need people comments on it. here is the link of the web site. If you wish to know more about RSS feeds here is a group link that I just started. http://groups.google.com/group/adsense-and-rss-feeds/web/netsplorer-com?hl=en all the best to

Dynamic form validation

2007-09-30 Thread pinco
Hi, I have the following models for each item in my shopping cart: class CartItem(models.Model): option = models.ForeignKey(Option) #product option tied to a particular product cart = models.ForeignKey(Cart) #contains all cart items quantity =

Earn upto $5000 Join FREE Now

2007-09-30 Thread fathima
Earn upto $5000 Join FREE Now IF YOU WANT NON-STOP INCOME NOTE: THIS MESSAGE IS SENT TO INTERESTED MEMBERS OTHERS PLEASE IGNORE For more details please log on to http://www.ezinfocenter.com/9844946/CB Instead of 9844946 you can use your Own ID PLEASE COMPLETE THE FOUR STEPS TO STEP UP

ImportError: No module named core.servers.fastcgi

2007-09-30 Thread David Brown
Hello everyone! I am trying to setup FastCGI for my Django project, using the following dispatch.fcgi script: #!/usr/bin/env python import sys, os # Add a custom Python path. sys.path.insert(0, "/home/me/projects/django/trunk") sys.path.insert(0,

Re: sharing django on production and dev

2007-09-30 Thread Graham Dumpleton
On Sep 29, 1:18 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 28-Sep-07, at 11:16 PM, Milan Andric wrote: > > > Is there some standard practice on a machine that has production code > > running in mod_python but also has developers running their django- > > python web server? Is that

Re: Help with httpd.conf for mod_wsgi and media directory

2007-09-30 Thread Graham Dumpleton
On Sep 30, 12:42 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > On Sep 29, 6:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > What version of Apache are you using? The ordering or rule evaluation > > in Apache 1.3 is actually based on order of LoadModule/AddModule lines > > in Apache

Re: Redirect after login problem

2007-09-30 Thread Paddy Joy
Thanks guys, I didn't fully understand the meaning of "redirect_field_name". @login_required() on it's own works as expected. Paddy On Sep 30, 3:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/29/07, Paddy Joy <[EMAIL PROTECTED]> wrote: > > > views.py > >

Newforms-admin: querysets for inlines?

2007-09-30 Thread Rob J Goedman
Hi, Studying the new features in the newform admin, querysets give great control over which instances will be shown. I wonder if it is/will be possible to restrict inline fields (on a foreign key) in a similar way? Also, there is a ticket for 'classes': 'collapse' in newforms-admin (