Blog

Page 142 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for "pip" is not recognized as an internal or external command
pippythonwindows

"pip" is not recognized as an internal or external command

Published on September 2, 2023

šŸ“ How to Fix 'pip' is not recognized as an internal or external command šŸ Are you getting the error message "'pip' is not recognized as an internal or external command, operable program or batch file" while trying to install Django (or any other package

Cover Image for Can I access constants in settings.py from templates in Django?

Can I access constants in settings.py from templates in Django?

Published on September 2, 2023

## šŸ’” Can I access constants in `settings.py` from templates in Django? If you've ever found yourself in a situation where you needed to access constants defined in your `settings.py` file from your Django templates, you're not alone. This can be a commo

Cover Image for How to remove carriage returns from output of string?
javascript

How to remove carriage returns from output of string?

Published on September 2, 2023

šŸ“ How to Remove Carriage Returns from Output of a String šŸ“ Are you struggling with removing carriage returns from the output of a string? Don't worry, you're not alone! This can be a common issue, especially when working with CMS platforms like WordPres

Cover Image for No module named pkg_resources
pippythonvirtualenv

No module named pkg_resources

Published on September 2, 2023

# šŸ˜• Resolving the "No module named pkg_resources" Error in Python So you're trying to install your Django app on a dev server and you encounter the dreaded "No module named pkg_resources" error. This error typically occurs when the package `pkg_resources

Cover Image for Set up a scheduled job?
python

Set up a scheduled job?

Published on September 2, 2023

šŸ“ **Title**: How to Schedule Jobs in Django without Breaking a Sweat šŸ‘‹ Hey there, fellow Django developer! šŸ‘Øā€šŸ’» Have you ever found yourself in a situation where you needed to run periodic tasks in your app without relying on external services or ted

Cover Image for How to define two fields "unique" as couple

How to define two fields "unique" as couple

Published on September 2, 2023

# How to Define Two Fields as "Unique" as a Couple in Django Are you faced with the challenge of defining a couple of fields as unique in Django? šŸ¤” Specifically, are you struggling to ensure that no more than one volume number is associated with the same

Cover Image for Separation of business logic and data access in django
python

Separation of business logic and data access in django

Published on September 2, 2023

# Separation of Business Logic and Data Access in Django Are you tired of seeing a cluttered and confusing `models.py` file in your Django project? Do you find it frustrating that your model, which is supposed to handle database-related tasks, is also res

Cover Image for How to filter empty or NULL names in a QuerySet?
filternull

How to filter empty or NULL names in a QuerySet?

Published on September 2, 2023

šŸ” How to Filter Empty or NULL Names in a QuerySet? šŸ¤” Are you struggling to find a way to filter empty or NULL names in a QuerySet? 😫 Don't worry, you're not alone! Many developers face this common issue when working with relational databases. In this b

Cover Image for Where can I find the error logs of nginx, using FastCGI and Django?

Where can I find the error logs of nginx, using FastCGI and Django?

Published on September 2, 2023

## šŸ’”šŸ” Finding the Error Logs in Nginx with FastCGI and Django Are you running Django with FastCGI and nginx? šŸ‘©ā€šŸ’» Struggling to locate the error logs. šŸ“‚ Fear not! We've got you covered. In this post, we'll show you where you can find those elusive err

Blog | Matheus Mello