#380 – AUGUST 6, 2019
View in Browser »
What You Need to Know to Manage Users in Django Admin
Learn what you need to know to manage users in Django admin. Out of the box, Django admin doesn’t enforce special restrictions on the user admin. This can lead to dangerous scenarios that might compromise your system.
REAL PYTHON
Why Your Mock Doesn’t Work
“Mocking is a powerful technique for isolating tests from undesired interactions among components. But often people find their mock isn’t taking effect, and it’s not clear why. Hopefully this explanation will clear things up.”
NED BATCHELDER
Try the Python IDE for Professional Developers
PyCharm provides smart code completion, code inspections, on-the-fly error highlighting and quick-fixes, along with automated code refactorings and rich navigation capabilities. Try it now →
JETBRAINSsponsor
Django Security Releases Issued: 2.2.4, 2.1.11 and 1.11.23
Addresses DoS possibilities in django.utils.text.Truncator
, strip_tags()
, django.utils.encoding.uri_to_iri()
, and a potential SQL injection issue in JSONField/HStoreField
.
DJANGOPROJECT.COM
First Steps With PySpark and Big Data Processing
Take your first steps with Spark, PySpark, and Big Data processing concepts using intermediate Python concepts.
REAL PYTHON
Improve Your Django Tests With Fakes and Factories
This blog post is an introduction into unit testing in Django. It offers an explanation on what are faker and factories and code examples illustrating them.
MARTIN ANGELOV
Memory Management in Python
This article describes memory management in CPython 3.6 and how it uses a pool allocator called PyMalloc
to speed-up memory operations and reduce fragmentation.
ARTEM GOLUBIN
Discussions
Python Jobs
Senior Python Developer (Austin, TX)
Backend and DataScience Engineers (London – Relocation & Visa Possible)
Software Engineering Lead (Houston, TX)
Software Engineer (Multiple US Locations)
Python Software Engineer (Munich, Germany)
Senior Back-End Web Developer (Vancouver, Canada)
Lead Data Scientist (Buffalo, NY)
Python Developer (Remote)
Sr. Python Engineer (Arlington, VA)
Senior Backend Software Engineer (Remote)
Articles & Tutorials
Exploring Mathematics With Matplotlib and Python
“Data Visualization can be a great tool for mathematical exploration and experimentation. In this article, I show you an example using Matplotlib and Python.”
ANTONIO CANGIANO
How to Make a Scatter Plot in Python Using Seaborn
Learn how to make scatter plots, adding trend lines, text, rotating the labels, changing color, and markers, among other things.
ERIK MARSJA
All-in-One Visual Testing and Review Platform
Visually test your web app, component library, or static site across browsers and responsive widths to catch UI bugs and ship with complete confidence. Get started for free →
PERCYsponsor
A Python Prompt Into a Running Process: Debugging With Manhole
“Sometimes your Python process will behave strangely, run slowly, or give you the wrong answers. And while hopefully you have logging, the logging isn’t always enough. So how do you debug this process?”
ITAMAR TURNER-TRAURING
11 Beginner Tips for Learning Python
In this course, you’ll see several learning strategies and tips that will help you jumpstart your journey towards becoming a rockstar Python programmer!
REAL PYTHONvideo
Image Classification With Transfer Learning and PyTorch
In this article you’ll go over the theory behind transfer learning and see how to carry out an example of transfer learning on Convolutional Neural Networks (CNNs) in PyTorch.
DAN NELSON
Implementing a Photo Stylizer in Python Using a QuadTree Algorithm
Learn how to write a Python script to create a quadtree based filter for stylizing photos.
RICHARD BARELLA
A Simple Explanation of the Softmax Function
What Softmax is, how it’s used, and how to implement it in Python.
VICTOR ZHOU
Python Basics: A Practical Introduction to Python 3
Make the leap from Beginner to Intermediate in Python with this complete curriculum freshly updated for Python 3.7. Includes exercises, interactive quizzes, and sample projects so you’ll always know what to focus on next. Get the book today and save 27% →
REAL PYTHONbooksponsor
Projects & Code
Xylene: Discord Bot That Fetches Weather Info, Reddit Posts, …
GITHUB.COM/XITHRIUS• Shared by Charles Buell
Events
Python Atlanta Meetup
August 8, 2019
MEETUP.COM
Python Miami
August 10 to August 11, 2019
PYTHONDEVELOPERSMIAMI.COM
DFW Pythoneers 2nd Saturday Teaching Meeting
August 10, 2019
MEETUP.COM
Python North East
August 14, 2019
PYTHONNORTHEAST.COM
pyCologne User Group Treffen
August 14, 2019
PYCOLOGNE.DE
PyCon Korea 2019
August 15 to August 19, 2019
PYCON.KR
Happy Pythoning!
This was PyCoder’s Weekly Issue #380.
View in Browser »
[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]