Re: PyISAPIe + 0.91: some backporting help required...

2006-08-17 Thread Scott Finnie
Thanks Jeremy. Time to look for plan B... Jeremy Dunck wrote: > On 8/17/06, Scott Finnie <[EMAIL PROTECTED]> wrote: >> from django.utils import httpwrappers as http >> #from ??? import signals >> #from ??? import dispatcher > > > The magic removal branch started at r1587;

Re: search in django

2006-08-17 Thread Matthew Flanagan
On 18/08/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/17/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/2559 > > > > Implements ^ (istartswith), = (iexact), and @ (search). No prefix is > > icontains (current behavior). > > I've checked in this

Re: PyISAPIe + 0.91: some backporting help required...

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Scott Finnie <[EMAIL PROTECTED]> wrote: > from django.utils import httpwrappers as http > #from ??? import signals > #from ??? import dispatcher The magic removal branch started at r1587; dispatcher was introduced in r1714 on the branch, and the branch was merged on

Re: How would I do this with Djangol?

2006-08-17 Thread John M
HBTaylor wrote: > By the way, it seems like having the symbol in your Price model would > be redundant, since you can use myprice.holding.symbol to get the > symbol if you are listing (for example) all of the prices for a given > day. > > H.B. Actually H.B., after looking it over closer, i need

Re: check for yourself (((;

2006-08-17 Thread Deryck Hodge
On 8/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > You're right -- it doesn't really matter. This was just a small change > to hide the pages from bots, because there's really no value in Google > indexing the admin login screens. (Other than the coolness factor of > being able to do one of

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
On 18/08/2006, at 12:56 PM, Deryck Hodge wrote: > > > I know I'm missing something obvious, but why is this a problem? It's > not like the default, well-documented admin location isn't /admin/ on > a Django site. I not trying to be a smart aleck or critical. I'm > really curious what I'm

Easy template vars question

2006-08-17 Thread Sean Schertell
Hi folks, Okay, so I got my little staticpages app working (thanks adrian), and now I can happily throw sometemplate.html in my templates/ directory and I can view the page at mysite/sometemplate. Great! And it extends my base.html template too so all my header/footer stuff is DRY. Hooray!

Re: check for yourself (((;

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Deryck Hodge <[EMAIL PROTECTED]> wrote: > I know I'm missing something obvious, but why is this a problem? It's > not like the default, well-documented admin location isn't /admin/ on > a Django site. I not trying to be a smart aleck or critical. I'm > really curious what I'm

Re: {% include %} tag: documentation?

2006-08-17 Thread Alan Green
On 8/18/06, Andrew <[EMAIL PROTECTED]> wrote: > My first thought was to use {% include %}, but after playing with it, > it seems it's not just a simple cut-and-paste tag -- no matter where I > place the include tag in my document( in the or ), it > semi-magically takes code in the and tags

Re: [Solved] Re: Django chokes on template blocks?

2006-08-17 Thread Sean Schertell
Thanks Malcom :-) On Aug 18, 2006, at 10:58 AM, Malcolm Tredinnick wrote: > > On Fri, 2006-08-18 at 09:51 +0900, Sean Schertell wrote: >> Yay!!! It works like magic! >> >> Would anyone be so kind as to reveal the mysteries of this "Context >> ()" function? I'd love to know what this code is

Re: check for yourself (((;

2006-08-17 Thread Deryck Hodge
On 8/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > actually we can help there as well by putting in a > > in the default > > admin base_site.html file. > > That's a great idea -- I've taken care of that in changeset 3600. An FYI and

Re: search in django

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/ticket/2559 > > Implements ^ (istartswith), = (iexact), and @ (search). No prefix is > icontains (current behavior). I've checked in this patch (including documentation) in revision 3601. Thanks again for the

{% include %} tag: documentation?

2006-08-17 Thread Andrew
Is there any more in-depth documentation about how the include tag works? I'm developing a site which has a few different modules that I want to plug into an aggregate "main" page. Each of the modules I've written into its own template; I now want to combine them into the main page. My first

How to create my own Field Types ?

2006-08-17 Thread 一首诗
Hi all! Django provides a Ip Address Field. But actually it's a CharField with some IP formate check. But in my database, ip addresss are stored in 4 bytes int form. So I was considering if it's prossible to SubClass Field to create my own Field Type. I will post my code here if I found it's

Re: [Solved] Re: Django chokes on template blocks?

2006-08-17 Thread Malcolm Tredinnick
On Fri, 2006-08-18 at 09:51 +0900, Sean Schertell wrote: > Yay!!! It works like magic! > > Would anyone be so kind as to reveal the mysteries of this "Context > ()" function? I'd love to know what this code is doing and why it > fixes my problem. Context() isn't a function, it's creating a

Re: Force display order of classes defined in models.py

2006-08-17 Thread Emile van Sebille
Well... I hacked my way through that... For anyone interested the hack's outlined below. For anyone that knows the right way -- I'd rather know that! Regards, Emile models.py -- class Right (xSide): relative_related_order=1 right = models.ForeignKey(Door,

Re: search in django

2006-08-17 Thread Eric Walstad
On Thursday 17 August 2006 16:13, Adrian Holovaty wrote: > On 8/17/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/2559 > > > > Implements ^ (istartswith), = (iexact), and @ (search). No prefix > > is icontains (current behavior). > > Sweet! Thanks for the

[Solved] Re: Django chokes on template blocks?

2006-08-17 Thread Sean Schertell
Yay!!! It works like magic! Would anyone be so kind as to reveal the mysteries of this "Context ()" function? I'd love to know what this code is doing and why it fixes my problem. Thanks again everyone -- especially you Adrian H. -- you're too much! :-D Sean On Aug 18, 2006, at 8:34 AM,

Re: Process forking issues

2006-08-17 Thread Corey Oordt
I think I had this problem, at least it feels very familiar, and I do some process forking. I think that the problem is using the same connection more than once. I think that the cursor is being closed and then being used again. I took the habit of creating a new cursor and specifically

Re: collapsing

2006-08-17 Thread SmileyChris
Finishing the half finished sentence: ... You could make this work either by using square brackets or by adding a comma after the your inner "two-tuple", otherwise the outer brackets are being ignored and not turned into a list. It's a python thing with tuples and brackets.

Re: collapsing

2006-08-17 Thread SmileyChris
Fields must be a list of two-tuples. You could make thi Note the new comma after the bracket: fields = ( ('Alcohol Use', {'fields': ('have_used', 'have_participated',), 'classes': 'collapse'}), ) --~--~-~--~~~---~--~~ You received this message because

Re: search in django

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/ticket/2559 > > Implements ^ (istartswith), = (iexact), and @ (search). No prefix is > icontains (current behavior). Sweet! Thanks for the patch... Adrian -- Adrian Holovaty holovaty.com | djangoproject.com

Re: check for yourself (((;

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > actually we can help there as well by putting in a > in the default > admin base_site.html file. That's a great idea -- I've taken care of that in changeset 3600. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com

Re: PyISAPIe + 0.91: some backporting help required...

2006-08-17 Thread Scott Finnie
Two reasons, one (I think) decent: 1. App is currently written to 0.91 and I want to get some feedback (that's the indecent answer) 2. My model makes extensive use of subtyping which isn't supported in 0.95 (hopefully the decent one...) Jeremy Dunck wrote: > On 8/17/06, Scott Finnie <[EMAIL

Re: search in django

2006-08-17 Thread Andy Dustman
On 8/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/15/06, Andy Dustman <[EMAIL PROTECTED]> wrote: > > In fact, it does LIKE %string%, which is quite expensive. Usually want > > I want out of an admin search is a startswith match, i.e. LIKE > > string%, which can use an index.

Re: Filter, ForeignKey and edit_inline

2006-08-17 Thread Fabien Schwob
> To do the filter you want, you can use the 'range' field lookup: > import datetime > start_date = datetime.date.today() > end_date = some_other_date > events = > Event.objects.filter(eventdate__beginning_date__range=(start_date, > end_date)) > > If you've already picked an event, you can get

Force display order of classes defined in models.py

2006-08-17 Thread Emile van Sebille
Hi All, I'm new to Django and I haven't found a way to specify the sequence that classes render on the admin page. I'm converting a CNC programming engine that allows the operator to specify the parameters then used to create a g-code program for a milling machine. (the client is fabricating

Re: PyISAPIe + 0.91: some backporting help required...

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Scott Finnie <[EMAIL PROTECTED]> wrote: > However, the interface module (pyisapie.py) is written to post-MR > refactored APIs; would be grateful for a pointer on where they were > located in 0.91. Here's the obligatory question: Do you have a really good reason for being on 0.91?

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
actually we can help there as well by putting in a in the default admin base_site.html file. /me goes to switch URL paths to make it a bit less obvious on his sites On 18/08/2006, at 5:12 AM, James Bennett wrote: > > On 8/17/06, wiz <[EMAIL PROTECTED]> wrote: >>

PyISAPIe + 0.91: some backporting help required...

2006-08-17 Thread Scott Finnie
Hello all, Trying to get above sorted to run django with IIS (per http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer). However, the interface module (pyisapie.py) is written to post-MR refactored APIs; would be grateful for a pointer on where they were located in 0.91.

Re: notification when an object is deleted

2006-08-17 Thread Ian Clelland
On 8/17/06, medhat <[EMAIL PROTECTED]> wrote: > A ticket system where users can create tickets. A ticket object has a > foreign key field to a user object. I would like to delete all the > tickets created by a user if that user is deleted. Is there a way to do > this *without* changing the user

Re: login requires only one argument?

2006-08-17 Thread Joseph Kocherhans
On 8/17/06, halmcelroy <[EMAIL PROTECTED]> wrote: > > It seems the api for the login method has changed. When I try to use > the login method like so: > login(request,user), I get an error that login has just 1 argument, and > 2 are provided. When I provide just the request object to the login >

Re: Custom db fields / creation.py

2006-08-17 Thread Ian Clelland
On 8/17/06, Frank Stüss <[EMAIL PROTECTED]> wrote: > > Hi all, > is there a best practice to overwrite/extend > django.db.backends..creation without doing it in django source? > > I want to have a spezialiced ImageField. Hi Frank, What I've done in the past, to avoid having to tinker with the

Re: notification when an object is deleted

2006-08-17 Thread James Bennett
On 8/17/06, medhat <[EMAIL PROTECTED]> wrote: > A ticket system where users can create tickets. A ticket object has a > foreign key field to a user object. I would like to delete all the > tickets created by a user if that user is deleted. Is there a way to do > this *without* changing the user

Re: notification when an object is deleted

2006-08-17 Thread medhat
Joe wrote: > You could write a database trigger and bypass Django entirely. but I would like to keep it all in python. first, I am not an sql expert, and second I don't want to worry about the different possible backends. --~--~-~--~~~---~--~~ You received this

Re: notification when an object is deleted

2006-08-17 Thread Joe
You could write a database trigger and bypass Django entirely. --~--~-~--~~~---~--~~ 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

notification when an object is deleted

2006-08-17 Thread medhat
Hi, I have the following scenario: A ticket system where users can create tickets. A ticket object has a foreign key field to a user object. I would like to delete all the tickets created by a user if that user is deleted. Is there a way to do this *without* changing the user model? --

Re: Re: Click the back button messes me up...

2006-08-17 Thread Jeremy Dunck
On 8/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > And the practical solution in this case is the same as the pedantic > one -- even if you absolutely have to use POST for the initial > submission, return an HttpResponseRedirect to a URL which gets the > information it needs from GET

collapsing

2006-08-17 Thread hoangelos
I have an admin screen for a class called Buyer. I have several other classes that need to be populated at the same time as Buyer. I wanted to collapse these. And allow the user to expand as they add. Below is one of the classes BuyerAlcoholUses. The problem is that it is not collapsed.

Re: login requires only one argument?

2006-08-17 Thread Joshua Tacoma
I don't know about the infinite recursion, but the documentation says login() receives two arguments: request and a User object. http://www.djangoproject.com/documentation/authentication/#how-to-log-a-user-in I've got a working views.py that looks like this: from django.contrib.auth import

Re: Re: check for yourself (((;

2006-08-17 Thread James Bennett
On 8/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > On 8/17/06, wiz <[EMAIL PROTECTED]> wrote: > > http://www.google.com/search?hl=en==Django+administration+Admin+Log+in+Username+Password=Search Incidentally, using Google's 'allintitle' keyword gives better results:

Re: check for yourself (((;

2006-08-17 Thread James Bennett
On 8/17/06, wiz <[EMAIL PROTECTED]> wrote: > http://www.google.com/search?hl=en==Django+administration+Admin+Log+in+Username+Password=Search And... that just tells us that people need to have their robots.txt disallow '/admin/' (or wherever they choose to have their admin app live). I would

Re: Click the back button messes me up...

2006-08-17 Thread Seth Buntin
Now I really feel stupid. Thanks James. --~--~-~--~~~---~--~~ 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

check for yourself (((;

2006-08-17 Thread wiz
http://www.google.com/search?hl=en==Django+administration+Admin+Log+in+Username+Password=Search --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: What relating model should I use?

2006-08-17 Thread Maciej Bliziński
On Thu, 2006-08-17 at 08:06 -0700, PythonistL wrote: > In my project I have a user class that represents user's information. > Now I would like to give users a possibility to set their favourite > users. > That means a user will set some his favourite users > What model shall I use? > Relating

Re: Override value on save in admin

2006-08-17 Thread Chris Long
Might be of help: http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Make Django cooexist with other webbapps

2006-08-17 Thread Peter Brink
Antonio Cavedoni skrev: > > if you’re using Django with Apache and mod_python, it’s just a matter > of adding something like this to your Apache configuration file, > inside the options for the my-domain.name Virtual Host: > > >SetHandler None > > > I use it also for other static

Re: Django, mod_python and 403 error

2006-08-17 Thread Fabien Schwob
> It'd be a great help if you pasted the errors from Apache's error log. > Also, what kind of 403 errors do you get -- could you include a link > to a screenshot? In the error log I get : [Thu Aug 17 18:31:01 2006] [error] [client 86.73.128.192] (13)Permission denied: cannot read directory for

Re: Re: Click the back button messes me up...

2006-08-17 Thread James Bennett
On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > So how would I send my context with that redirect? Or am I thinking > about it the wrong way. The problem is I have a search field and in > the results there are links. If someone clicks a link it displays the > page but when they click back

login requires only one argument?

2006-08-17 Thread halmcelroy
It seems the api for the login method has changed. When I try to use the login method like so: login(request,user), I get an error that login has just 1 argument, and 2 are provided. When I provide just the request object to the login method, then it goes into infinite recursion Here is the

Re: Django chokes on template blocks?

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > The render() method takes a template.Context object, not a dictionary. > You want this: > > ind.render(template.Context()) Bah, sorry. :-/ --~--~-~--~~~---~--~~ You received this message because you

Re: Re: Updating Related Objects

2006-08-17 Thread James Bennett
On 8/17/06, Andrew <[EMAIL PROTECTED]> wrote: > Not sure what I was smoking but accessing the object from the all() > method doesn't work either. Is it possible to change an object through > the ForeignKey? You need to fetch the object into a variable of some sort, do the modifications you

Re: Updating Related Objects

2006-08-17 Thread Andrew
Not sure what I was smoking but accessing the object from the all() method doesn't work either. Is it possible to change an object through the ForeignKey? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Click the back button messes me up...

2006-08-17 Thread Seth Buntin
So how would I send my context with that redirect? Or am I thinking about it the wrong way. The problem is I have a search field and in the results there are links. If someone clicks a link it displays the page but when they click back it give the "Page expired" message.

Re: Django chokes on template blocks?

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > >>> ind.render({}) > Traceback (most recent call last): > [...] > TemplateSyntaxError: Caught an exception while rendering: 'dict' object has > no a > ttribute 'push' The render() method takes a template.Context object, not a dictionary. You

Re: list_display containing ForeignKey create a dead loop.

2006-08-17 Thread 一首诗
Hehe, but again, there would be a infinite loop in django\db\models\query.py in get_cached_row That's because this record in Here's my patch = def get_cached_row(klass, row, index_start, processed={}): "Helper function that recursively returns an object

Updating Related Objects

2006-08-17 Thread Andrew
Sorry if there is an obvious answer to this, but I couldn't find it. Based off of the following: class ObjectA(models.model): name = models.CharField(length=20) class ObjectB(models.model): name = models.CharField(length=20) a = models.ForeignKey(ObjectA, related_name="bs") In

Re: Click the back button messes me up...

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > So I need to redirect to another page and send the contents of the > POSTed data somehow? No, you need to deal with the POSTed data (save it to a database, or do whatever you need to do with it), and, when you're done, return an

Re: Making a wiki - code suggestions welcomed

2006-08-17 Thread [EMAIL PROTECTED]
diffs now look like this: http://www.fotosik.pl/showFullSize.php?id=81d75597dcb3acd1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django chokes on template blocks?

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I suspect the problem is in how you're loading the template and > rendering it. Can you paste us the code in your view that loads the > template, passes it a context and renders it? If you're not sure what > code I'm talking about, just

Re: Make Django cooexist with other webbapps

2006-08-17 Thread Antonio Cavedoni
Hi Peter, On 17 Aug 2006, at 16:50, Peter Brink wrote: > I need to make Django cooexist with mailman. As I understand it, > Django normally proccesses all requests which are sent to www.my- > domain.name. What I need to figure out is how to avoid that. I want > to get Django to ignore some

Re: Current *preferred* fcgi setup, lets settle this once for all

2006-08-17 Thread sime
Tim Shaffer wrote: > 1. Is the domain setup with "FastCGI Support?" in the Dreamhost Panel? Yes. > 2. Are the permissions on django.fcgi set to 755? Yep. > Post the last 10 lines or so of ~/logs/yoursite.com/http/error.log This > will show any errors that were produced by django.fcgi Here, I

Re: Make Django cooexist with other webbapps

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Peter Brink <[EMAIL PROTECTED]> wrote: > I need to make Django cooexist with mailman. As I understand it, Django > normally proccesses all requests which are sent to www.my-domain.name. > What I need to figure out is how to avoid that. I want to get Django to > ignore some URLs. For

Re: django <-> cms like typo3

2006-08-17 Thread spacedman
Someone is working on a Django CMS: http://groups.google.com/group/dynamite-developers?lnk=li but there's no code available yet... Barry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Click the back button messes me up...

2006-08-17 Thread Seth Buntin
So I need to redirect to another page and send the contents of the POSTed data somehow? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

What relating model should I use?

2006-08-17 Thread PythonistL
In my project I have a user class that represents user's information. Now I would like to give users a possibility to set their favourite users. That means a user will set some his favourite users What model shall I use? Relating an object to itself, many-to-one or another model? Thank you reply

Re: Click the back button messes me up...

2006-08-17 Thread Felix Ingram
> On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > Can I solve the IE back button issue (pages needing to be refreshed > > with the posted data) with a simple cache system? I encountered this problem with corkd.com's search page. Supposedly it's not possible to fix it (or so says the

Re: Django chokes on template blocks?

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > I'm trying to get my first django project off the ground but I've hit > snag that I can't seem to get around. I've made a base.html template > and an index.html template that extends the base (pretty standard > stuff I think). > > But django

Make Django cooexist with other webbapps

2006-08-17 Thread Peter Brink
Hi list, I need to make Django cooexist with mailman. As I understand it, Django normally proccesses all requests which are sent to www.my-domain.name. What I need to figure out is how to avoid that. I want to get Django to ignore some URLs. For exampel, I would like to have requests to

Re: list_display containing ForeignKey create a dead loop.

2006-08-17 Thread 一首诗
Here is my fix for fill_table_cache === def fill_table_cache(opts, select, tables, where,old_prefix,cache_tables_seen,processed = {}): """ Helper function that recursively populates the select, tables and where (in place) for

Re: Current *preferred* fcgi setup, lets settle this once for all

2006-08-17 Thread Tim Shaffer
It shouldn't. Here are a couple other things to check, just in case it's something simple. 1. Is the domain setup with "FastCGI Support?" in the Dreamhost Panel? 2. Are the permissions on django.fcgi set to 755? Post the last 10 lines or so of ~/logs/yoursite.com/http/error.log This will show

Re: Django chokes on template blocks?

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Hawkeye <[EMAIL PROTECTED]> wrote: > So... I'm relatively new to Django, but... > > You have "{% block content %}{% endblock %}" (note: this is from the > image posted) > > My suggestion would be to try putting a space between the tags. I > don't have Django in front of me, so I

Re: Click the back button messes me up...

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Can I solve the IE back button issue (pages needing to be refreshed > with the posted data) with a simple cache system? Hey Seth, No need to use a cache system. If I understand your question correctly, you'll want to use a redirect after

Click the back button messes me up...

2006-08-17 Thread Seth Buntin
Can I solve the IE back button issue (pages needing to be refreshed with the posted data) with a simple cache system? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

FastCGI issues -- idle timeout, incomplete headers etc...

2006-08-17 Thread sime
>From the server error log: [Thu Aug 17 00:10:28 2006] [error] [client 65.54.188.82] FastCGI: comm with (dynamic) server "/home/lala/summermodjo.com/django.fcgi" aborted: (first read) idle timeout (120 sec) [Thu Aug 17 00:10:28 2006] [error] [client 65.54.188.82] FastCGI: incomplete headers (0

Re: django <-> cms like typo3

2006-08-17 Thread [EMAIL PROTECTED]
ok, thanks! i came across the "media support enhancement" google summer of code project. this is very interesting! when will this be done? will this be in django 1.0? about when will django 1.0 be out? --~--~-~--~~~---~--~~ You received this message because you

Re: Django chokes on template blocks?

2006-08-17 Thread Sean Schertell
>> But django barfs up this error: >> - >> AttributeError at / >> 'NoneType' object has no attribute 'push' >> - > > Let's see the index template. :) Thanks jeremy, here's the index template: http://rafb.net/paste/results/X5LCeK54.html

Re: Django chokes on template blocks?

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > But django barfs up this error: > - > AttributeError at / > 'NoneType' object has no attribute 'push' > - Let's see the index template. :)

Re: showing future events only?

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > urls.py is loaded when Apache (or your server process) starts. Correction, it's loaded when your first request comes in on a new process. ;-) --~--~-~--~~~---~--~~ You received this message because you are

Re: showing future events only?

2006-08-17 Thread Jeremy Dunck
On 8/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > OK, Jeremy, Ian, you've lost me now.. > > Is there something wrong with the code I posted above? It appears to be > working fine. Is there something superior about this: urls.py is loaded when Apache (or your server process) starts.

Re: showing future events only?

2006-08-17 Thread Malcolm Tredinnick
On Thu, 2006-08-17 at 05:14 -0700, [EMAIL PROTECTED] wrote: > OK, Jeremy, Ian, you've lost me now.. > > Is there something wrong with the code I posted above? It appears to be > working fine. Is there something superior about this: > > > > from django.core.models import LazyDate > > ... > >

Re: Puzzled by register.simple_tag()

2006-08-17 Thread Malcolm Tredinnick
On Thu, 2006-08-17 at 04:58 -0700, Karen Tracey wrote: > I've been experimenting with writing some template tags by reading > through the documentation and modifying some existing tags defined by > admin. I've got something like this: > > from django import template > register =

Re: showing future events only?

2006-08-17 Thread [EMAIL PROTECTED]
OK, Jeremy, Ian, you've lost me now.. Is there something wrong with the code I posted above? It appears to be working fine. Is there something superior about this: > from django.core.models import LazyDate > ... > 'queryset': Show.objects.filter(show_date__gte=LazyDate()), > ...

Puzzled by register.simple_tag()

2006-08-17 Thread Karen Tracey
I've been experimenting with writing some template tags by reading through the documentation and modifying some existing tags defined by admin. I've got something like this: from django import template register = template.Library() def paginator_number(request, i, paginator, page_num): #do

Django chokes on template blocks?

2006-08-17 Thread Sean Schertell
Hi guys, I'm trying to get my first django project off the ground but I've hit snag that I can't seem to get around. I've made a base.html template and an index.html template that extends the base (pretty standard stuff I think). But django barfs up this error:

Process forking issues

2006-08-17 Thread tomass
Hi Folks, I know this topic has been brought up a few times, but I have a slightly different issue here (I think). I have a backend process that runs a number of commands. It connects to the database (via the ORM) to check it's queue and then executes jobs. All fine and dandy. My problem is

Re: How about the Django book progress

2006-08-17 Thread Jeremy Dunck
On 8/17/06, Vikrant <[EMAIL PROTECTED]> wrote: > > Hi Adrian and Jacob, > > I have been waiting for the Django book. I did not find anywhere a > link to the Django book in progress. Is it currently in the process and > how long is it going to take to see its glimpses. > > If possible and

RE: How about the Django book progress

2006-08-17 Thread Markus Jais
hi here is the website of the publisher: http://www.apress.com/book/bookDisplay.html?bID=10176 according to amazon.com http://www.amazon.com/gp/product/1590597257/sr=8-1/qid=1155812128/ref=pd_bbs_1/104-8182836-5310365?ie=UTF8 it will be published october 30th 2006. Markus --- Vikrant

Re: Custom db fields / creation.py

2006-08-17 Thread Malcolm Tredinnick
On Thu, 2006-08-17 at 12:20 +0200, Frank Stüss wrote: > Hi all, > is there a best practice to overwrite/extend > django.db.backends..creation without doing it in django source? Not really, but it shouldn't be too hard. Since Python only imports each module once, you should be able to import the

Custom db fields / creation.py

2006-08-17 Thread Frank Stüss
Hi all, is there a best practice to overwrite/extend django.db.backends..creation without doing it in django source? I want to have a spezialiced ImageField. Thanks, Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: How to build a tree on the page?

2006-08-17 Thread Malcolm Tredinnick
Hey Ivan, On Thu, 2006-08-17 at 09:44 +0400, Ivan Sagalaev wrote: [...] > BTW the main disadvantage of parent field is considered to be the need > to make make a separate SQL request for each parent to get its children. > When I was implementing it for hierarchical comments I've used a single

Re: question about huge websites

2006-08-17 Thread a
I would imagine that they aren't just using a database. most of the "low level socket stuff" I've seen is about setting timeouts and doing Async IO. thanks ian you are a gem, can you explain this further... Ian Holsman wrote: > On 16/08/2006, at 7:39 AM, a wrote: > > > > > What kind of low-level

comet usage

2006-08-17 Thread a
Hi guys i was wondering if someone has successfuly used server push for apps such as meebo etc using django if so can you share some guidelines on using them I have a continuously running python webserver and a website, if there is a new mail or message, how do i ping and let the website or the

favicon.ico displaying in page

2006-08-17 Thread a
getting and storing favicon.ico as an image, problems I need to get the favicon.ico using urllib2.urlretrive or somehting like that and webpages dont uniformly handle favicons.ico they dont different references such as /favicon.ico or /media/favicon.ico some page link the favicon to /favicon.ico

Re: Making a wiki - code suggestions welcomed

2006-08-17 Thread [EMAIL PROTECTED]
limodou wrote: > On 8/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I think the diff is very important. And if there is user control? I > think it's important two. Also need file uploading, image view. And > which format does you want to support? And if the app can be easy > combined

How about the Django book progress

2006-08-17 Thread Vikrant
Hi Adrian and Jacob, I have been waiting for the Django book. I did not find anywhere a link to the Django book in progress. Is it currently in the process and how long is it going to take to see its glimpses. If possible and released in community may be community can help to write some parts

Re: How to build a tree on the page?

2006-08-17 Thread xtian
spacedman wrote: > If you can rework your database slightly you can use Modified Preorder > Tree Traversal, which is a really slick way of doing trees in > relational databases. You can get everything you need to know to > present a tree diagram with ONE database call. If you store parent-id >

django <-> cms like typo3

2006-08-17 Thread [EMAIL PROTECTED]
hi, i have to do a website for a small business and need a simple cms for that. i looked into typo3 for a few days but it seems to be huge and quirky in some regards. since python is my favorite programming language django looks very interesting to me. the needed features of the page would be:

Re: Locking problem with mod_python

2006-08-17 Thread Ivan Sagalaev
Daniel Poelzleithner wrote: > Yes i know. There would be other solutions like shm, or global mutexes, In fact those two don't seem to work for this situation anyway. I was digging this whole field over a month ago and remember that the main problem is that to use anything shared in memory you