self.assertTemplateUsed bug?

2018-03-28 Thread Mateusz Kurowski
Ive created a sample repository to demonstrate what i think is a bug. https://github.com/seospace/djangorendertostringtest < its fully usable django project, I encountered that bug again in my new project... its pretty frustrating... and this time without "render_to_string" i cant verify used

Django admin without Groups and Permissions. Can "groups and permissions" tables become a bottleneck?

2018-04-03 Thread Mateusz Kurowski
I don't need groups and permissions, but i want to use django admin. Ive created this simple AbstractSuperUser that looks to solve this case. But i wonder if thats best idea. Can "groups and permissions" tables become a bottleneck in the future even if i dont use any groups and permissions on a

Simple Django package - helps you send emails and activation emails from views.

2018-04-05 Thread Mateusz Kurowski
Hello! I am just learning Python and Django, as an exercise for: django views, python packaging, travis, tox, sphinx i made this simple repository with 2 classes that helps you send emails and activation-emails using django builtins. No extra dependencies Tested using hypothesis.. https://gith

Re: Storing lists from api into database

2018-04-06 Thread Mateusz Kurowski
Maybe you should read the documentation first ? :)) 2018-04-06 22:03 GMT+02:00 Mukesh Jha : > My main project is to collect and show the results from news site of a > particular topic. I have use the guardian's api and I have been given 4 > keywords. If I click on any one of the keyword, I need t

Re: What were your best resources in learning programming, python, ultimately django?

2018-04-09 Thread Mateusz Kurowski
https://www.youtube.com/watch?v=HTLu2DFOdTg&list=PLRVdut2KPAguz3xcd22i_o_onnmDKj3MA https://www.youtube.com/watch?v=7lmCu8wz8ro&list=PLOAwbpVBkzASOH-SzAq8NMI7H-Eo-Vql8 https://www.youtube.com/watch?v=tkwZ1jG3XgA&list=PLOAwbpVBkzAQtFNxWpbeDAGRacBn6aL7t&index=7 https://www.youtube.com/watch?v=Zo5q48B

How do you handle removal of unwanted content (urls, html) from user input?

2018-04-11 Thread Mateusz Kurowski
I would like to remove URLs and HTML from user input. For HTML there is *bleach *library that someone linked today on IRC. I made a little formmixin for this. But now i wonder, maybe you have better ways to do it? Some ready solutions? I would like to strip al