TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #254 · 11 јун.

Тип строки в Python имеет очень много удобных методов. Сегодня пост про два таких метода которые чаще всего используются "однобоко". Это методы startswith() и endswith() Самый обычный сценарий использования — проверка, начинается ли строка с указанной подстроки? >>> "some_string".startswith("some") True И аналогичная ситуация с зеркальным вариантом этой функции, проверка совпадения с конца >>> "some_string".endswith("some") False Так они используются в большинстве случаев что я видел. Но у этих функций есть еще два варианта использования. 🔸Сравнение нескольких подстрок Для проверки нескольких подстрок в одной строке обычно вызывают эти функции несколько раз. Но на самом деле достаточно передать кортеж со всеми строками один раз. Если будет хоть одно совпадение то функция вернёт True. >>>"my_image.png".endswith(("jpg", "png", "exr")) True 🔸Диапазон поиска Вторым аргументом можно передать индекс символа с которого следует начать сравнение, а третий аргумент это индекс последнего символа. >>> ".filename.ext".startswith("file", 1) True >>> "file_###.ext".endswith('#', 0, -4) True Индексы можно указать отрицательными, что означает отсчёт с конца. #trics#basic

Hashtags

Резултати

Пронајдени 113 слични објави

Пребарај: #django

当前筛选 #django清除筛选
djangoproject

@djangoproject · Post #599 · 24.04.2018 г., 03:09

https://code.tutsplus.com/tutorials/10-insanely-useful-django-tips--net-974 10 Insanely Useful #Django Tips There are quite a few great little tricks and tips one could use on their Django projects that would speed up development and save many headaches in the long run. From basic to obscure, these tips can help any skill-level of programmer become more adept with Django and all it's glory. 1. Use relative paths in the configuration 2. Use the {% url %} tag 3. Use Django admin for your PHP apps 4. Use a separate media server 5. Use the Debugger Toolbar 6. Use Django Unit Testing 7. Use a Cheatsheet 8. Utilize django-chunks 9. Utilize Memcache 10. Stop hacking scripts together and just use Django

Hashtags

djangoproject

@djangoproject · Post #558 · 24.01.2018 г., 12:18

https://www.digitalocean.com/community/tutorials/how-to-install-django-and-set-up-a-development-environment-on-ubuntu-16-04 How To Install #Django and Set Up a Development Environment on Ubuntu 16.04

Hashtags

Far·hod·jon

@farhodjon · Post #476 · 01.07.2021 г., 16:59

Python/Django stekini o’rganayotgan va kelajakda biror kattaroq loyihani ishlab chiqishda qatnashishni rejalashtirayotganlar uchun juda yaxshi qo’llanma: Django for Startup Founders: A better software architecture for SaaS startups and consumer apps - https://alexkrupp.typepad.com/sensemaking/2021/06/django-for-startup-founders-a-better-software-architecture-for-saas-startups-and-consumer-apps.html Muallif Django orqali quriladigan backend’larning arxitekturasini deyarli hamma tomonini yoritgan: kodni oson bo’lishi, xavfsizlik, test yozish va hokazo. Ba’zi maslahatlariga qo’shilmasam ham, lekin bu qo’llanma e’tiborga loyiq, deb hisoblayman. #django

Hashtags

djangoproject

@djangoproject · Post #398 · 31.07.2017 г., 04:02

https://www.djangoproject.com/foundation/teams/ Teams Teams indicate who is actively contributing in certain areas. Ops team Releasers Security team Technical advisory team Technical board Technical team #django

Hashtags

djangoproject

@djangoproject · Post #397 · 31.07.2017 г., 04:00

https://docs.djangoproject.com/en/dev/internals/organization/ Organization of the #Django Project Principles Core team Role Prerogatives Membership Technical board Role Prerogatives Membership Changing the organization

Hashtags

djangoproject

@djangoproject · Post #375 · 07.07.2017 г., 19:57

https://simpleisbetterthancomplex.com/2015/11/23/small-open-source-django-projects-to-get-started.html Small Open-Source Django Projects to Get Started Learning #Django and #Python can be very fun. I personally love programming with Python and for the most part, work with the Django framework. But in the beginning some stuff can be confusing, especially if you are coming from a Java or C♯ background, like me.

Repositorio data science

@repo_science · Post #4120 · 05.05.2024 г., 17:08

#django#webDevelopment 🤩 Django Girls es una organización internacional sin ánimo de lucro fundada por dos mujeres polacas, Ola Sitarska y Ola Sendecka, ​para inspirar a mujeres de todos los orígenes ​a interesarse en el desarrollo de aplicaciones web. 🔗Enlace al libro ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3474 · 26.07.2023 г., 15:52

#Python#django#webDevelopment 🛠 Build Python REST API With Django REST Framework What You'll Learn - Students learn about fundamental concepts of building REST APIs - Students learn about fundamental concepts of Django REST Framework - Students learn about Token and Session authentication mechanism - Students learn how to deploy Python REST APIs to Heroku Skills you will gain - Students will learn building REST APIs with Django REST Framework (DRF) - Students learn building Authentication system with Django REST Framework 📆 2022 🔗Link ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3397 · 05.07.2023 г., 16:11

#python#django#webDevelopment 🌐 Python Django - The Practical Guide This course covers: - Installing Django - Creating and understanding Django projects - Understanding URLs, views, requests and responses - Working with templates and static files like CSS and images - Working with data and models - Connecting data with relationships (one-to-many, one-to-one, many-to-many) - Querying data with Django's powerful model solution - Adding administration panels to your projects - Handling user input with forms - manually and with Django's built-in form support - Advanced features like class-based views (and when to use them) - Dealing with file uploads and how to serve uploaded files - Working with sessions - In-depth deployment instructions and examples - Different ways of deploying and serving static files and user uploads - And much more! ⚖️11GB ⏳20h+ 🔗Link ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----

djangoproject

@djangoproject · Post #569 · 08.02.2018 г., 19:27

http://v1k45.com/blog/modern-django-part-1-setting-up-django-and-react/ Modern Django: Part 1: Setting up #Django and #React This will be a multi part tutorial series on how to create a "Modern" web application or SPA using Django and React.js.

123•••910
ПретходнаСтраница 1 од 10Следна