is there a way i can figure out which cache keys are being requested the most from my django app and more importantly where in the code they are being requested?
kvda has quit
kanja has quit
lapilofu has quit
jspiros has quit
paulproteus has quit
phantomcircuit joined the channel
phantomcircuit
rest api
framework or just do
seeking opinions and flamewars
paulproteus joined the channel
kvda joined the channel
lyrae joined the channel
Firass-z0r
Good day all, does anyone know how I can redirect a view to a model's change list view in the admin?
mattmcc: I just figured it out using django.core.urlresolvers.resolve()
mattmcc
You want reverse, not resolve.
Firass-z0r
and it gave me all the information I needed
correct
resolve gave me the information I needed to plug into reverse
or redirect in my case
mattmcc: thank you.
anth0ny has quit
tWoolie has quit
dkreuter has quit
EyePulp joined the channel
b3free has quit
bradleyayers
hi
JJMalina has quit
FunkyBob
hi
jamescarr has quit
nagle5000 has quit
EyePulp has quit
BabySuperman joined the channel
anth0ny joined the channel
BabySuperman
I'm about to go nuts -- I'm using the LFS ecommerce app and I'm literally deleting the folder it's in and django is still displaying the same page... how do I debug what path is getting executed/whats happening? How is it still displaying the page? I can't seem to update it
anth0ny_ joined the channel
bmispelon joined the channel
FunkyBob
BabySuperman: did you restart the task?
it's not like the program loads the code on every request... that'd be silly
BabySuperman
FunkyBob, like django runserver, ctrl + c, then runserver again?
FunkyBob
yep
BabySuperman
yep
SmileyChris has quit
FunkyBob
if you're using runserver, and deleting a file didn't change anything... you're not using that file
BabySuperman
I am going crazy, literally must be looking/editing the wrong directory if it's not even changing the result! but I swear im in ther ight spot
celloflax joined the channel
Yeah obviously, but how do I tell what it is using?
ewolverine joined the channel
anth0ny has quit
FunkyBob
where are you running runserver?
ewolverine
what is the best way to implement restful api
FunkyBob
ewolverine: there's some nice tools to make it easy, like TastyPie
for basic APIs it's simple enough...
it's all just requests, after all :)
cyberdelia joined the channel
the_rat joined the channel
Nervosa has quit
mritz has quit
hoot joined the channel
gbel has quit
tsr joined the channel
nagle5000 joined the channel
bradleyayers
FunkyBob:
send me that url you sent me ages ago
_Nord_ joined the channel
FunkyBob blinks
FunkyBob
sure... which one?
bradleyayers
decorator
your code
pattern
miaawh joined the channel
FunkyBob
which one?
bradleyayers
optional args
without needing to call
gnocchi perhaps
jroll has quit
FunkyBob
:/
bradleyayers
sigh
hurry up
FunkyBob
I think you may need to start over
hynek joined the channel
bradleyayers
:(
you know decorators?
FunkyBob
yes
bradleyayers
there's a pattern
@foo
@foo(bar='baz')
FunkyBob
ah, ok
bradleyayers
give me
i require
FunkyBob
yes... it's in my caching decorators... you use functools.partial
built up quite a tolerance over the years in this place [and others] :P
gongyiliao has quit
bradleyayers
yeah you don't bite easily
it's hard to antagonise you subtly
what pycon videos are the best
i.e. what should i watch
schinckel
DANCING ROBOTS!
ewolverine
hey there, how to create a restful api in django ?
bradleyayers
ewolverine: tastypie
hi schinckel
YoMomma joined the channel
bradleyayers has quit
FunkyBob
bradleyayers: "No, Bad Pony!" is a good one
ewolverine: you going to ignore brad, too?
schinckel
hey brad.
Sandern joined the channel
young001 has quit
tWoolie joined the channel
Austrian joined the channel
Austrian
hey, is anyone familiar w/ django & backbone js
BabySuperman
FunkyBob, I'm using the LFS "buildout" or whatever (i'm way new to django, so if i sound stupid -- I am.), so I have /bin/django.exe runserver -- but the code/template is in
tWoolie
Austrian: what do you want to know?
BabySuperman
./lfs_project/settings.py /etc.
when i try ./lfs_project/manage.py runserver it says gunicorn/etc. isnt installed... but it runs fine ./bin/dhango.exe runserver
bioshox joined the channel
Austrian
im trying to setup my backbone router w/ pushState
FunkyBob
BabySuperman: that "buildout" crap is one thing that really put me off LFS
BabySuperman: django.exe ??
tWoolie
FunkyBob: django.exe is the py2exe version of python
BabySuperman
yeah lol
Austrian
anytime I do a direct link .../profile or whatever
BabySuperman
FunkyBob, what's a good ecommerce option?
satchel looks cool but its waaay too new right?
tWoolie
BabySuperman: Satchmo
Austrian
django urls patterns trys to parse the url
FunkyBob
new?
bioshox
Hi guys, is the best way to create a registration/login/user account system from scratch or is there something out there thats much better??