abyss42: @action and @link decorators are specially for viewset class. Though they are limited to object handling. If you need something that doesn't take pk of object in you need to do custom router.
abyss42
object handling as in just GET, not updating the object?
jtiai
abyss42: Nope, @link and @action will generate urls like: /<base>/{pk}/action_name
moneydouble has quit
unbracketed has quit
MrBaboon joined the channel
northelks joined the channel
loic84 has quit
northelks has quit
loic84 joined the channel
magicflakes has left the channel
Kayra joined the channel
abyss42
jtiai: so i have to implement put method by myself when i use django rest framework? In tastypie it came out of the box
NotproN joined the channel
srijan4 joined the channel
Fanthomas90 has quit
jtiai
abyss42: Err... Of course you need to write code that does something... Or what you mean?
emorrow joined the channel
vovanbo joined the channel
abyss42
jtiai: rest framework seemed to do get post delete out of the box
jtiai
abyss42: default viewset router does have actions for basic CRUD.
bhitov joined the channel
Kayra has quit
abyss42
jtiai: yea thought so
jtiai
abyss42: rest framework also supports PATCH which is really nice, no need to send whole object over.
robbyoconnor joined the channel
vovanbo has quit
NotproN has quit
Fanthomas90 joined the channel
hoot has quit
arietis joined the channel
Gambit-
I know it's slightly OT, but anyone experienced in configuring graphite? I'm getting a long delay between when the stats get sent to carbon-cache, and when they show up in the webapp. Suggestions?
leonhaynes joined the channel
sucheta is now known as zz_sucheta
abarax joined the channel
magicflakes joined the channel
zlio joined the channel
dlogs has quit
dlogs joined the channel
vovanbo joined the channel
giarc has quit
flax joined the channel
vovanbo has quit
__machine joined the channel
booze2go joined the channel
McMAGIC--Copy joined the channel
hoot joined the channel
Recoil42 joined the channel
NotproN joined the channel
NotproN has quit
xaviern joined the channel
Recoil42
So, I'm trying to get some custom forms working, and getting CSRF errors up the wazoo. Anyone out there willing to provide a little help?
magicflakes
When you subclass a MPTTModel can you automatically get the tree manager?
unstable has quit
moneydouble joined the channel
Recoil42
I've added the token to the <form>, the middleware is active, and the cookie is getting generated.
But I still get a 403 CSRF error.
NotproN joined the channel
furoido is now known as furoido-kun
ragsagar joined the channel
hutch34 has quit
SimplyPanda joined the channel
emorrow has quit
zlio
recoil42, how are you rendering your template?
DevePy has quit
Recoil42
With render()
The form is custom, because I'm varying the number of fields with js.
It isn't generated with a Django Form.
aarcane_ joined the channel
Sarcasm has quit
zlio
are you using a csrf decorator?
try that
from django.views.decorators.csrf import csrf_protect
then use @csrf_protect on the desired view
vovanbo joined the channel
Cheekio
So what do people use now instead of django-registration?
mattmcc
Haven't found a reason to switch away from it yet.
aarcane has quit
__machine has left the channel
Cheekio
Fair enough. As long as it supports 1.7 I'll be happy.