line 5, models.py - you've capitalised Class. It should just be 'class', all lower case.
JT On Fri, Nov 22, 2013 at 4:41 AM, puneet pandey <[email protected]>wrote: > I was going through Django tutorials and found the command - 'python > manage.py migrate' to give output as 'unknown command' . So i searched for > it and found that its most probably due to 'south' not installed. i checked > it on python shell by giving the command - 'import south' which resulted in > 'unknown module'. So I installed south first by using easy_install and then > by apt-get and then updated the system. I also went to settings.py and > added south in the installed_apps section. > > Now when I ran 'python manage.py migrate' command there was an error - > pasting it here - > > popo@popo-HP-TouchSmart-tm2-Notebook-PC:~/Django_apps/mysite$ python > manage.py migrate > Traceback (most recent call last): > File "manage.py", line 10, in <module> > execute_from_command_line(sys.argv) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", > line 399, in execute_from_command_line > utility.execute() > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", > line 392, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", > line 242, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", > line 284, in execute > self.validate() > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", > line 310, in validate > num_errors = get_validation_errors(s, app) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", > line 34, in get_validation_errors > for (app_name, error) in get_app_errors().items(): > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line > 196, in get_app_errors > self._populate() > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line > 75, in _populate > self.load_app(app_name, True) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line > 99, in load_app > models = import_module('%s.models' % app_name) > File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", > line 40, in import_module > __import__(name) > File "/home/popo/Django_apps/mysite/polls/models.py", line 5 > Class Question(models.Model): > ^ > SyntaxError: invalid syntax > > > > > > > > > > > what can i do to solve this issue. > Thanks a lot everyone for reading this and helping me out. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ae647a5a-bea1-4c89-9816-4162ddb9809e%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAb4X%3DyfunZLSuUjNYzs2X_he%2BdfpLn6r9U1DPKuEx%2B%3D5%3D_wMA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

