Re: Calling Methods from Admin

2006-12-02 Thread Jorge Gajon
On 12/2/06, Beau Hartshorne <[EMAIL PROTECTED]> wrote: > > What's the best way make a method call from Django's admin? I'd like > to set up a link or button that re-sends emails to users who've lost > them to the Internet or spam traps or whatever. > Well, I'm not sure what is the best way to do

Re: Fast fcgi on dreamhost --> shauwn of the dead, help me shoot zombies

2006-12-02 Thread limodou
On 12/2/06, coulix <[EMAIL PROTECTED]> wrote: > > Hello guys, > Since a month ago the website hosted on dreamhost was randomly down, > for few minutes before i launch a new request or kill all python > processes. > > e.g > Tasks: 21 total, 1 running, 12 sleeping, 0 stopped, 8 zombie > 327

Re: Calling model-functions in template

2006-12-02 Thread Todd O'Bryan
On Sun, 2006-12-03 at 01:09 +0100, Kai Kuehne wrote: > I must misunderstand something really basic here. Just look: > > Template: > {{ movie.genres_title_list }} > > models.py: > def genres_title_list(self, separator=', '): > return separator.join([x.title for x in self.genres]) > >

Re: Calling model-functions in template

2006-12-02 Thread Kai Kuehne
I must misunderstand something really basic here. Just look: Template: {{ movie.genres_title_list }} models.py: def genres_title_list(self, separator=', '): return separator.join([x.title for x in self.genres]) Prints nothing... idea anyone? Kai --~--~-~--~~

Re: Calling model-functions in template

2006-12-02 Thread Kai Kuehne
Hi, On 12/2/06, James Bennett <[EMAIL PROTECTED]> wrote: > Note that this has 'method', not 'method()' -- parentheses are not > used, and it is not possible to pass arguments to the method. This is > done because the template language is not meant to be a full > programming language; if you need

Re: Calling model-functions in template

2006-12-02 Thread James Bennett
On 12/2/06, Kai Kuehne <[EMAIL PROTECTED]> wrote: > Is it possible to call functions of the model out of the template? > Sorry, didn't find it in the docs. It is possible to call methods which take no arguments, by doing {{ model.method }} Note that this has 'method', not 'method()' -- parenthe

Calling model-functions in template

2006-12-02 Thread Kai Kuehne
Hello list! Is it possible to call functions of the model out of the template? Sorry, didn't find it in the docs. Example: {{ model.function() }} Thanks Kai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Overwriting the save-function in automatic admin?

2006-12-02 Thread James Bennett
On 12/2/06, Tim Adler <[EMAIL PROTECTED]> wrote: > I've written my blog in Django and am quite happy with it. Yesterday I > implement trackbacks, so that Django kann accept them for posts. Next > goal is to be able to send trackbacks. Since I put all my stuff into my > blog through the automatic a

Re: Converting a Django site to flat HTML

2006-12-02 Thread James Bennett
On 12/2/06, James Mulholland <[EMAIL PROTECTED]> wrote: > The solution is this: > > wget -m http://www.example.com/ Yeah, wget rocks ;) When I was freelancing I used to use that trick all the time; I'd build a site on my local computer using whatever dynamic/templating tools I wanted, and then i

Re: Converting a Django site to flat HTML

2006-12-02 Thread [EMAIL PROTECTED]
try httrack :) --~--~-~--~~~---~--~~ 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

Re: Extending User

2006-12-02 Thread scum
> 1. You have to explicitly instantiate and save a UserProfile object > before get_profile() will do anything -- Django will not implicitly > create objects for you in the shell like that. > This is what I need to know. Thanks James. --~--~-~--~~~---~--~~ You

Calling Methods from Admin

2006-12-02 Thread Beau Hartshorne
What's the best way make a method call from Django's admin? I'd like to set up a link or button that re-sends emails to users who've lost them to the Internet or spam traps or whatever. Thanks, Beau --~--~-~--~~~---~--~~ You received this message because you

Problems with extra_context in generic date base views

2006-12-02 Thread DvD
Hello to everyone, I'm quite new so please go easy on me. I already searched on the mailing list but couldn't find a good answer for my problem. I am writing a project for a website where i retrieve events from a database, together with them I need, on the same page, to show a list of banner

Re: Guido's Google project uses Django

2006-12-02 Thread Igor Guerrero Fonseca
Wow, we are in the rigth place... Django is the best!!! El sáb, 02-12-2006 a las 17:17 +, psaletan escribió: > http://www.niallkennedy.com/blog/archives/2006/11/google-mondrian.html > > >From the article: > > Guido van Rossum unveiled his first Google project, Mondrian, tonight > during a P

Re: New Django-powered site: pegasusnews.com

2006-12-02 Thread Jeremy Dunck
On 12/2/06, joebaich <[EMAIL PROTECTED]> wrote: > > Very good looking site but marred by "signitures" typo in leading > headline. Ouch! I'll properly flog the editors. :) Fixed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: New Django-powered site: pegasusnews.com

2006-12-02 Thread joebaich
Very good looking site but marred by "signitures" typo in leading headline. --~--~-~--~~~---~--~~ 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 T

Re: Overwriting the save-function in automatic admin?

2006-12-02 Thread Brian Beck
Hi Tim, James Bennett wrote about how to do this not too long ago, check it out here: http://www.b-list.org/weblog/2006/11/02/django-tips-auto-populated-fields -- Brian Beck Adventurer of the First Order --~--~-~--~~~---~--~~ You received this message because y

Guido's Google project uses Django

2006-12-02 Thread psaletan
http://www.niallkennedy.com/blog/archives/2006/11/google-mondrian.html >From the article: Guido van Rossum unveiled his first Google project, Mondrian, tonight during a Python tech talk at the Google campus in Mountain View. Mondrian is a web-based code review system built on top of a Perforce a

Converting a Django site to flat HTML

2006-12-02 Thread James Mulholland
This might fail the obviousness test for some people, but it just saved me a shed-load of work. Basic problem is this: I pitched Django to a client a few weeks ago, and they seemed very happy with it and told me to go ahead. About a week into the project (ie, when I'd all but finished it ;) they g

Fast fcgi on dreamhost --> shauwn of the dead, help me shoot zombies

2006-12-02 Thread coulix
Hello guys, Since a month ago the website hosted on dreamhost was randomly down, for few minutes before i launch a new request or kill all python processes. e.g Tasks: 21 total, 1 running, 12 sleeping, 0 stopped, 8 zombie 3279 coulix 9 0 10976 10m 2612 S 0.0 0.5 0:00.08 python

Overwriting the save-function in automatic admin?

2006-12-02 Thread Tim Adler
Hey guys, I've written my blog in Django and am quite happy with it. Yesterday I implement trackbacks, so that Django kann accept them for posts. Next goal is to be able to send trackbacks. Since I put all my stuff into my blog through the automatic admin, my question is: Is there a way to overwr

Video stream or movie

2006-12-02 Thread Pythoni
Hi, Has anyone thought /successfully implemented video stream (or movie) uploading/playing feature on a website powered by Django? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Session problems

2006-12-02 Thread Jakub Labath
Hi All, Sorry for being quiet for a while just got back from a vacation. > > Hi Jakub, > > Do you have any updates on this problem? Was it a mod_python bug? > > Adrian > No the problem persists and I noticed that my coworkers have not resolved this in my absence. I'm still not sure what the pro

Re: Database error only for certain models?

2006-12-02 Thread markguy
After hammering everything and starting over from scratch, it occurs to me... far, far too late... that I might not have restarted apache before retrying the admin site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Multithreading inside django

2006-12-02 Thread Wolfram Kriesing
django/db/__init__.py contains dispatcher.connect(connection.close, signal=signals.request_finished) and that closes the connection and causes the exception below, the only thing i dont know is why the main thread doesnt closes it right away but instead lets the thread run a while and just the ne

Re: Need help with extending admin templates

2006-12-02 Thread Jim Fritchman
I made the suggested change by adding the html extension to the extends but no luck. Does anyone else possible see what the problem is? Is there a way to step into this code as it executes? Thanks, Jim --~--~-~--~~~---~--~~ You received this message because yo

Video stream uploading/playing

2006-12-02 Thread Pythoni
Hi, Has anyone thought /successfully implemented video stream (or movie) uploading/playing feature on a website powered by Django? L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t