just off the cuff - what's a "DateFimeField"? should be DateTimeField?
On Nov 19, 12:44 pm, hank23 <[email protected]> wrote: > I'm trying to work through part 1 of the tutorial at: > > http://docs.djangoproject.com/en/dev/intro/tutorial01/ > > and I seem to be having problems getting my model code to work. I > currently have Django-1.2.3, and Python 2.7 installed. I was able to > run the startproject and create the mysite directory successfully. I > then was also able to successfully start development server at > 127.0.0.1:8000. I then ran the syncdb command to create all the stuff > needed for the apps that came setup with Django. Next I ran the > "startapp polls" command successfully to create the polls directory. I > then put in the prescribed code for the two tables to be used by the > polls app. Then I added the polls app to the installed apps list in my > setting.py. Up to this point everything worked as described in the > tutorial documentation. Then when I ran the syncdb command again to > build the two new tables for the polls app I got the following error > messages: > > python manage.py sql polls > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "C:\Python27\lib\site-packages\django\core\management > \__init__.py", line > 438, in execute_manager > utility.execute() > File "C:\Python27\lib\site-packages\django\core\management > \__init__.py", line > 379, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File "C:\Python27\lib\site-packages\django\core\management\base.py", > line 191, > in run_from_argv > self.execute(*args, **options.__dict__) > File "C:\Python27\lib\site-packages\django\core\management\base.py", > line 219, > in execute > self.validate() > File "C:\Python27\lib\site-packages\django\core\management\base.py", > line 249, > in validate > num_errors = get_validation_errors(s, app) > File "C:\Python27\lib\site-packages\django\core\management > \validation.py", lin > e 28, in get_validation_errors > for (app_name, error) in get_app_errors().items(): > File "C:\Python27\lib\site-packages\django\db\models\loading.py", > line 146, in > get_app_errors > self._populate() > File "C:\Python27\lib\site-packages\django\db\models\loading.py", > line 61, in > _populate > self.load_app(app_name, True) > File "C:\Python27\lib\site-packages\django\db\models\loading.py", > line 78, in > load_app > models = import_module('.models', app_name) > File "C:\Python27\lib\site-packages\django\utils\importlib.py", line > 35, in im > port_module > __import__(name) > File "C:\Documents and Settings\hversemann\djangoprojects\mysite > \polls\models. > py", line 5, in <module> > class Poll(models.Model): > File "C:\Documents and Settings\hversemann\djangoprojects\mysite > \polls\models. > py", line 7, in Poll > pub_date = models.DateFimeField('date published') > AttributeError: 'module' object has no attribute 'DateFimeField' > > I'm not sure what more I can do or where else to look to figure this > out. I've just recently started learning python and only yesterday > started this tutorial. I would appreciate any help in resolving this > issue. Thanks. > > hank23 -- 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.

