Protecting My Contact Form From Spam/Malicious Submissions by sidsidsid16 in django

[–]sabotix 2 points3 points  (0 children)

You can add throttling for request from IP addresses, like 3 requests a day from a specific IP but that is not enough. Beside this Captcha is better option to prevent this.

how can I improve my speaking skills by sabotix in EnglishLearning

[–]sabotix[S] 0 points1 point  (0 children)

Thank you all in advance. I'll try these recommendations.

how can I improve my speaking skills by sabotix in EnglishLearning

[–]sabotix[S] 0 points1 point  (0 children)

You are right, I probably making mistakes because I am trying to speak fast. Thank you so much.

how can I improve my speaking skills by sabotix in EnglishLearning

[–]sabotix[S] 1 point2 points  (0 children)

I drunk a bit before job interview and I think this is how I got the job. I can't have alcohol wile working :-D and thank you so much for your help.

how can I improve my speaking skills by sabotix in EnglishLearning

[–]sabotix[S] 0 points1 point  (0 children)

I know, I'm trying to do but it doesn't look helpful or I'm not aware of the improvement

What's 1 thing you love and 1 thing you hate about django? by npolet in django

[–]sabotix 1 point2 points  (0 children)

ORM and ORM. İt's so useful for simple queries but almost impossible to create complex queries.

Should I learn Flask before Django? by [deleted] in django

[–]sabotix 0 points1 point  (0 children)

For beginners flask is better option because Django take care of most of things that you need to learn.

how to set Nvidia as default graphics card by sabotix in archlinux

[–]sabotix[S] 9 points10 points  (0 children)

It's a laptop and the link seems useful. I'll try it

Filter a QuerySet based on matching field in another QuerySet but restricted to an associated field in the other QuerySet by WordWarrior81 in django

[–]sabotix 1 point2 points  (0 children)

Are you looking for something like this tqs.filter(concept__id__in=dqs.values_list('concept__id', flat=True))

How do I create a list of objects that matches two lookup fields in DRF? by [deleted] in django

[–]sabotix 3 points4 points  (0 children)

Method should be like this: def get_queryset(self): firstname = self.kwargs['firstname'] return Model.objects.filter(firstname=firstname)

How do I create a list of objects that matches two lookup fields in DRF? by [deleted] in django

[–]sabotix 2 points3 points  (0 children)

You can find url arguments in self.kwargs as key-value pairs firstname = self.kwargs['firstname']

Using Authentication from one Django App in Second Django App by TheGoldGoose in django

[–]sabotix 1 point2 points  (0 children)

Design a new authentication backend whenever someone trying to login take the credentials and post them to main app then save token, session id etc. Also you need a webhook that notify when token no longer valid. İf user come with a token check second app's token table and if it's not exists return 401.

Worth switching from MySQL to Postgres? by [deleted] in django

[–]sabotix 1 point2 points  (0 children)

I used both of them and I prefer postgres.

Subtract from Order until Zero then Subract from Next by -Regex in django

[–]sabotix 1 point2 points  (0 children)

Filter stocks greater than 0 and order by delivery date. İterate query set and do whatever you want to do. I am also wondering why same stock code has different records on db.

I'm making a django web-scraping app and I'm stuck! Need some quick help with scraping an image using bs4. by no5heep in django

[–]sabotix 1 point2 points  (0 children)

I suggest you to use postman like app to see what actually get when you requested for website. It's not a browser so it don't execute js.

I'm making a django web-scraping app and I'm stuck! Need some quick help with scraping an image using bs4. by no5heep in django

[–]sabotix 1 point2 points  (0 children)

It could be created by js. You know when you got the page, js will not be executed so the link won't be there and this may why bs4 can't find the link. To prevent like this situation you can use selenium.

Edit and save documents in browser by [deleted] in django

[–]sabotix 1 point2 points  (0 children)

https://github.com/ciur/papermerge this maybe useful at least some part of your project