Re: Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread l5x

On Dec 31, 12:19 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:

> Is 534 one past the last line of views.py?

Yes.

> I expect you have a syntax error
> such as a missing closing paren or bracket in your views.py file, which is
> causing the parser to keep scanning until it reaches the end of the file and
> then report the error on one line past the end of the file.  The error is
> probably near the end of the file.  For syntax errors you often have to look
> a little above where the error is reported to see what is really causing the
> problem.
>

Yes, I know about it, but I deleted my new parts of code and it is
still the same result. My Eclipse+PyDev doesn't show any mistakes as
well. If there is no other suggestions - I will just check my code
line by line to check what it may be.

Thank you.

Best regards,
l.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread Karen Tracey
On Dec 30, 2007 5:42 PM, l5x <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I get the following error:
>
> Django Version: 0.97-pre-SVN-6976
> Python Version: 2.5.1
> Exception Type: SyntaxError
> Exception Value:invalid syntax (views.py, line 534)
> Exception Location: /home/user/django_src/django/core/urlresolvers.py
> in get_callable, line 47
>
> Traceback:
> [snipped]
> Exception Type: SyntaxError at /
> Exception Value: invalid syntax (views.py, line 534)
>
> Interesting thing is that line (534) is out of range...
>

Is 534 one past the last line of views.py?  I expect you have a syntax error
such as a missing closing paren or bracket in your views.py file, which is
causing the parser to keep scanning until it reaches the end of the file and
then report the error on one line past the end of the file.  The error is
probably near the end of the file.  For syntax errors you often have to look
a little above where the error is reported to see what is really causing the
problem.

Karen

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Syntax Error (line out of range), get_callable, urlresolvers

2007-12-30 Thread l5x

Hello,

I get the following error:

Django Version: 0.97-pre-SVN-6976
Python Version: 2.5.1
Exception Type: SyntaxError
Exception Value:invalid syntax (views.py, line 534)
Exception Location: /home/user/django_src/django/core/urlresolvers.py
in get_callable, line 47

Traceback:
File "/home/user/django_src/django/core/handlers/base.py" in
get_response
  73. callback, callback_args, callback_kwargs =
resolver.resolve(request.path)
File "/home/user/django_src/django/core/urlresolvers.py" in resolve
  233. sub_match = pattern.resolve(new_path)
File "/home/user/django_src/django/core/urlresolvers.py" in resolve
  172. return self.callback, args, kwargs
File "/home/user/django_src/django/core/urlresolvers.py" in
_get_callback
  178. self._callback = get_callable(self._callback_str)
File "/home/user/django_src/django/utils/functional.py" in wrapper
  18. result = func(*args)
File "/home/user/django_src/django/core/urlresolvers.py" in
get_callable
  47. lookup_view = getattr(__import__(mod_name, {},
{}, ['']), func_name)

Exception Type: SyntaxError at /
Exception Value: invalid syntax (views.py, line 534)

Interesting thing is that line (534) is out of range...

When I'm trying to visit admin page, I get Syntax Error with the same
line and:

Traceback:
File "/home/user/django_src/django/core/handlers/base.py" in
get_response
  82. response = callback(request, *callback_args,
**callback_kwargs)
File "/home/user/django_src/django/contrib/admin/views/decorators.py"
in _checklogin
  66. return _display_login_form(request, message)
File "/home/user/django_src/django/contrib/admin/views/decorators.py"
in _display_login_form
  29. }, context_instance=template.RequestContext(request))
File "/home/user/django_src/django/template/context.py" in __init__
  102. for processor in get_standard_processors() +
processors:
File "/home/user/django_src/django/template/context.py" in
get_standard_processors
  78. mod = __import__(module, {}, {}, [attr])

What do you think about it?

Best regards,
l.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---