Django

Code

Ticket #5184 (closed: duplicate)

Opened 1 year ago

Last modified 1 year ago

in mysite/polls/models.py, manage.py syncdb we get max_lenght gives error but maxlenght woks ok

Reported by: asel_alshukri@hotmail.com Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

following the tutorial that gets you started with django the step where you create/fill/edit mysite/polls/models.py the attributes of the the charfields "max_length" caused an error that's it's (if i remember correctly) unkown attribute when i ran manage.py syncdb but when i changed in mysite/polls/models.py the max_length to maxlenght the manage.py syncdb worked ok and tables were created without errors

regards, asel

i am working on windows xp home, with python25, and django 0.96

Attachments

Change History

08/16/07 17:01:36 changed by anonymous

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

The docs are for the SVN version, not 0.96. maxlength was changed to max_length (backwards-compatible) in [5803]. See also ticket #2101. Duplicate of #5119, #5159, #5162.


Add/Change #5184 (in mysite/polls/models.py, manage.py syncdb we get max_lenght gives error but maxlenght woks ok)




Change Properties
Action