il_: basically, access the response object like a dict
il_
I'm brand new to python
johnkevinmbasco
I had to do the solution on this thread - https://groups.google.com/forum/#!topic/django-... in order to make my custom User model work (I just added 1 new field w/c is gender) . I also checked the django repo on github and its still using the User model instead of using the meta.model . Is there a good reason why?
il_
could you give an example?
johnkevinmbasco
or is it really a bug?
FunkyBob
il_: resp = HttpResponse() ; resp['Content-Lenght'] = x
il_
thank you FunkyBob
FunkyBob
il_: though... why do you want to set it? the http middleware sets it for you
il_
idk what middleware is
I am setting it so a progress bar will track download progress
FunkyBob
erm
tiktuk has quit
not sure how that'll work...
il_
I send an ajax request to the back end, the size of the file uploaded is known but not the size of the file downloaded, content length needs to be set for that
right?
SegFaultAX joined the channel
FunkyBob
well, that would be totally abusing the content-length header...
tiktuk joined the channel
il_
well help me out here man
I'm not a backend guy. At least not with Django/python
johnnydiabetic has quit
Palash has quit
aberrant has quit
FunkyBob
well, you'll need to make repeated requests to get the current value...
Can someone translate this to English for me? qs_params = qs_params | q if qs_params else q
tiktuk has quit
heihei has quit
Niharika has quit
cewing has quit
rje has quit
synfinatic has quit
cewing joined the channel
Niharika joined the channel
FunkyBob
honestly: looks like someone's trying to build a combination of OR clauses
blah... netsplit
tiktuk joined the channel
bkuberek has quit
WalleXD has quit
b10n1k has quit
cppiii joined the channel
cppiii
I wanto have multi-thread to send mail a django view, does it just need to setup uwsgi + gevent for that task?
FunkyBob
cppiii: wait... start that again?
I think you missed a few steps
synfinatic joined the channel
rje joined the channel
moneydouble joined the channel
Palash joined the channel
WalleXD joined the channel
xaviern joined the channel
Synthead joined the channel
gimo83 joined the channel
cppiii
in a django view, I want to send a mail to self. But it seems it is slow peformace when more requests. Gevent looks like could solve the problem and uwsgi supports. So do I need to implement code in the view to using Gevent to send mail, or just enable it with uwsgi?
bwreilly has quit
brts joined the channel
FunkyBob
cppiii: typically that work is pushed into a background task processor
tiktuk has quit
donspaulding has quit
like celery
tiktuk joined the channel
ADzebic has quit
neataroni joined the channel
cppiii
FunkyBob: I had thought that too, but Gevent could be simpler so want to know is it possible solve by that.
Gambit- has quit
skaflem joined the channel
FunkyBob
it's possible to thread, too... but it's really recommended against
it hangs at "cloning into hg http.... to ./registration"
FreedomFighter has quit
Sonderblade has quit
_pr0t0type_ joined the channel
dfunckt joined the channel
ustunozgur has quit
anthony25 joined the channel
tiktuk has quit
ustunozg_ has quit
tiktuk joined the channel
thank god there is a gihub mirror
tsumego has quit
bkuberek joined the channel
Synthead has quit
neataroni has quit
bkuberek has quit
Yomi has quit
gsiddardha joined the channel
Sonderblade joined the channel
Rynomster has quit
PoliticsII joined the channel
tiktuk has quit
moneydouble has quit
_pr0t0type_ has quit
tiktuk joined the channel
emorrow joined the channel
poonesoul joined the channel
grafa joined the channel
w66 has quit
clime joined the channel
clime
Anyone experienced with uwsgi? I am getting "Memory error detected" even though I don't have "limit-as" option set currently. I did have it set but I removed it because of this error. I am still getting the error though.