It works!!

THANK YOU EVERYBODY

On 12 Kwi, 22:21, Rafael Durán Castañeda
<rafadurancastan...@gmail.com> wrote:
> I think last line from traceback is enough:
>
> IndentationError: unexpected indent
>
> 2011/4/12 darekodz <darek...@gmail.com>
>
>
>
>
>
>
>
> > I'm using instant django which have: Python 2.7.1 and Django 1.2.4.
> > When I add
>
> >    def __unicode__(self):
> >        return self.question
>
> > and
>
> >    def __unicode__(self):
> >        return self.choice
>
> > to my class I have errors when I want to restart shell, like:
>
> > C:\django\mysite>python manage.py syncdb
> > Traceback (most recent call last):
> >  File "manage.py", line 11, in <module>
> >    execute_manager(settings)
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \__init__.py"
> > , line 438, in execute_manager
> >    utility.execute()
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \__init__.py"
> > , line 379, in execute
> >    self.fetch_command(subcommand).run_from_argv(self.argv)
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \base.py", li
> > ne 191, in run_from_argv
> >    self.execute(*args, **options.__dict__)
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \base.py", li
> > ne 219, in execute
> >    self.validate()
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \base.py", li
> > ne 249, in validate
> >    num_errors = get_validation_errors(s, app)
> >  File "C:\django\Python27\lib\site-packages\django\core\management
> > \validation.p
> > y", line 35, in get_validation_errors
> >    for (app_name, error) in get_app_errors().items():
> >  File "C:\django\Python27\lib\site-packages\django\db\models
> > \loading.py", line
> > 146, in get_app_errors
> >    self._populate()
> >  File "C:\django\Python27\lib\site-packages\django\db\models
> > \loading.py", line
> > 61, in _populate
> >    self.load_app(app_name, True)
> >  File "C:\django\Python27\lib\site-packages\django\db\models
> > \loading.py", line
> > 78, in load_app
> >    models = import_module('.models', app_name)
> >  File "C:\django\Python27\lib\site-packages\django\utils
> > \importlib.py", line 35
> > , in import_module
> >    __import__(name)
> >  File "C:\django\mysite\..\mysite\polls\models.py", line 6
> >    def __unicode__(self):
> >    ^
> > IndentationError: unexpected indent
>
> > I don't know what's wrong - Can You help me?
>
> > --
> > 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
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to