I'll keep this as short as possible. When I input python manage.py sql polls, i get the following error:--C:\Python27\Lib\site-packages\django\bin\mysite>python manage.py sql polTraceback (most recent call last):File "manage.py", line 10, in <module>execute_from_command_line(sys.argv)File "C:\Python27\lib\site-packages\django\core\management\__init__.py443, in execute_from_command_lineutility.execute()File "C:\Python27\lib\site-packages\django\core\management\__init__.py382, in executeself.fetch_command(subcommand).run_from_argv(self.argv)File "C:\Python27\lib\site-packages\django\core\management\base.py", lin run_from_argvself.execute(*args, **options.__dict__)File "C:\Python27\lib\site-packages\django\core\management\base.py", lin executeself.validate()File "C:\Python27\lib\site-packages\django\core\management\base.py", lin validatenum_errors = get_validation_errors(s, app)File "C:\Python27\lib\site-packages\django\core\management\validation.e 30, in get_validation_errorsfor (app_name, error) in get_app_errors().items():File "C:\Python27\lib\site-packages\django\db\models\loading.py", lineget_app_errorsself._populate()File "C:\Python27\lib\site-packages\django\db\models\loading.py", line_populateself.load_app(app_name, True)File "C:\Python27\lib\site-packages\django\db\models\loading.py", lineload_appmodels = import_module('.models', app_name)File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 3port_module__import__(name)File "C:\Python27\Lib\site-packages\django\bin\mysite\polls\models.py"0votes = models.IntergerField()^IndentationError: unindent does not match any outer indentation level
So here is my settings.py "Installed apps"
INSTALLED_APPS = ('django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.sites','django.contrib.messages','django.contrib.staticfiles',# Uncomment the next line to enable the admin:# 'django.contrib.admin',# Uncomment the next line to enable admin documentation:# 'django.contrib.admindocs','polls',)
And here is my models.py:
from django.db import models
class Poll(models.Model):question = models.CharField(max_length=200)pub_date = models.DateTimeField('date published')class Choice(models.Model):poll = models.ForeignKey(Poll)choice = models.CharField(max_length=200)votes = models.IntergerField()
I am running python 2.7 and Django 1.4.3 on Windows 8Thanks!!!!
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/e7XydlWTUVgJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
On Dec 26, 2012 5:56 PM, <rktu...@gmail.com> wrote:
>
> This is strange - the original code is indented correctly; however, the copy/paste shows incorrect indentation.
This could happen if you mix spaces andás tabs. Read some introductory Python material to know more why this is a bad idea and a basic mistake.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Gerald Klein DBA
Arch Awesome, Ranger & Vim the coding triple threat.
Linux registered user #548580