I am following the Writing your first Django app, part 2 for version 1.5. I need to change the “Django administration” at the top of each admin page. I copied django/contrib/admin/templates/admin/base_site.html to /path/to/mysite/templates/admin/base_site.html and added this path under TEMPLATE_DIRS in settings.py. I changed 'Django administration' to another name in base_site.html, but there are no changes in admin page. Am I
missing something?
demet8 has quit
aarcane
is the django website available as a downloadable project? I'd like to see how it's pieced together
jaddison has quit
anth0ny has quit
val_erie, you shouldn't need to add it to TEMPLATE_DIRS
val_erie, just the /path/to/mysite/templates/ should be in TEMPLATE_DIRS
why the latest version of django doesn't have TEMPLATE_CONTEXT_PROCESSOR in settings.py?
SmileyChris
silverfix: it's still in django.conf.global_settings
silverfix: you can extend it by importing from there
dray3 has quit
askhader
the decarator @transaction.atomic produces 'module' object has no attribute 'atomic'
Has anyone encountered this before?
SmileyChris
askhader: because that's new in the development version
askhader
Ah
What about with.transaction.atomc(): ?
BlueDreams joined the channel
SmileyChris
what about it?
silverfix
SmileyChris: thank you
askhader
Rather, what subset of the transaction module is available to me if any?
colinbit_ joined the channel
silverfix
SmileyChris: but does is this documented?
BlueDreams has quit
colinbit_ has quit
void has quit
freannrak has quit
val_erie has quit
Katharsis
Is it possible to use HttpResponseRedirect to changing views and returning file (mimetype) at the same time?
askhader
SmileyChris: So I wrapped the entire view in a transaction.commit_on_success - and I am still observing the delay
SmileyChris
askhader: certainly seem odd
crazydiamond has quit
silverfix: the official way is just to paste the tuple in completely in your settings file if you need it
cihann joined the channel
anth0ny joined the channel
apollo13 has quit
Katharsis
?
ben174 joined the channel
anth0ny_ joined the channel
johnraz has quit
Scottyob joined the channel
anth0ny has quit
joshfinnie joined the channel
aarcane
So I'm stumped now trying to use a RequestContext to sanitize a csrf protected form. I need to get the value of the variable choice from the POST data, and I'm led to believe that I have to pass it through a RequestContext to ensure it's protected by CSRF, but I can't figure it out, and I can't find documentation to do anything OTHER THAN pass form data back out to a template.
lmm joined the channel
anth0ny_ has quit
silverfix has quit
SuperDMP has quit
hwrd|work has quit
bergensk has quit
m8 has quit
luanp joined the channel
seocam joined the channel
DarkSector joined the channel
so I think what I'm looking for is an example of validating the csrf token inside the view before processing the data somehow.
JJMalina has quit
JJMalina joined the channel
fission6 has quit
piggybox joined the channel
liquid-silence has quit
octarine has quit
Tribaal joined the channel
cellofellow has quit
Never mind, It appears that since I have the middlewear enabled, it's automatic and my view doesn't require any additional modification.