Re: Re: check for yourself (((;

2006-08-17 Thread James Bennett
On 8/18/06, Ian Clelland <[EMAIL PROTECTED]> wrote: > I'm actually curious though -- is there enough advantage to be had by > parsing the HTML response of a google search, that malware writers > would bother to write that, rather than just trying IPs at random? Yup. The 'Santy' worm[1] (which us

Re: check for yourself (((;

2006-08-17 Thread Ian Holsman
On 18/08/2006, at 4:39 PM, Ian Clelland wrote: > > On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> this is how various worms spread in the past. they did a google >> search for a specific 'feature' >> and then with a known vulnerability in hand, they would attack that >> site, put their wo

Re: What relating model should I use?

2006-08-17 Thread PythonistL
Maciej, Thank you for help. L --~--~-~--~~~---~--~~ 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 [E

Re: check for yourself (((;

2006-08-17 Thread Ian Clelland
On 8/17/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > this is how various worms spread in the past. they did a google > search for a specific 'feature' > and then with a known vulnerability in hand, they would attack that > site, put their worm on it, and repeat. Ian, Do you know of worms that wo

Re: How to create my own Field Types ?

2006-08-17 Thread Ian Clelland
On 8/17/06, 一首诗 <[EMAIL PROTECTED]> wrote: > > Hi all! > > Django provides a Ip Address Field. But actually it's a CharField with > some IP formate check. You can definitely subclass db.models.Field, or you can subclass any of its subtypes, such as IntegerField or IPAddressField. You might want t

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; dispat

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 patc

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 r2

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 miss

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 missin

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 of

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 do

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 patc

{% 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 th

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 c

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, edit_inline=mode

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 patc

[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 clos

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 yo

Re: Filter, ForeignKey and edit_inline

2006-08-17 Thread Pedro Lima
That kind of sorting is usually done in python after the query. But if it is possible to make the query by EventDate it would be better to do eventdates = EventDate.objects.filter(beginning_date__range=(start_date, end_date)).order_by('beginning_date').select_related() then you access the event

Re: Django chokes on template blocks?

2006-08-17 Thread Adrian Holovaty
On 8/17/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > --- modulalib/views.py --- > http://rafb.net/paste/results/fzWg1g26.html The problem is in the staticpages() function. Specifically, the default value for the context_processor argument is None -- which means you're passing None to t.render(

Re: Django chokes on template blocks?

2006-08-17 Thread Sean Schertell
> Hey Sean, > > 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 paste us your whole view, if that's > possibl

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: login requires only one argument?

2006-08-17 Thread Alan Green
On 8/18/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 > m

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 PR

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. Unfortun

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 its

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 gla

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? Bec

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: >> http://www.google.com/search?

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. Her

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 mo

Re: notification when an object is deleted

2006-08-17 Thread medhat
James Bennett wrote: > It should happen automatically; Django emulates SQL's "ON DELETE > CASCADE" behavior when deleting an object to which other objects were > related. This has been really confusing to me... I have seen it happen sometimes, but it does not happen for all models or all kinds o

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 > m

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 ba

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 mo

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? -- Thanks,

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 parameter

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. Also

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 view

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&lr=&q=Django+administration+Admin+Log+in+Username+Password&btnG=Search Incidentally, using Google's 'allintitle' keyword gives better results: http://www.googl

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&lr=&q=Django+administration+Admin+Log+in+Username+Password&btnG=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 w

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&lr=&q=Django+administration+Admin+Log+in+Username+Password&btnG=Search --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Django, mod_python and 403 error

2006-08-17 Thread Steven Armstrong
On 08/17/06 18:38, Fabien Schwob wrote: >> 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] > (

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 an

Re: Override value on save in admin

2006-08-17 Thread Bryan Chow
This was brought up a couple days ago: http://groups.google.com/group/django-users/browse_thread/thread/ca7091de1e961dff On 8/17/06, fyl <[EMAIL PROTECTED]> wrote: > Just entering data in the admin interface. I want to stuck the current > user in a field at save time if nothing has been specifie

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 django-users@googleg

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 file

Override value on save in admin

2006-08-17 Thread fyl
Just entering data in the admin interface. I want to stuck the current user in a field at save time if nothing has been specified. I understand needing to define a new save method and calling the "real one" in the model. But, do I have access to who someone is currently logged in as? --~--~-

Re: Django, mod_python and 403 error

2006-08-17 Thread Fabien Schwob
> Maybe try something like: > > > ... > >SetHandler mod_python >PythonHandler django.core.handlers.modpython >PythonPath "['/home/cocoa'] + sys.path" >SetEnv DJANGO_SETTINGS_MODULE chibbi.settings > > ... > I get the same error with this solution. --~--~-~--~~

Re: Updating Related Objects

2006-08-17 Thread Andrew
I ended up saving the object, but I was trying to update the tree of objects without saving so I could offer a preview type of functionality (there are some background calculations done on the objects). --~--~-~--~~~---~--~~ You received this message because you a

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 mu

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 stac

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 are

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 want,

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 use

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 the

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 HttpResponseRed

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 django-users@googlegrou

Re: Django chokes on template blocks?

2006-08-17 Thread Hawkeye
Adrian Holovaty wrote: [...] > > This comment is inaccurate. {% block %} tags are not required to have > any space between them. "{% block content %}{% endblock %}" -- with no > space -- is perfectly valid. Sorry about that. Thought I understood what was going on, for a change. Good luck findin

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 past

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 U

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 ex

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 po

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 django-users@googleg

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 develo

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 www.my-do

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 select

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 a

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 can't

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 deali

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, send

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 by

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 a

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 Sea

Re: Django chokes on template blocks?

2006-08-17 Thread Hawkeye
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 can't test this, but it looks like it's expecting content in the

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 sub

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. The

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 > > ... > > 'q

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 = template.Library

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()), > ... --~--~--

  1   2   >