These are chat archives for django/django

15th
Jun 2016
QbasicFan
@QbasicFan
Jun 15 2016 01:19
I was about to make a donation to django , but sorry I do not want to pay for djangogirls ...
Denis Krivak
@tetafro
Jun 15 2016 08:26
This message was deleted
Filip Figiel
@megapctr
Jun 15 2016 08:36
@QbasicFan I don't understand, whats the problem?
QbasicFan
@QbasicFan
Jun 15 2016 08:45
@megapctr There is no problem , I am learning django , I like it a lot ... I was about to donate but if part of my money will help found djangogirl , I ll wait until they have djangoForAnyOne or something that is not specific to just a part of the population ... Lets say I want to organize a group in my town to help and meet django enthusiasts I doubt they will help me (financially) ... But she I was a woman ... And it is condescend toward women in my opinion , we all need to be treated the same
Filip Figiel
@megapctr
Jun 15 2016 08:46
while I understand your concern, you should consider two things
1) they don't require you to have boobs in order to let you learn django on their page
2) there's a very serious problem about the lack of women in programming fields
QbasicFan
@QbasicFan
Jun 15 2016 08:57
Agree , but there is also a lack of ethnic minority ... But if a woman really wants to get in tech , it is way easier for her
I have seen instances in "blackGirlsCode" where they would not accept boys ... only girls ... :worried:
KwangYoun Jung
@initialkommit
Jun 15 2016 09:07
@QbasicFan, I think there is no gap btw male and female in the world of programming. Howerver there are definitely the unseen barries. #Djangogirls just wants women to have more opportunities to learn programming and to break the barriers. That’s it. no serious problem.
QbasicFan
@QbasicFan
Jun 15 2016 09:11
@initialkommit more women who code that would be great ! but give opportunities to any one who wants to code !!
Alexey Kalinin
@Alkalit
Jun 15 2016 09:28
Does can anyone suggest app/tool for django project stress testing?
sumit sinha
@sumitsinha91
Jun 15 2016 09:33
i also want to know this testing
Denis Krivak
@tetafro
Jun 15 2016 09:34
@Alkalit apache benchmark?
Alexey Kalinin
@Alkalit
Jun 15 2016 09:38
@tetafro I'm not much familiar with this kind of testing. Before, I tried yandex-tank, but it not impressed. So I'm just asking for popular tools.
Denis Krivak
@tetafro
Jun 15 2016 09:40
@Alkalit tried yandex-tank too, it's pretty comlicated and has a lot of functions. Apache benchmark just do a lot of requests and output log to console. Very simple. It runs just like this:
ab -c 20 -n 100 http://server.local/api/route/get/
So it's 100 requests (total), and 20 - concurrent requests at each moment
Alexey Kalinin
@Alkalit
Jun 15 2016 09:41
@tetafro Oh, ok. I will try it. Thx for advice.
Denis Krivak
@tetafro
Jun 15 2016 09:42
You can make POST or write output ready for GNUplot using different flags. Look at the manuals.
Phạm Trung Đức
@ducpt2
Jun 15 2016 12:05
Hi every one, i have a search form. i want to pagination result data of my search form by using basic pagination of django, but still cant do this. I search every where, i try some way but still can't work with me? Anyone have sugest, very thanks.
Filip Figiel
@megapctr
Jun 15 2016 12:15
what's the problem?
Phạm Trung Đức
@ducpt2
Jun 15 2016 13:20
i have 1 filter form, and i want to show data and form in 1 page, and have pagination, but pagination still not work
:(
i try some solution in stackoverflow but still not work :)
some help?
Filip Figiel
@megapctr
Jun 15 2016 13:54
I am sorry but you need to understand your problem and be able to explain it
If you expect to apply solution from SO to fix the problem you are very wrong
You should take a look at django's Paginator object and use that
Your form should probably be submitted via GET so you can redo the search on each page
Also the links on the pagination should add current form data to the querystring
Phạm Trung Đức
@ducpt2
Jun 15 2016 14:01
i have try submitted via GET, and links on the pagination i follow django document.
and i have 1 error: Reverse for 'result_search_study_GA' with arguments '('+', '+', '+', '+', '+', '+', 0)' and keyword arguments '{}' not found. 0 pattern(s) tried: []
Filip Figiel
@megapctr
Jun 15 2016 14:35
^ this is your error
you should append query string after the {% url %} part
Phạm Trung Đức
@ducpt2
Jun 15 2016 14:36
you mean url in template?
in my template i dont have {% url %}
Filip Figiel
@megapctr
Jun 15 2016 14:42
ok sorry so it must be the view then
either way, you should look for result_search_study_GA because that's where the error is
Phạm Trung Đức
@ducpt2
Jun 15 2016 14:43
def result_search_study_GA(request, and_or='', code_people='', name_people='', name_org='', code_org='', mailadress='', page=0)
and_or is choice field....
in my url.py
url(r'^show/(?P<and_or>\w+)/(?P<code_people>\w+)/(?P<name_people>\w+)/(?P<name_org>\w+)/(?P<code_org>\w+)/(?P<mailadress>\w+)/(?P<page>\d+)','upload_GA_LCA.views.result_search_study_GA'),
and i can't understand ('+', ...., 0, ) what it mean?
thank Filip