run, as it's not immediately
> obvious exactly what is being passed to the template. It's obvious what's
> being passed from the tiny view you've got there, but as your views grow,
> this will become a problem.
>
The error is solved now, and I will keep your advice about locals() in
my mind.
from django.template import RequestContext
return render_to_response('abook_view.html',
locals(),context_instance=RequestContext(request))
this is what I am using. Is it ok ?
--
Harbhag Singh Sohal
http://harbhag.wordpress.com
--
You received this message because you are subscribed
I am also using {% csrf_token %}, even then I am getting error.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.csrf.CsrfResponseMiddleware',
)
Above is my settings.py file, even then I am getting the CSRF
verification failure error.
--
Harbhag Singh Sohal
http://harbhag.wordpress.com
--
You received this message because you are subscribed to the Google Groups
"Django
> When you pass apples, you cannot expect oranges :)
Well, I got your point. I just ignored the whole point of inheritance
and was expecting some magic to happen.
--
Harbhag Singh Sohal
http://harbhag.wordpress.com
--
You received this message because you are subscribed to the Google Gro
I am having base.html template as follows:
{% block title %}{% endblock %}
Sohal Corporations Official Site
{% block content%}{% endblock %}
{% block footer %}{% endblock %}
Then I am having title.html template as follows:
{% extends "base.html" %}
> Please read http://www.djangobook.com/ for the basics; understanding how the
> models, views and templates work.
Thanks, I found the answer there.
--
Harbhag Singh Sohal
http://harbhag.wordpress.com
--
You received this message because you are subscribed to the Google Groups
"D
I am new to python and django. I want to know about how can I display
items of python list in browser using django template.
Suppose I have list days = ['sunday','monday','tuesday']
Which variable I need to define in views.py
Please tell me part of code I need to write in django template.
Thanks
On Mon, Aug 30, 2010 at 10:14 AM, Kenneth Gonsalves <law...@au-kbc.org>wrote:
> On Mon, 2010-08-30 at 10:06 +0530, Harbhag Singh Sohal wrote:
> > I have read tutorial / documentation
>
> no use reading it - please do the tutorial step by step until you make a
> complete
only want get to values from form, store in database, then add
these values
and finally store the output in database
Thanks
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
You received this message because you are subscribed to the Google Groups
"Django users" grou
On Mon, Aug 30, 2010 at 7:21 AM, Kenneth Gonsalves <law...@au-kbc.org>wrote:
> On Sun, 2010-08-29 at 22:50 +0530, Harbhag Singh Sohal wrote:
> > me try use request.POST function to get the value, but me also fail to
> > get the form values.
> >
> > Please suggest
On Sun, Aug 29, 2010 at 11:22 PM, Harbhag Singh Sohal <
harbhag.so...@gmail.com> wrote:
>
>
> On Sun, Aug 29, 2010 at 10:56 PM, Steve Holden <holden...@gmail.com>wrote:
>
>> On 8/29/2010 1:20 PM, Harbhag Singh Sohal wrote:
>> > i am the new user of Django
On Sun, Aug 29, 2010 at 10:56 PM, Steve Holden <holden...@gmail.com> wrote:
> On 8/29/2010 1:20 PM, Harbhag Singh Sohal wrote:
> > i am the new user of Django, i try the tutorials of django wesite
> > http://docs.djangoproject.com/en/1.2/intro/tutorial01/
> &g
text fields and store
in database.
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from
14 matches
Mail list logo