Re: djangobook.com, chapter 5, __init__() got an unexpected keyword argument 'maxlength'

2008-12-01 Thread Roland van Laar
ength The book is a bit outdated, maxlength should become max_length please do read: http://docs.djangoproject.com/en/dev/ and: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for more information about django and the changes in 1.0 Regards, Roland van Laar --~--~-~--~---

Re: OpenId

2008-12-01 Thread Roland van Laar
Chris wrote: > I have been looking into using OpenId and I discovered that there are > to 2 django libraries that handle this: django_openId and > django_authopenid. Any opinions on the two? Not sure which one I > should go with. > I depends on what you want to do, be a relying party, i.e. the

Re: admin.py -- AlreadyRegistered

2008-12-01 Thread Roland van Laar
djan wrote: > Hello. > > I'm following along with djangobook.com and trying to make necessary > changes to port django to version 1.0. In Django's Site > Administration, chapter 6, I run into the error: > > > Exception Type: AlreadyRegistered > Exception Value: The model Book is already

Re: Django configuration. I can't import django.db .

2008-12-06 Thread Roland van Laar
if not settings.DATABASE_ENGINE: > python can't find your configuration settings.py file. You need to create a django application first. Read: http://docs.djangoproject.com/en/dev/intro/tutorial01/ > What is the solution for this problem ? > > Regards, Roland van Laar

Re: Django Training

2008-12-08 Thread Roland van Laar
Steve Holden wrote: > I am looking at expanding our training offerings for the coming year, > and a short course in Django looks like it might be popular. There > don't seem to be many Django classes at the moment, and several of the > students from our introductory Python classes expressed intere

Re: sys.path trickery in settings.py

2009-01-04 Thread Roland van Laar
lready have a project, if you don't have one already, buildout will generate one for you, with the name specified in base.cfg. Regards, Roland van Laar > In the shell you're working in: > $ export PYTHONPATH=~/pkg/django-trunk > Then ./manage.py will find it without editing

Re: Change password form

2009-01-13 Thread Roland van Laar
.html', { > 'pForm': pForm, > 'message': message }) > > The Template: > {% extends "base_template.html" %} > {% block title %} Update Alert {% endblock %} >

Re: looking for a clean, easy way to force user to change password on first login

2009-07-26 Thread Roland van Laar
n't have to know the random password, and they can't login until they have set a new password. And that way there is no need to have extra fields in the models. Regards, Roland van Laar > > > pjv 写道: >> thanks again. writing that login view is what i meant by re- >>

Re: Enforcing requirements for user passwords on admin site

2009-07-26 Thread Roland van Laar
ase post. > I implemented this for my work, the way to go was to make the password_change view use a different form, by copying the code and modifying the code to accept a different form. See bug 8274 Regards, roland van Laar > Thanks, > Scot > > --~--~-~--~~

Re: PLEASE HELP ME! update python 2.5 to 2.6 and django doesnt work

2009-11-04 Thread Roland van Laar
e" > You might want to do easy_install mysql-python or something equivalent for python 2.6 Regards, Roland van Laar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Challenge with Annotate

2010-05-18 Thread Roland van Laar
rer'), avg_days_instock=Avg('days_in_stock')) The annotate fails because 'days_in_stock' is not a valid field: FieldError: Cannot resolve keyword 'days_in_stock' into field. Choices are: manufacturer, product, bought_date, sold_date How can I calculate the average of

Re: Challenge with Annotate

2010-05-18 Thread Roland van Laar
asis. To me it seems that I need to do a Count and a avg_days_instock at the same time? Roland > Ian > > On Tue, May 18, 2010 at 9:03 PM, Roland van Laar wrote: > >> Hello, >> >> Question: How do I calculate the Average of a calculated field. >> >> My (

Re: How to mix in class based views from pluggable apps?

2012-01-09 Thread Roland van Laar
On 01/09/2012 10:36 PM, jrief wrote: Hi, currently I am writing a Django applications built up from loosely coupled plug-ins. Each of these plug-ins shall offer a class based view to handle get and post requests. For get requests the context shall be populated with plug-in specific data. For p