Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-13 Thread 'Tom Evans' via Django users
On Fri, Nov 13, 2015 at 12:14 AM, James Schneider
 wrote:
> On Thu, Nov 12, 2015 at 5:10 AM, Jose Paul  wrote:
>>
>> I am just running DJango 1.8 test cases ,here is start of the error trace
>
> I suspect one of your tests is rendering a template. Do you have a reference
> to a template tag anywhere in your templates like {% subpackage.echo %}? I'm
> guessing if you visit the page that has that reference, it will also break
> in a similar manner. You probably need to add a {% load tag_library %} or
> whatever your template tags are called in your template before you call the
> template tag.

He is running the tests that are built in to django, not his own test
cases, specifically this one:

https://github.com/django/django/blob/master/tests/template_tests/syntax_tests/test_load.py#L41


OP: You will need to clarify how you are running the test suite. The
built in django tests depend on various settings, are you following
the instructions in:

https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/unit-tests/#quickstart

and

https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/unit-tests/#running-all-the-tests

?

Cheers

Tom

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAFHbX1JCtip4L%3D3hp6UMpLvRB4_KHquTYktGcabWBuD4ZgNguw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-12 Thread James Schneider
On Thu, Nov 12, 2015 at 5:10 AM, Jose Paul  wrote:

> I am just running DJango 1.8 test cases ,here is start of the error trace .
>
> =
> ERROR: test_load06 (template_tests.syntax_tests.test_load.LoadTagTests)
> --
> Traceback (most recent call last):
>   File
> "C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\utils.py",
> line 117, in inner
> func(self)
>   File "C:\Python27\lib\site-packages\django\test\utils.py", line 196, in
> inner
> return test_func(*args, **kwargs)
>   File
> "C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\utils.py",
> line 62, in inner
> func(self)
>   File
> "C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\syntax_tests\test_load.py",
> line 39, in test_load06
> output = self.engine.render_to_string('load06')
>   File "C:\Python27\lib\site-packages\django\template\engine.py", line
> 208, in render_to_string
>
>
I suspect one of your tests is rendering a template. Do you have a
reference to a template tag anywhere in your templates like {%
subpackage.echo %}? I'm guessing if you visit the page that has that
reference, it will also break in a similar manner. You probably need to add
a {% load tag_library %} or whatever your template tags are called in your
template before you call the template tag.

-James

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CA%2Be%2BciW9D_7dyXPPY-G4WDAzQt0EKRcvUYJXqR5CKQ6%2Bu0-huw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-12 Thread Jose Paul
I am just running DJango 1.8 test cases ,here is start of the error trace .

=
ERROR: test_load06 (template_tests.syntax_tests.test_load.LoadTagTests)
--
Traceback (most recent call last):
  File 
"C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\utils.py",
 
line 117, in inner
func(self)
  File "C:\Python27\lib\site-packages\django\test\utils.py", line 196, in 
inner
return test_func(*args, **kwargs)
  File 
"C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\utils.py",
 
line 62, in inner
func(self)
  File 
"C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\template_tests\syntax_tests\test_load.py",
 
line 39, in test_load06
output = self.engine.render_to_string('load06')
  File "C:\Python27\lib\site-packages\django\template\engine.py", line 208, 
in render_to_string
   

On Thursday, November 12, 2015 at 12:31:40 AM UTC+5:30, James Schneider 
wrote:
>
>
> On Nov 11, 2015 4:33 AM, "Jose Paul" <joseka...@gmail.com > 
> wrote:
> >
> >getting following error ,can someone help me to understand this 
> >
> > .
> > compiled_result = compile_func(self, token)
> >   File "C:\Python27\lib\site-packages\django\template\defaulttags.py", 
> line 1140, in load
> > (taglib, e))
> > TemplateSyntaxError: 'subpackage.echo' is not a valid tag library: 
> Template library subpackage.echo not found, tried 
> django.templatetags.subpackage.echo
> >
> > -- 
>
> What does the template line look like that it's throwing that error? Do 
> you have something like {% subpackage.echo %} in your template?
>
> -James
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/c4afae45-ee41-4aec-a391-728a2459faf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-11 Thread James Schneider
On Nov 11, 2015 4:33 AM, "Jose Paul" <josekavun...@gmail.com> wrote:
>
>getting following error ,can someone help me to understand this
>
> .
> compiled_result = compile_func(self, token)
>   File "C:\Python27\lib\site-packages\django\template\defaulttags.py",
line 1140, in load
> (taglib, e))
> TemplateSyntaxError: 'subpackage.echo' is not a valid tag library:
Template library subpackage.echo not found, tried
django.templatetags.subpackage.echo
>
> --

What does the template line look like that it's throwing that error? Do you
have something like {% subpackage.echo %} in your template?

-James

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CA%2Be%2BciXErm0JGwXh57%2By%3Db%2BaHkAbqLWe3_0nyjkpsq8aSMWQ%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-11 Thread Jose Paul
   getting following error ,can someone help me to understand this 

.
compiled_result = compile_func(self, token)
  File "C:\Python27\lib\site-packages\django\template\defaulttags.py", line 
1140, in load
(taglib, e))
TemplateSyntaxError: 'subpackage.echo' is not a valid tag library: Template 
library subpackage.echo not found, tried django.templatetags.subpackage.echo

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/6ac2c274-7335-4856-af73-0142d9c84ce7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.