Hi Norman, But if I have an empty file, models.py, that should thrown an error.
Thanks, Kartik On Sep 17, 1:45 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Karthik Krishnan wrote: > > The stack trace is given below > > > Traceback (most recent call last): > > File "manage.py", line 11, in <module> > > execute_manager(settings) > > File "c:\tools\Python25\Lib\site-packages\django\core\management > > \__init__.py", > > line 340, in execute_manager > > utility.execute() > > File "c:\tools\Python25\Lib\site-packages\django\core\management > > \__init__.py", > > line 295, in execute > > self.fetch_command(subcommand).run_from_argv(self.argv) > > File "c:\tools\Python25\Lib\site-packages\django\core\management > > \base.py", lin > > e 77, in run_from_argv > > self.execute(*args, **options.__dict__) > > File "c:\tools\Python25\Lib\site-packages\django\core\management > > \base.py", lin > > e 87, in execute > > translation.activate('en-us') > > File "c:\tools\Python25\Lib\site-packages\django\utils\translation > > \__init__.py > > ", line 73, in activate > > return real_activate(language) > > File "c:\tools\Python25\Lib\site-packages\django\utils\translation > > \__init__.py > > ", line 43, in delayed_loader > > return g['real_%s' % caller](*args, **kwargs) > > File "c:\tools\Python25\Lib\site-packages\django\utils\translation > > \trans_real. > > py", line 209, in activate > > _active[currentThread()] = translation(language) > > File "c:\tools\Python25\Lib\site-packages\django\utils\translation > > \trans_real. > > py", line 198, in translation > > default_translation = _fetch(settings.LANGUAGE_CODE) > > File "c:\tools\Python25\Lib\site-packages\django\utils\translation > > \trans_real. > > py", line 181, in _fetch > > app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), > > appname[p+1: > > ]) > > File "c:\tools\Python25\Lib\site-packages\django\contrib\admin > > \__init__.py", l > > ine 1, in <module> > > from django.contrib.admin.options import ModelAdmin, HORIZONTAL, > > VERTICAL > > File "c:\tools\Python25\Lib\site-packages\django\contrib\admin > > \options.py", li > > ne 5, in <module> > > from django.contrib.contenttypes.models import ContentType > > File "c:\tools\Python25\Lib\site-packages\django\contrib\contenttypes > > \models.p > > y", line 1, in <module> > > from django.db import models > > File "c:\tools\Python25\Lib\site-packages\django\db\models > > \__init__.py", line > > 5, in <module> > > from django.db.models.query import Q > > File "c:\tools\Python25\Lib\site-packages\django\db\models > > \query.py", line 7, > > in <module> > > from django.db.models.fields import DateField > > File "C:\tools\Python25\lib\site-packages\django\db\models\fields > > \__init__.py" > > , line 666 > > class DecimalField(max_digits = 32, decimal_places = > > 0)IntegerField(Field): > > ^ > > SyntaxError: invalid syntax > > > The stack trace does not define which line has an incorrect syntax. I > > am having this error even there is nothing in the models.py file. > > It says it happened on line 666 of > C:\tools\Python25\lib\site-packages\django\db\models\fields\__init__.py > just at the equals sign "max_digits = 32". > > -- > Norman J. Harman Jr. > Senior Web Specialist, Austin American-Statesman > ___________________________________________________________________________ > Get off the sidelines and huddle up with the Statesman all season long > for complete high school, college and pro coverage in print and online! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---