On Jul 21, 7:38 pm, jaymzcd wrote:
> I'm going to guess you have been following along with
> thehttp://www.djangobook.com/
> site. It was great in the day but *do not use that* now-a-days as it
> covers 0.96. There have been significant changes, one of which is the
> maxlength to max_length on Ch
I'm going to guess you have been following along with the
http://www.djangobook.com/
site. It was great in the day but *do not use that* now-a-days as it
covers 0.96. There have been significant changes, one of which is the
maxlength to max_length on CharFields. Stick with the particular
version y
Must be using very old docs:
Use these instead: http://docs.djangoproject.com/en/dev/
Thanks,
Subhranath Chunder.
On Wed, Jul 21, 2010 at 8:47 PM, n3ph wrote:
> Another one who's confused about all the deep API-Changes in Django :-(
>
> But reading the doc's is very helpful to preventing you
Another one who's confused about all the deep API-Changes in Django :-(
But reading the doc's is very helpful to preventing you from thees traps...
Am 21.07.2010 17:04, schrieb euan.godd...@googlemail.com:
The traceback tells you exactly what the problem is. The correct kwarg
is max_length
The traceback tells you exactly what the problem is. The correct kwarg
is max_length
On Jul 21, 2:00 pm, balu wrote:
> Respected sir
>
> This is balu studying B.Tech third year. I started working on django
> in order to create dynamic website. My Python version is 2.6.5. While
> I'm using creati
Hi
In your models.py
Change the below to
name = models.CharField(maxlength=30)
this
name = models.CharField(max*_*length=30)
underscore is the diff
Regards
Subramanyam
On Wed, Jul 21, 2010 at 6:30 PM, balu wrote:
> Respected sir
>
> This is balu studying B.Tech third year. I started working
>
>
> TypeError: __init__() got an unexpected keyword argument 'maxlength'
>
>
Your error is right there, at the bottom of your stack trace. The keyword
maxlength is not valid. You probably meant max_length.
In the future, please actually read the error message output. It is usually
very helpful.
Respected sir
This is balu studying B.Tech third year. I started working on django
in order to create dynamic website. My Python version is 2.6.5. While
I'm using creating a app the following error has displayed in the
command line.
/
*
8 matches
Mail list logo