[EMAIL PROTECTED] wrote:
> when i run the command above it shows this message , what is the
> problem i have successful installed django and i want step to run the
> server and
> $ python manage.py runserver
> Validating models...
> Unhandled exception in thread started by <function inner_run at
> 0xb7a7995c>
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/django/core/management/
> commands/runserver.py", line 47, in inner_run
>     self.validate(display_num_errors=True)
>   File "/usr/lib/python2.5/site-packages/django/core/management/
> base.py", line 110, in validate
>     num_errors = get_validation_errors(s, app)
>   File "/usr/lib/python2.5/site-packages/django/core/management/
> validation.py", line 28, in get_validation_errors
>     for (app_name, error) in get_app_errors().items():
>   File "/usr/lib/python2.5/site-packages/django/db/models/loading.py",
> line 126, in get_app_errors
>     self._populate()
>   File "/usr/lib/python2.5/site-packages/django/db/models/loading.py",
> line 55, in _populate
>     self.load_app(app_name, True)
>   File "/usr/lib/python2.5/site-packages/django/db/models/loading.py",
> line 70, in load_app
>     mod = __import__(app_name, {}, {}, ['models'])
>   File "/home/development/models.py", line 41
>     department = models.CharField("Department Name", maxlength=50,
> primary_key=True)
>   
One problem here is that maxlength is now deprecated, and should be 
written max_length. But I don't think this would cause the error you've 
reported, so maybe it's something else as well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to