calendar for blog app?

2006-06-10 Thread Steven Armstrong
Hi all Is anybody aware of a template tag or something that renders a calendar for a blogs sidebar? One of those things that shows the month of the blog entry you're currently looking at and the days are links to entries that where made on other days? cheers Steven

howto Django + lighttpd + Windows?

2006-06-10 Thread mamcxyz
I'm triying to use lighttpd for Windows, so I can test stuff localy and then upload to linux. I download the windows version of lighttpd : http://www.kevinworthington.com:8181/ I configure the thing this way: server.modules = ( "mod_rewrite", "mod_fastcgi" ) server.document-root =

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread James Bennett
On 6/10/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Is there a list of attributes for an HttpRequest object somewhere? http://www.djangoproject.com/documentation/request_response/ -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread Todd O'Bryan
On Jun 10, 2006, at 12:32 PM, Luke Plant wrote: > > On Saturday 10 June 2006 16:40, Todd O'Bryan wrote: > >> so I'd like to add userinfo to the context by default. To do that, >> I've figured out that I need to add my own function to >> TEMPLATE_CONTEXT_PROCESSORS, but I'm a little confused how

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread Luke Plant
On Saturday 10 June 2006 16:40, Todd O'Bryan wrote: > so I'd like to add userinfo to the context by default. To do that, > I've figured out that I need to add my own function to > TEMPLATE_CONTEXT_PROCESSORS, but I'm a little confused how to get the > currently logged in user so I can get the

Re: Creating a root object for a many-to-one relationship

2006-06-10 Thread arthur debert
won't this work for you: class Node(Model): parent = ForeignKey('self', blank=True, null=True) ... rest of your model... then fetch it like Node.objects.filter(parent__isnull=True) if you are worried with the possibility of ending up with mode that one root node you could do either

Re: OT: Password checker

2006-06-10 Thread Todd O'Bryan
On Jun 10, 2006, at 10:32 AM, Luke Plant wrote: > > On Saturday 10 June 2006 14:40, Todd O'Bryan wrote: >> What do people use to verify the strength of user passwords? Is there >> a Python library out there that's good? >> >> I've found python-crack, but that requires cracklib to be installed

Re: OT: Password checker

2006-06-10 Thread Luke Plant
On Saturday 10 June 2006 14:40, Todd O'Bryan wrote: > What do people use to verify the strength of user passwords? Is there > a Python library out there that's good? > > I've found python-crack, but that requires cracklib to be installed > on the server and I'd prefer something self-contained. I

Re: When to use django.db.models.LazyDate() and when datetime.now()?

2006-06-10 Thread Rudolph
Thanks Luke, very nicely explained! Rudolph --~--~-~--~~~---~--~~ 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,

Re: Extending User model after magic-removal

2006-06-10 Thread Luke Plant
On Friday 09 June 2006 18:02, Marcin Kaszynski wrote: > I just spent some time looking for a way to extend the User model in > a way that would allow me to: > > 1. add fields to the model itself, > 2. use the standard admin interface to edit them, > 3. keep changes to Django minimal and generic.

Re: newbie: ImportError on module admin

2006-06-10 Thread Ramiro Morales
brian, On 6/10/06, planetshwoop <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my first app/project started on Django. I've created > my first model, but am unable to access the admin site. I continue to > get the error "ImportError at /admin/" "No module named admin" > > My hunch is that

Re: Possibly new Django user questions

2006-06-10 Thread Luke Plant
On Friday 09 June 2006 23:50, binjured wrote: > 1) How robust is Django? Take for instance the User class. Say I > wanted to add the field "favorite_color" and have it editable in the > admin interface and work with all applicable functions, is that > possible? What if I need to connect to a

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Malcom. Thank you for help. I followed http://www.modpython.org/live/current/doc-html/inst-trouble.html so i added to my httpd.conf SetHandler mod_python PythonHandler mod_python.testhandler but when I point my browser to the /mpinfo URL I will get Mod_python

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread Malcolm Tredinnick
On Sat, 2006-06-10 at 03:35 -0700, PythonistL wrote: > Simon, > On Apache > I use > Apache/2.0.55 (Trustix Secure Linux/Linux) > mod_python/3.2.8 > Python/2.3.5 > PHP/5.0.5 > mod_perl/2.0.0 Perl/v5.8.7 Since you are using mod_python 3.2.8, have you tried looking at the output of the helper

Re: Trouble blogging

2006-06-10 Thread Malcolm Tredinnick
On Sat, 2006-06-10 at 10:37 +, Giovanni Giorgi wrote: > Hi all, > I am building a small blog, based on the code of the wamber website. > I have a fuzzy problem: when I insert a new posting adding a 'slug' to > it, then I cannot search for it based on its slug name. > I am recieving a 'No

Trouble blogging

2006-06-10 Thread Giovanni Giorgi
Hi all, I am building a small blog, based on the code of the wamber website. I have a fuzzy problem: when I insert a new posting adding a 'slug' to it, then I cannot search for it based on its slug name. I am recieving a 'No post found for' error. Sometimes it seems working, sometime I get an

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Simon, On Apache I use Apache/2.0.55 (Trustix Secure Linux/Linux) mod_python/3.2.8 Python/2.3.5 PHP/5.0.5 mod_perl/2.0.0 Perl/v5.8.7 Do you think there can be a problem? Thank you for help regards, L --~--~-~--~~~---~--~~ You received this message because you

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
My settings.py looks like this: # Django settings for mimiproject project. DEBUG =True TEMPLATE_DEBUG = DEBUG SESSION_COOKIE_AGE=259200 ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS SERVER_EMAIL='[EMAIL PROTECTED]' DEFAULT_FROM_EMAIL='[EMAIL PROTECTED]'

Re: Mod_python and Django - PROBLEM

2006-06-10 Thread PythonistL
Hello Michael, thank you for help.It solved that problem. But now it says File "/home/django_src/django/core/db/__init__.py", line 23, in ? raise ImproperlyConfigured, "Could not load database backend: %s. Is your DATABASE_ENGINE setting (currently, %r) spelled correctly? Available options