skip to main
|
skip to sidebar
Django talk
Wednesday, November 23, 2011
Re: Django : CSRF and variable handling in a view
no problem.
I also pass has_account=True in the view if the user is authenticated.
in this case in your template you can just do:
{% if user.is_authenticated and user.is_active %}
That is the advantage of using RequestContext.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2026
(5)
►
June
(1)
►
January
(4)
►
2025
(88)
►
November
(2)
►
October
(4)
►
September
(1)
►
July
(1)
►
June
(4)
►
May
(5)
►
April
(8)
►
March
(5)
►
February
(17)
►
January
(41)
►
2024
(915)
►
December
(109)
►
November
(73)
►
October
(139)
►
September
(132)
►
August
(19)
►
July
(19)
►
June
(7)
►
May
(7)
►
April
(6)
►
March
(117)
►
February
(285)
►
January
(2)
►
2023
(624)
►
November
(11)
►
October
(52)
►
September
(14)
►
August
(35)
►
July
(55)
►
June
(54)
►
May
(134)
►
April
(114)
►
March
(122)
►
February
(9)
►
January
(24)
►
2022
(1775)
►
December
(61)
►
November
(273)
►
October
(216)
►
September
(393)
►
August
(274)
►
July
(169)
►
June
(32)
►
May
(7)
►
April
(6)
►
March
(24)
►
February
(173)
►
January
(147)
►
2021
(2886)
►
December
(60)
►
November
(27)
►
October
(45)
►
September
(24)
►
August
(31)
►
July
(193)
►
June
(603)
►
May
(442)
►
April
(387)
►
March
(435)
►
February
(348)
►
January
(291)
►
2020
(7609)
►
December
(465)
►
November
(218)
►
October
(420)
►
September
(546)
►
August
(593)
►
July
(659)
►
June
(759)
►
May
(1010)
►
April
(702)
►
March
(701)
►
February
(873)
►
January
(663)
►
2019
(7763)
►
December
(562)
►
November
(638)
►
October
(612)
►
September
(633)
►
August
(651)
►
July
(604)
►
June
(635)
►
May
(744)
►
April
(714)
►
March
(682)
►
February
(600)
►
January
(688)
►
2018
(7433)
►
December
(464)
►
November
(772)
►
October
(705)
►
September
(518)
►
August
(752)
►
July
(720)
►
June
(609)
►
May
(691)
►
April
(488)
►
March
(492)
►
February
(488)
►
January
(734)
►
2017
(5842)
►
December
(509)
►
November
(470)
►
October
(343)
►
September
(474)
►
August
(436)
►
July
(393)
►
June
(504)
►
May
(617)
►
April
(506)
►
March
(553)
►
February
(494)
►
January
(543)
►
2016
(5793)
►
December
(439)
►
November
(406)
►
October
(376)
►
September
(347)
►
August
(653)
►
July
(489)
►
June
(446)
►
May
(496)
►
April
(513)
►
March
(454)
►
February
(666)
►
January
(508)
►
2015
(7015)
►
December
(413)
►
November
(525)
►
October
(475)
►
September
(455)
►
August
(551)
►
July
(596)
►
June
(530)
►
May
(630)
►
April
(639)
►
March
(789)
►
February
(602)
►
January
(810)
►
2014
(8097)
►
December
(702)
►
November
(789)
►
October
(753)
►
September
(740)
►
August
(759)
►
July
(704)
►
June
(631)
►
May
(754)
►
April
(529)
►
March
(537)
►
February
(580)
►
January
(619)
►
2013
(10100)
►
December
(516)
►
November
(635)
►
October
(836)
►
September
(742)
►
August
(862)
►
July
(939)
►
June
(848)
►
May
(967)
►
April
(990)
►
March
(984)
►
February
(862)
►
January
(919)
►
2012
(12829)
►
December
(824)
►
November
(874)
►
October
(980)
►
September
(1063)
►
August
(1032)
►
July
(1122)
►
June
(1109)
►
May
(1254)
►
April
(1201)
►
March
(1189)
►
February
(1133)
►
January
(1048)
▼
2011
(14283)
►
December
(872)
▼
November
(1050)
Re: Unable to load application to production envir...
Unable to load application to production environment
Django admin URL redirect problem in admin page
Re: Using request.POST.copy() to get hidden field ...
Using request.POST.copy() to get hidden field in h...
Re: converting a large site to Django
LocalWiki, a crazy-easy-to-use django-based geogra...
Two Servers plus one Load Balancer Vip Advice for DB?
RE: MS Access integration with DJango through conv...
Feature Flipping with Gargoyle and Waffle
django south
Re: Website Statistics - What should I use to have...
Re: Website Statistics - What should I use to have...
Re: Website Statistics - What should I use to have...
Website Statistics - What should I use to have Goo...
Re: unit tests and 'system' tests with history
Re: Django or python question about classes
Re: A view associated with a lot of urls
Re: Retrieve object model admin userid & password?
Re: Retrieve object model admin userid & password?
Retrieve object model admin userid & password?
Re: Cache timeout
Re: What server configuration should I use for a D...
Fixture migrations using South?
Re: converting a large site to Django
Re: converting a large site to Django
Re: converting a large site to Django
Re: Cache timeout
converting a large site to Django
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
Re: Process management with Supervisord
Creating an app for recurring features
Re: A view associated with a lot of urls
Re: Process management with Supervisord
Try to follow the Tutorial "Wiki in 20 minutes" on...
Process management with Supervisord
Re: MS Access integration with DJango through conv...
Re: A view associated with a lot of urls
Re: Delete a many to many field who is in another ...
Re: A view associated with a lot of urls
Re: Delete a many to many field who is in another ...
Re: What server configuration should I use for a D...
Re: Delete a many to many field who is in another ...
Delete a many to many field who is in another table
save_model on django.contrib.auth.admin.UserAdmin ...
unit tests and 'system' tests with history
Re: django tests. where to create users
Re: django tests. where to create users
Re: A view associated with a lot of urls
[ANN]: FeinCMS 1.5.0.pre1
Re: A view associated with a lot of urls
Re: Nginx - How to configure the virtual.conf to s...
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
MS Access integration with DJango through conversi...
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
Re: Nginx - How to configure the virtual.conf to s...
Nginx - How to configure the virtual.conf to serve...
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
Re: A view associated with a lot of urls
Re: Bulk import of data
Re: Bulk import of data
Re: Bulk import of data
Re: Newbie question on re-defining an XML schema i...
Re: Newbie question on re-defining an XML schema i...
Newbie question on re-defining an XML schema in my...
Re: What server configuration should I use for a D...
Re: Referring to same model records as a parent
Re: What server configuration should I use for a D...
Re: Referring to same model records as a parent
Admin, Save
Re: Customized authentication backend.
Re: django tests. where to create users
Re: django tests. where to create users
A view associated with a lot of urls
Customized authentication backend.
Re: Boolean test on queryset
Re: better datepicker
Re: Simple task dispatching (How heavy is celery +...
Re: django tests. where to create users
Re: Simple task dispatching (How heavy is celery +...
Re: django tests. where to create users
hasattr() and model attrname for foreign keys appe...
Re: Boolean test on queryset
Re: Security design questions
Re: Boolean test on queryset
Boolean test on queryset
Referring to same model records as a parent
Re: django.conf.urls import question
better datepicker
What server configuration should I use for a Djang...
Re: Django or python question about classes
Django or python question about classes
Re: Large Queryset Calculation In Background?
Re: Large Queryset Calculation In Background?
Re: Simple task dispatching (How heavy is celery +...
Re: Large Queryset Calculation In Background?
Re: Large Queryset Calculation In Background?
Re: Large Queryset Calculation In Background?
Re: Security design questions
Re: Simple task dispatching (How heavy is celery +...
Re: Simple task dispatching (How heavy is celery +...
Re: Simple task dispatching (How heavy is celery +...
Re: Simple task dispatching (How heavy is celery +...
Simple task dispatching (How heavy is celery + Rab...
Re: django testing. random test order with some 'd...
Re: Bulk import of data
after making one choice in the list, the model ins...
Security design questions
thank you South
TemplateSyntaxError, Could not parse the remainder
Re: Need to process uploaded files into database e...
Re: Need to process uploaded files into database e...
Re: Need to process uploaded files into database e...
Re: Need to process uploaded files into database e...
Re: Need to process uploaded files into database e...
Re: django testing. random test order with some 'd...
Re: Need to process uploaded files into database e...
Need to process uploaded files into database entri...
django testing. random test order with some 'depen...
django tests. where to create users
Re: [ date and null value ]
Re: Bulk import of data
Re: How to do some additional process while saving...
►
October
(1125)
►
September
(1004)
►
August
(1316)
►
July
(1292)
►
June
(1275)
►
May
(1261)
►
April
(1157)
►
March
(1375)
►
February
(1232)
►
January
(1324)
►
2010
(9629)
►
December
(1175)
►
November
(1257)
►
October
(1215)
►
September
(1287)
►
August
(1393)
►
July
(1348)
►
June
(1382)
►
May
(572)
About Me
faw
View my complete profile
No comments:
Post a Comment