- Python version 3.3
- Django version 1.5.2
Settings.py
- Admin Enabled, changed time zone
urls.py
- Admin Enabled.
__init__.py
- empty
i created the file "models.py"
from django.db import models from django.contrib import admin
And when I try to manage.py syncdb
.
I get a typeerror :__init__() got an unexpected keyword argument ' max_length '
error typeerror :__init__() got an unexpected keyword argument ' max_length '
I am new to Python \ Django. Googled for 2 days and no answer. The answers I found were - type max_lenght
instead of maxlenght
becouse version 0.96
modles β model
Some old Django with new Python and ect ...
The problem is models.py. I ask you for help. Thanks.
source share