Python → Step 1: Setting Up Your Environment for Python Programming
Setting up your development environment is the crucial first step on your journey to becoming a proficient Python programmer. In this article, we'll guide you through the process of configuring your system to work with Python, from installing the Python …
Python → Exploring the Versatility of Python: A Beginner's Guide to a Powerful Language
In the vast landscape of programming languages, Python stands out as a versatile, user-friendly, and powerful tool that has captured the hearts of developers, data scientists, educators, and professionals across diverse industries. Its simplicity, readability, and broad applicability make it …
Django → Django - Lesson 063. Full text site search for multiple models with multilingual support
Django, python, Django 3, modeltranslation, full-text search, Django 4
Finally, I managed to make a fairly fast full-text search across several models, taking into account the optimization of requests on the site, which would suit me and meet my requirements for the quality of the project.
If you now …
Django → Django - Tutorial 061. Adding a Unique View Count
Django, Counter, Django 3, python, Django 4
At the very beginning of creating articles and questions on the forum, I added a simple counter of views on this content.
This counter was an ordinary field of integer type and each time a page was requested it was …
Django → Django - Lesson 059. Saving the selected language in user settings
python, language, django, translation
In this article, I would like to show an example of how you can make a link on the site so that the user can switch between languages on the site.
But I will show a more advanced version of …
Django → Django - Tutorial 055. How to write auto populate field functionality
field, Django, python, auto, Python
For a long time I wanted to write an article on how to write auto populate field functionality for a Django project. This is a very useful feature that allows you to change the content of other model fields in …
Python → 5 Ways to Remove Unnecessary Characters from a String in Python
Remove specific characters from the string
Let's use ' str.replace '
With the help of * str.replace *, we can change some characters to others. If we just want to remove some characters, then we simply replace them with an …
Python → Python Image Recognition with TensorFlow and Keras
Keras, python, RuCaptcha, TensorFlow
Introduction
One of the most common uses of TensorFlow and Keras is in image recognition and classification. If you would like to learn how to use Keras for image classification or recognition, this article will teach you how to do …
Python → How to Hide Firefox [selenium] in python
In this tutorial, we’ll learn how to Hide selenium firefox in python.
Code:
- #headless option
- options.headless = True
Example:
- from selenium import webdriver
- from selenium.webdriver.common.keys import Keys
- from selenium.webdriver.firefox.options import Options
- options = Options()
- options.headless = True
- driver = webdriver.Firefox(executable_path='/path/to/geckodriver', …
Django → Django - Tutorial 053. Adding Counters to Models in the Django Admin Panel
The other day, I started working on a content moderation application on the site and solved the problem of adding counters in the administrative panel.
It looks like this now
The task itself is trivial, but as it turned out …
- Last comments
- AKApril 1, 2025, 11:41 a.m.Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
- VPMarch 9, 2025, 4:14 p.m.Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
- ИМNov. 22, 2024, 9:51 p.m.Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
- Now discuss on the forum
- МАApril 1, 2025, 4:21 p.m.0ff763fe-4e50-455d-a3a6-5699c243b1a5_17_44_22_1.xml
- fFeb. 15, 2025, 1:46 p.m.Подскажите, пожалуйста! Как данный класс можно дополнить, чтобы созданные объекты можно было перемещать мышкой по сцене?
- Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
- Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…