Sunday, October 15, 2017

Re: Can anyone help me in Template error?

What exactly is the error you are trying to fix?

Yingi Kem

On 14 Oct 2017, at 10:49 AM, utpalbrahma1995@gmail.com wrote:

my code that caused an error :
///
from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
# Create your views here.

def home(request) :
    return render(request,'login.html',context)
///
above code is in my views.py of my app name "accounts"
my project name "tutorial"
All my directories are :

tutorial->
     accounts
     tutorial
     manage.py
and accounts->
            migrations
            __pycache__
            templates
            admin.py
            apps.py
            __init__.py
            models.py
            tests.py
            urls.py
            views.py

and templates->
             accounts->
                     login.py

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e74b849c-1757-43ca-9bea-e5820cc06f85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment