Sitemap Index problems

2007-08-04 Thread Mackenzie Kearl
Hi I am trying to get a sitemap index generated however I only get "Exception Type:ValueError Exception Value:Empty module name" I am not sure what I am doing wrong. urls.py sitemaps = { 'blog':BlogSitemap, 'gallery':GallerySitemap, } urlpatterns = patterns('',

login issue

2007-08-04 Thread [EMAIL PROTECTED]
Hi, I just read chapter 12 in djangobook.com on authentication: http://www.djangobook.com/en/beta/chapter12/ I am creating a new user in response to a registration form I've made, doing something like this: from django.contrib import auth from django.contrib.auth.models import User def

Re: newforms errors translation

2007-08-04 Thread James Bennett
On 8/4/07, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > i'm trying to find a way to translate newforms errors but i can't find > it in docs. > does anybody know if this is documented somewhere? Newforms error messages should be Unicode strings, so use the 'ugettext' or 'ugettext_lazy' functions

newforms errors translation

2007-08-04 Thread Aljosa Mohorovic
i'm trying to find a way to translate newforms errors but i can't find it in docs. does anybody know if this is documented somewhere? it's simple to display form errors just by displaying messages on english but i don't know a good way to do it on some other language. any tips on how to

Re: extending django.contrib.auth

2007-08-04 Thread James Bennett
On 8/4/07, eXt <[EMAIL PROTECTED]> wrote: > You shold read very good summary on extending user model here: > http://www.amitu.com/blog/2007/july/django-extending-user-model/ This method will probably have serious problems on multi-site installations, and -- unlike AUTH_PROFILE_MODULE -- has no

Re: Traversing Deep Model Objects in template...

2007-08-04 Thread Amirouche
On Aug 1, 11:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >From the documentation: > > "A ValuesQuerySet is useful when you know you're only going to need > values from a small number of the available fields and you won't need > the functionality of a model instance object. It's more

Re: related_name

2007-08-04 Thread Amirouche
On Aug 1, 10:07 pm, "Lic. José M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > how can I change the "related_name" value in a ForeignKey field dynamically > at model creation time? > What do you really mean I don't understand, give an example

Windows Tips and Tricks

2007-08-04 Thread John Travolta
Speed up your system, repair registry base, uninstall hidden windows components and get rid of boring errors with powerful tips and tricks. http://windowsxpsp2pro.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

I quit my job and now I'm making roughly 150 dollars a day! haha

2007-08-04 Thread David
About a month ago I quit my job at Hollister. I didn't quit it because I didn't like it there I quit because I was making about 150-200 dollars a day filling out opinion surveys for Nike. I mean seriously that's close to four times what I was making at Hollister. There are still job openings if

Re: Only save if changed?

2007-08-04 Thread Forest Bond
On Sat, Aug 04, 2007 at 12:09:07PM +0200, Michael Elsdoerfer wrote: > > > def save(self): > > if self.id is not None: > > old_self = self.__class__.get(id = self.id) > > if self.id is None or (old_self.city != self.city) or ( > > old_self.state != self.state): > >

Free Windows XP tips and tricks

2007-08-04 Thread John Travolta
Windows XP tips and tricks. Learn how to bypass very common windows problems, to speed up your system and make it more reliable with useful tips and tricks. http://windowsxpsp2pro.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are

Re: extending django.contrib.auth

2007-08-04 Thread eXt
Hi! You shold read very good summary on extending user model here: http://www.amitu.com/blog/2007/july/django-extending-user-model/ Regards -- Jakub Wisniowski On 4 Sie, 12:54, ocgstyles <[EMAIL PROTECTED]> wrote: > Perfect. I google'd AUTH_PROFILE_MODULE and found a nice writeup: > >

Re: extending django.contrib.auth

2007-08-04 Thread ocgstyles
Perfect. I google'd AUTH_PROFILE_MODULE and found a nice writeup: http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model Looks like that will suit my needs. Thanks On Aug 3, 7:56 am, daev <[EMAIL PROTECTED]> wrote: > You can create Profile model that can have all additional

Re: mod_python/django problems

2007-08-04 Thread Graham Dumpleton
On Aug 4, 8:05 pm, David Reynolds <[EMAIL PROTECTED]> wrote: > On 4 Aug 2007, at 6:00 am, Kenneth Gonsalves wrote: > > > could you mention what exactly the problems you are facing - as i > > mentioned, on one site i have faced the problem of the initial screen > > in admin loading with the fields

Re: Something like a mini Crystal Reports with Django

2007-08-04 Thread Chris Hoeppner
Need another tester? Count me in. 2007/8/4, Mir Nazim <[EMAIL PROTECTED]>: > > Me too me too. > > Ben, Let us know if you need help with testing or some thing else. > I will more interested in Models and View than template. > > > > On Aug 3, 11:51 am, "Matt Davies" <[EMAIL PROTECTED]> wrote: > >

Re: Job Fair F/OSS project

2007-08-04 Thread Chris Hoeppner
Trac seems a good idea. Self hosted is always better. Well, if the project goes active, just drop me a line. I'm pretty busy atm, but I can find time to help with this project. Thanks for the reply, emperor. 2007/8/3, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Well, all that stuff is still up

RE: Only save if changed?

2007-08-04 Thread Michael Elsdoerfer
> def save(self): > if self.id is not None: > old_self = self.__class__.get(id = self.id) > if self.id is None or (old_self.city != self.city) or ( > old_self.state != self.state): > self.geocode = self.get_geocode() > super(SiteUser, self).save() You can also

Re: mod_python/django problems

2007-08-04 Thread David Reynolds
On 4 Aug 2007, at 6:00 am, Kenneth Gonsalves wrote: could you mention what exactly the problems you are facing - as i mentioned, on one site i have faced the problem of the initial screen in admin loading with the fields of the admin screen of the previous site accessed in another browser tab.

Re: django app for managing sending email to users...

2007-08-04 Thread David Reynolds
On 3 Aug 2007, at 3:55 pm, James Tauber wrote: A number of sites I'm working on will optionally notify users of certain events via email. Think of the email you get from a social networking site when someone wants to add you as a friend. Or forum software that emails subscribers to a thread

Re: Something like a mini Crystal Reports with Django

2007-08-04 Thread Mir Nazim
Me too me too. Ben, Let us know if you need help with testing or some thing else. I will more interested in Models and View than template. On Aug 3, 11:51 am, "Matt Davies" <[EMAIL PROTECTED]> wrote: > Ben, I'd be interested in looking at that application. > > Need someone to help with

Re: Django and mod_proxy

2007-08-04 Thread Michael
Hi Przemek, Is that running by runserver:8000? Is your django dev server serving static files? What log file is show? On 8/3/07, Matt Davies <[EMAIL PROTECTED]> wrote: > Hi Przemek > > I do, but I hand the request from apache to Lighttpd, which in it's conf > file handles the serving of docs. >

DateField() , AttributeError: 'str' object has no attribute 'strftime'

2007-08-04 Thread Frank Singleton
Hi, fedora 7 django 0.96 DATABASE_ENGINE = 'sqlite3' maybe its late but DateField is causing me some grief when trying to load some test data from the command line (ie: not via admin web). in model test_date = models.DateField() in another python script (run on command line ) that imports

Re: age in years calculation

2007-08-04 Thread Kenneth Gonsalves
On 03-Aug-07, at 10:02 PM, Nis Jørgensen wrote: >> how about surrounding the statement with a try and work the leap year >> to regular year case with the exception? > That seems like overkill. There isn't really any leap-year handling > necessary: > > import datetime.date as date this should