These are chat archives for django/django

26th
Jun 2018
Curtis Maloney
@funkybob
Jun 26 2018 00:17
did you use defer() on the queryset?
or only() ?
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 00:41
hey guys
what is the reason behind this problem ?

ViewDoesNotExist at /login/

Could not import gpgvote.gpgauth.views. Error was: No module named fields

ViewDoesNotExist at /login/

Could not import gpgvote.gpgauth.views. Error was: No module named fields
Curtis Maloney
@funkybob
Jun 26 2018 00:44
ah, this again...
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 00:46
yeah
i need solution :package:
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 00:57
yay i fixed it by installing that fucking fields module :D
pip install fields
Curtis Maloney
@funkybob
Jun 26 2018 00:57
from what I recall, your issue was it was a stale project, without pinned versions on it dependencies... and you needed to either find out which older versions worked... or updating your use of them
yeah, I don't think that's the right solution
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 00:58
ok ok
wait
i found updated version of this project
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 01:08
he is working with django 1.9.8 instead 1.2.1
:)
is it old too ?
Curtis Maloney
@funkybob
Jun 26 2018 01:13
no, that's much better
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 01:13
oh ok
can u execute it in your machine plz ?
i need to check if it can works as well
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 01:22
hey guys
how to add user and passwd and file in table in postgresql database ?
can u help me
Curtis Maloney
@funkybob
Jun 26 2018 01:41
you want something outside the normal django auth machinery, you mean?
you need to start learning to explain your problem first... before asking for help with your solution
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 01:41
ok
im sorry
not problem
i will follow a tutorial of "HOW TO ASK QUESTIONS"
thx for the info man ^^
Curtis Maloney
@funkybob
Jun 26 2018 01:45
a little context on what your actual goal is can help save a lot of time in working out how best to implement your solution
Abdelkader Belcaid
@p4p1lio_twitter
Jun 26 2018 01:46
hey man
this is my school project
thats why im too fast
sorry
im trying to be fast
to make it works as well pretty fast
Curtis Maloney
@funkybob
Jun 26 2018 01:46
and wasting a lot of time in doing so
ironic, no?
Sanjeev Sharma
@thesanjeevsharma
Jun 26 2018 10:05
Is there a way to pass arguments like {'message' : message } with HttpResponseRedirect? Its not working. I dont want to use render because after that when I refresh page it triggers form resubmission alert! :(
Curtis Maloney
@funkybob
Jun 26 2018 10:07
@thesanjeevsharma what would you have done with those arguments? a Redirect has no use for rendering, since it doesn't have any content
it just redirects the browser to another url
Sanjeev Sharma
@thesanjeevsharma
Jun 26 2018 10:08
On form submission I want display an alert that form sumitted, while rendering the same form page again.
Curtis Maloney
@funkybob
Jun 26 2018 10:08
have you looked at the messages app?
Sanjeev Sharma
@thesanjeevsharma
Jun 26 2018 10:09
Nope! where's that?
Documentaion
Curtis Maloney
@funkybob
Jun 26 2018 10:09
right
Sanjeev Sharma
@thesanjeevsharma
Jun 26 2018 10:09
Okay
Sanjeev Sharma
@thesanjeevsharma
Jun 26 2018 10:25
@funkybob Thanks man! It worked. Also, do you know how can I redirect to the same page in history after submission?
Chris Goodwin
@hannylicious
Jun 26 2018 12:46
Anyone have experience with pretty large projects with many models spanning across many applications and testing them? Just wondering how best to setup test environments without having to write tons and tons of code in each setUp method in my tests. Is there a way to create one setUp file and then just call that in the setUp function of each test?