send the template

On Sunday, 29 August 2021 at 08:12:37 UTC+5:30 du19sh...@gmail.com wrote:

>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/cor/learndj/
>
> Django Version: 3.0
> Python Version: 3.8.6
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'course',
>  'fees']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
> Template error:
> In template C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html, 
> error at line 2
>    '"' is not a registered tag library. Must be one of:
> admin_list
> admin_modify
> admin_urls
> cache
> i18n
> l10n
> log
> static
> tz
>    1 : <!DOCTYPE html>
>    2 :  {% load static "%} 
>    3 : <html lang="en">
>    4 :   <head>
>    5 :     <meta charset="UTF-8" />
>    6 :     <meta name="viewport" content="width=device-width, 
> initial-scale=1.0" />
>    7 :     <link rel="stylesheet" href="{% static 'css/style.css' %}" 
> />
>    8 :     <title>{{title}}</title>
>    9 :   </head>
>    10 : 
>    11 :   <body>
>    12 :     <h2>Start Learning {{cname}}</h2>
>
>
> Traceback (most recent call last):
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
>  
> line 1021, in find_library
>     return parser.libraries[name]
>
> During handling of the above exception ('"'), another exception occurred:
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\exception.py",
>  
> line 34, in inner
>     response = get_response(request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 115, in _get_response
>     response = self.process_exception_by_middleware(e, request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 113, in _get_response
>     response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\views.py", line 5, in learn_django
>     return render(request,'course/index.html')
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\shortcuts.py",
>  
> line 19, in render
>     content = loader.render_to_string(template_name, context, request, 
> using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 61, in render_to_string
>     template = get_template(template_name, using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 15, in get_template
>     return engine.get_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\backends\django.py",
>  
> line 34, in get_template
>     return Template(self.engine.get_template(template_name), self)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 143, in get_template
>     template, origin = self.find_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 125, in find_template
>     template = loader.get_template(name, skip=skip)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loaders\base.py",
>  
> line 29, in get_template
>     return Template(
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 156, in __init__
>     self.nodelist = self.compile_nodelist()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 194, in compile_nodelist
>     return parser.parse()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 477, in parse
>     raise self.error(token, e)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 475, in parse
>     compiled_result = compile_func(self, token)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
>  
> line 1078, in load
>     lib = find_library(parser, name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
>  
> line 1023, in find_library
>     raise TemplateSyntaxError(
>
> Exception Type: TemplateSyntaxError at /cor/learndj/
> Exception Value: '"' is not a registered tag library. Must be one of:
> admin_list
> admin_modify
> admin_urls
> cache
> i18n
> l10n
> log
> static
> tz
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/feb37526-6ace-42b2-af18-b054c9f39030n%40googlegroups.com.

Reply via email to