Cutting output of flup's FastCGI server

2006-06-18 Thread Ivan Sagalaev
Hello! I'm looking for help from someone who is familiar with how FastCGI works. I'm using well-known flup's FastCGI server. The app serves large files (mp3 albums, 100 MB typically) that users download with download managers that often drop connections on client side and start new ones. The

Re: POST to view loses POST data

2006-06-18 Thread gabor
Adrian Holovaty wrote: > On 6/17/06, James Bennett <[EMAIL PROTECTED]> wrote: >> I'm not convinced that it'd be a good thing to have request.POST >> evaluate to True in these cases, but the reasoning is somewhat >> pedantic. >> >> First and foremost, there's a logical difference between the reques

Re: POST to view loses POST data

2006-06-18 Thread Bill de hÓra
Luke Plant wrote: > > Long version: > request.POST is (essentially) a dictionary of post variables. As such, > if it is empty, it evaluates to False, even if the request method is > 'POST'. That's a bug, imo. cheers Bill --~--~-~--~~~---~--~~ You received th

Re: POST to view loses POST data

2006-06-18 Thread Bill de hÓra
Bill de hÓra wrote: > Luke Plant wrote: >> Long version: >> request.POST is (essentially) a dictionary of post variables. As such, >> if it is empty, it evaluates to False, even if the request method is >> 'POST'. > > That's a bug, imo. Never mind - request.META["REQUEST_METHOD"] is news to

Re: POST to view loses POST data

2006-06-18 Thread Matt McDonald
I have to agree that it should return false if there is no data. Otherwise how are you going to tell the difference between a POST with no data and a POST with data. Another alternative is maybe request.method.POST and request.method.GET for testing the method. On 18/06/2006, at 9:20 PM, B

Re: "tuple' object has no attribute 'get'"

2006-06-18 Thread Frankie Robertson
On 16/06/06, Don Arbow <[EMAIL PROTECTED]> wrote: > > On Jun 16, 2006, at 2:02 PM, Tyson Tate wrote: > > > > > Starting with the latest SVN, a fresh DB, and the following Model: > > > > http://django.pastebin.com/713796 > > > > I get a "tuple' object has no attribute 'get'" error whenever I try >

Is there a cms like Ellinton?

2006-06-18 Thread rockone
Hi everyone: I knew about Django recently, and there is a great CMS---Ellinton . But unfortunatly, it's not opensource. This type of CMS is what i am looking for. Is there another cms like Ellinton? thanks for reading and reply --~--~-~--~~~---~--~~ You re

Re: Using Pyscripter with Django

2006-06-18 Thread Frankie Robertson
On 16/06/06, Filipe <[EMAIL PROTECTED]> wrote: *snip* > What IDEs are Django developers using out there? Embarrassingly, I'm using Bluefish. Bluefish is a syntax editor with broken highlighting. I use it mainly because I've never found the need for anything more complicated. In general I find it

Re: Is there a cms like Ellinton?

2006-06-18 Thread patrickk
try the django admin-interface: http://www.djangoproject.com/documentation/tutorial2/ patrick Am 18.06.2006 um 14:16 schrieb rockone: > > Hi everyone: >I knew about Django recently, and there is a great CMS---Ellinton . > But unfortunatly, it's not opensource. This type of CMS is what i am

Re: Is there a cms like Ellinton?

2006-06-18 Thread Frankie Robertson
A quick look around reveals http://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/CmsProject. It's nowhere as good as Ellington but Ellington is a for rich media companies. If you're a rich media company, buy it, otherwise you probably don't need anything near the functionality it uses. (by

model import in inclusion_tag not working?

2006-06-18 Thread der . elminator
hi, i wrote a simple inclusion_tag that's supposed to fetch some data from on of my apps models. code looks like: #myproject/myapp/templatetags/mytesttags.py from django import template register = template.Library() def mytest(): from myproject.myapp.models import xyz return { 'test': x

Changing Sites Framework

2006-06-18 Thread [EMAIL PROTECTED]
Hello, I am working on a cms that would involve several sites. I am wanting to filter several things by site, but the domain names are sometimes too long and run off the side of the filter box. I was wondering if it would break anything if I canged the site framework to return the display name i

Re: Changing Sites Framework

2006-06-18 Thread Peter Ma
what are you want to say? On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > I am working on a cms that would involve several sites. I am wanting > to filter several things by site, but the domain names are sometimes > too long and run off the side of the filter box. I was wo

Re: Changing Sites Framework

2006-06-18 Thread [EMAIL PROTECTED]
I was wondering if it would break anything if I canged the site framework to return the display name instead of the domain name. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: "tuple' object has no attribute 'get'"

2006-06-18 Thread Don Arbow
On Jun 18, 2006, at 5:11 AM, Frankie Robertson wrote: > > One of the nice things about python is that trailing commas are > completely legal. Yes, but this was not a trailing comma within the tuple, but at the end of the statement. Legal or not, I have never seen this (except, in the prin

Re: Changing Sites Framework

2006-06-18 Thread Don Arbow
On Jun 18, 2006, at 8:08 AM, [EMAIL PROTECTED] wrote: > > I was wondering if it would break anything if I canged the site > framework to return the > display name instead of the domain name. Do you mean in __str__? That is for display purposes only so it should not hurt to have it return a d

Is there a cms like Ellinton?

2006-06-18 Thread rockone
Hi everyone: I knew about Django recently, and there is a great CMS---Ellinton . But unfortunatly, it's not opensource. This type of CMS is what i am looking for. Is there another cms like Ellinton? thanks for reading and reply --~--~-~--~~~---~--~~ You re

Re: Changing Sites Framework

2006-06-18 Thread Adrian Holovaty
On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am working on a cms that would involve several sites. I am wanting > to filter several things by site, but the domain names are sometimes > too long and run off the side of the filter box. I was wondering if it > would break anything i

Re: Hosting a Django project in Bluehost

2006-06-18 Thread Grigory Fateyev
Hello Eugene Lazutkin! On Sat, 17 Jun 2006 13:44:12 -0500 you wrote: > I don't use Bluehost, but I think the setup will be similar to Django > on DreamHost, which supports FastCGI only. "Official" DreamHost Wiki: > http://wiki.dreamhost.com/index.php/Django. Jeff Croft wrote an > excellent how-

Re: Problem with get_or_create

2006-06-18 Thread Istvan
In your listing line 24 is not aligned properly. --~--~-~--~~~---~--~~ 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 grou

Re: Hosting a Django project in Bluehost

2006-06-18 Thread Eugene Lazutkin
Grigory Fateyev wrote: > > Somebody use FastCGI on your own server? Can you help me how to setup > this? Unfortunately I don't use FastCGI on my own servers. If you looking for how to set up Apache with mod_fastcgi, I am the wrong guy. Thanks, Eugene --~--~-~--~~~---

Having many of one application.

2006-06-18 Thread Frankie Robertson
The following is used mainly as an example for something I've been wondering about. Say I'm a blog host and want to use django. I need all my views to know which blog (so as to know what information to get) they're using. I also need all my templates to have access to the blog object (so they can

Re: Is there a cms like Ellinton?

2006-06-18 Thread wiz
> try the django admin-interface: > http://www.djangoproject.com/documentation/tutorial2/ and flatpages: http://www.djangoproject.com/documentation/flatpages/ ...and other nice apps from contrib (: --~--~-~--~~~---~--~~ You received this message because you are su

Re: Free Comments Documented

2006-06-18 Thread [EMAIL PROTECTED]
I agree, the docs are better than many, but still aren't where they need to be at the moment. Thanks for your contribution, I hope you keep them coming! --Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Cutting output of flup's FastCGI server

2006-06-18 Thread Ivan Sagalaev
Ivan Sagalaev wrote: > I'm using well-known flup's FastCGI server. The app serves large files > (mp3 albums, 100 MB typically) that users download with download > managers that often drop connections on client side and start new ones. > The strange thing is that when a client drops connection f

Re: Hosting a Django project in Bluehost

2006-06-18 Thread Ivan Sagalaev
Grigory Fateyev wrote: > Somebody use FastCGI on your own server? I do. I have mostly done it using this instruction: https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgi > Can you help me how to setup this? > You can contact me personally if that instruction will not suffic

Recursive delete problem

2006-06-18 Thread Viktor
This can be a bug, or I'm doing something terrible wrong... This is how my model looks like: class Score(models.Model): . . . class Round(models.Model): . . . class Game(models.Model): round = models.ForeignKey(Round) . . . def save(self):

Generically reference an app?

2006-06-18 Thread berto
Hello, I've created an app with some models and I want to make foreign keys to those models in another app. I can do something like this: from myproject.apps.some_app import SomeModel but then my project name is hard coded into that app. Is there some way to generically reference the current

Re: Generically reference an app?

2006-06-18 Thread Don Arbow
On Jun 18, 2006, at 2:03 PM, berto wrote: > > Hello, > > I've created an app with some models and I want to make foreign > keys to > those models in another app. I can do something like this: > > from myproject.apps.some_app import SomeModel > > but then my project name is hard coded into that

Template: nested for and ManyToMany field problem - MySQL

2006-06-18 Thread Adam Hoscilo
I get this error: len() of unsized object while doing nested for loops in the template: {% for entry in object_list %} {% for category in entry.categories %} {{ category.name }} {% endfor %} {{ entry.get_absolute_url }} {% endfor %} entry.categries is ManyToManyField If i remo

Re: Template: nested for and ManyToMany field problem - MySQL

2006-06-18 Thread Max Battcher
Adam Hoscilo wrote: > I get this error: len() of unsized object > while doing nested for loops in the template: > {% for entry in object_list %} > {% for category in entry.categories %} > {{ category.name }} > {% endfor %} > {{ entry.get_absolute_url }} > {% endfor %} > > entr

Re: Generically reference an app?

2006-06-18 Thread berto
Awesome, thanks! Here's the relevant bit for anyone else that stumbles upon this entry: from django.db.models.loading import get_app desired_app = get_app('desired_app') from desired_app.models import SomeModel --~--~-~--~~~---~--~~ You received this message bec

Re: Having many of one application.

2006-06-18 Thread Malcolm Tredinnick
On Sun, 2006-06-18 at 19:46 +0100, Frankie Robertson wrote: > The following is used mainly as an example for something I've been > wondering about. > > Say I'm a blog host and want to use django. I need all my views to > know which blog (so as to know what information to get) they're using. > I a

Re: Having many of one application.

2006-06-18 Thread limodou
On 6/19/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > > The following is used mainly as an example for something I've been > wondering about. > > Say I'm a blog host and want to use django. I need all my views to > know which blog (so as to know what information to get) they're using. > I als

Re: Generically reference an app?

2006-06-18 Thread limodou
On 6/19/06, berto <[EMAIL PROTECTED]> wrote: > > Awesome, thanks! Here's the relevant bit for anyone else that stumbles > upon this entry: > > from django.db.models.loading import get_app > desired_app = get_app('desired_app') > from desired_app.models import SomeModel > good, and you can also:

Seekpire search engine, earn $0,01 for each search

2006-06-18 Thread [EMAIL PROTECTED]
Seekpire earn money searching Earn $0.01 for each search !!! How can I make money searching? Want to make easy money? Well this is how. Seekpire pays you to search! For each search that you do you get 1 cent. This may not seem like much. But think of all the times you search a day! If you use t

Asia comic: Long hu men, the saint, twins, budha plam, etc

2006-06-18 Thread [EMAIL PROTECTED]
Well another site about asia comic and adult magazine Asia comic Such as: Budha Palm (last volume 085), Twins (last volume 177), Long hu men (last volume 313), Dragon of tang dynasty (last volume 252) the saint etc etc Adut magazine such as: Playboy, xxx, etc,etc You can find them and downlo