After fixing the Style model in Dj Style by replacing all the hyphens
with underscores, the syntax checked out completely. I ran manage.py
syncdb on it, and it returned this traceback:
Traceback (most recent call last):
File "C:\django-project\firstsite\manage.py", line 11, in <module>
execute_manager(settings)
File "C:\Python25\lib\site-packages\django\core\management
\__init__.py", line
272, in execute_manager
utility.execute()
File "C:\Python25\lib\site-packages\django\core\management
\__init__.py", line
219, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python25\lib\site-packages\django\core\management\base.py",
line 72,
in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python25\lib\site-packages\django\core\management\base.py",
line 85,
in execute
self.validate()
File "C:\Python25\lib\site-packages\django\core\management\base.py",
line 112,
in validate
num_errors = get_validation_errors(s, app)
File "C:\Python25\lib\site-packages\django\core\management
\validation.py", line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "C:\Python25\lib\site-packages\django\db\models\loading.py",
line 128, in
get_app_errors
self._populate()
File "C:\Python25\lib\site-packages\django\db\models\loading.py",
line 57, in
_populate
self.load_app(app_name, True)
File "C:\Python25\lib\site-packages\django\db\models\loading.py",
line 72, in
load_app
mod = __import__(app_name, {}, {}, ['models'])
File "C:\django-project\firstsite\dj_styles\models.py", line 36, in
<module>
class Style(models.Model):
File "C:\django-project\firstsite\dj_styles\models.py", line 37, in
Style
Style_Name = models.CharField("Style Name", Max_length=32,
Default="Styles Upon Styles", Help_text="A user_friendly name for the
style.")
File "C:\Python25\lib\site-packages\django\utils\maxlength.py", line
47, in inner
func(self, *args, **kwargs)
File "C:\Python25\lib\site-packages\django\utils\maxlength.py", line
47, in inner
func(self, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'Help_text'
I'm not sure why maxlength.py was invoked at all, since as you can
clearly see I used the newer max_length version. At any rate, it seems
like I need help again. Can anyone explain what this error is, why it
got called, and how to fix it?
Regards,
Leaf
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---