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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #182 · 16 ное.

По аналогии с PEP у Django есть DEP. Самый интересный для меня на данный момент на это DEP 0009: Async-capable Django. Он про то, как будет внедряться поддержка аснихронности. Начиная с версии 3 в Django начали появляться асинхронные плюшки. Это всё еще мало чтобы делать асинхронное приложение, но долгий путь начинается с одного маленького шага! Всё должно пройти в несколько этапов и к 4й версии обещают сделать Django асинхронным! Что это даёт разработчикам в случае если весь фреймворк станет поддерживать async? - Ускорение работы web-приложения? Если правильно писать асинхронный код, то да. - Усложнение кода? Возможно, но фреймворк на то и фреймворк, чтобы прятать сложности где-то внутри. Надеюсь код усложнится не сильно, посмотрим... И когда нам этого ожидать? Судя по этой схемкеDjango 4 выйдет в Декабре 2021 года. А это значит, что у вас есть примерно год чтобы научиться понимать асинхронный код, если еще не умеете😁 #django#pep

Hashtags

Резултати

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

Глобално пребарување

Repositorio data science

@repo_science · Post #3235 · 27.05.2023 г., 23:32

#desarrolloWeb#Django#angular#postresql#python 🌐 Curso: Django, Postgres y Angular | Integracion Fullstack Construye Apps profesionales con python, angular, postgres, django. Despliega tu Aplicacion Django Rest en Heroku 🔗Link ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----

Repositorio data science

@repo_science · Post #3250 · 31.05.2023 г., 11:52

#python#flask#django#html#css#bootstrap 🐍 Python Web Dev Pro: Flask, Django, HTML, CSS & Bootstrap Elevate Your Web Development Skills: Master Back-End & Front-End Technologies with Python, Flask, Django, and Responsive 🔗Link ----- Main channel:@repo_science Coupons: @freecoupons_reposcience -----

djangoproject

@djangoproject · Post #434 · 07.09.2017 г., 12:28

#spaceless#django Removes whitespace between #HTML#tags. This includes tab characters and newlines. Example usage: {% spaceless %} <p> <a href="foo/">Foo</a> </p> {% endspaceless %} This example would return this HTML: <p><a href="foo/">Foo</a></p> https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#spaceless

djangoproject

@djangoproject · Post #362 · 03.07.2017 г., 19:33

https://stackoverflow.com/questions/30288351/how-to-setup-django-1-8-to-use-jinja2 The #Jinja template folder for app dirs defaults to #jinja2 not the standard templates folder. So try the following directory structure and #Django will locate your Jinja #templates: mysite mysite myapp jinja2 myapp index.html manage.py And instead of: return render(request, 'myapp/index.html') you should write: return render(request, 'index.html')

djangoproject

@djangoproject · Post #428 · 30.08.2017 г., 03:40

How #Django knows to #UPDATE vs. #INSERT when you call #save (), #Django follows this algorithm: If the object’s primary key attribute is set to a value that evaluates to True (i.e., a value other than None or the empty string), Django executes an UPDATE. If the object’s primary key attribute is not set or if the UPDATE didn’t update anything, Django executes an INSERT.

djangoproject

@djangoproject · Post #440 · 13.09.2017 г., 14:50

Using the Django authentication system This document explains the usage of Django’s #authentication system in its default configuration. This configuration has evolved to serve the most common project needs, handling a reasonably wide range of tasks, and has a careful implementation of #passwords and #permissions. For projects where authentication needs differ from the default, #Django supports extensive extension and customization of authentication. https://docs.djangoproject.com/es/1.11/topics/auth/default/

djangoproject

@djangoproject · Post #429 · 30.08.2017 г., 18:28

https://docs.djangoproject.com/en/1.11/ref/contrib/syndication/ The syndication #feed framework #Django comes with a high-level syndication-feed-generating framework that makes creating #RSS and #Atom feeds easy. To create any syndication feed, all you have to do is write a short Python class. You can create as many feeds as you want. Django also comes with a lower-level feed-generating API. Use this if you want to generate feeds outside of a Web context, or in some other lower-level way.

djangoproject

@djangoproject · Post #180 · 02.10.2016 г., 20:21

An #apphook allows you to attach a #Django application to a page. For example, you might have a news application that you’d like integrated with #django_cms . In this case, you can create a normal django CMS page without any content of its own, and attach the news application to the page; the news application’s #content will be delivered at the page’s URL. http://docs.django-cms.org/en/release-3.3.x/how_to/apphooks.html

12•••678910
ПретходнаСтраница 8 од 10Следна