azepug | Unsorted

Telegram-канал azepug - AzerbaijanPUG(Official)

857

Azerbaijan Python Users Group

Subscribe to a channel

AzerbaijanPUG(Official)

Men ozum link gorende daha hevesle oxuyuram meselen, cox adam da eledir cox guman. Telegram (ve ya her hansi oxsar app) chat interfeysi adami yorur uzun text olduqda. Anlayisiniz ucun tesekkurler

Читать полностью…

AzerbaijanPUG(Official)

Meqaleleri link olaraq paylasmaginizi meslehet goruruk, ister ozunuz olun muellif ister basqasi. En azindan Github gist ile. Cunki bele paylasdiginizda qrupda cox "flood" olur )

Читать полностью…

AzerbaijanPUG(Official)

Enhancing Django Admin with Custom Column Display

In Django’s admin interface, customizing how model fields are displayed can significantly improve the user experience. One way to achieve this is by defining functions that format model data in a more readable or useful way.

Take, for example, the initialled_name function. It’s designed to display a person’s name in an initialled format, which can be particularly handy when dealing with long lists of names where space is at a premium.

Here’s how it works:

def initialled_name(obj):
"""
Takes a model instance and returns the person's last name followed by their initials.
For instance, if obj.first_names='Jerome David' and obj.last_names='Salinger',
the output would be 'Salinger, J.D.'
"""
# Extract the first letter of each first name to create the initials
initials = '.'.join([name[0] for name in obj.first_names.split(' ') if name]) + '.'
# Format the last name and initials in a string
return f"{obj.last_names}, {initials}"


To integrate this into the Django admin, we use the list_display attribute of the ModelAdmin class. This attribute specifies which fields should be displayed on the change list page of the admin for a given model.

from django.contrib import admin

class ContributorAdmin(admin.ModelAdmin):
# Display the initialled name in the admin list view
list_display = (initialled_name,)


By adding initialled_name to list_display, we tell Django to call our function for each Contributor object in the list page. The function receives the object as its argument and returns the formatted name, which Django then displays in the corresponding column.

This customization not only adds a touch of elegance to the admin interface but also makes it easier to scan through records at a glance.

Source:
Web development with Django, Ben Shaw, Saurabh Badhwar, Chris Guest, Bharath Chandra K S

#django

Читать полностью…

AzerbaijanPUG(Official)

https://github.com/adriangb/asapi

Читать полностью…

AzerbaijanPUG(Official)

Dokumentasiyasi da numune olasi isdir. Halaldir)

Читать полностью…

AzerbaijanPUG(Official)

istifade olunan mehsulu, proyekti ne qeder her terefli bilse insan o qeder gozel.
ama backend engineer butun gunu css cirpirsa yox tebii ki 😂

Читать полностью…

AzerbaijanPUG(Official)

umumiyyetle bir backend dev front frameworklerini ne qeder bilmelidir? Umumiyyetle bilmelidir?

Читать полностью…

AzerbaijanPUG(Official)

Pis vakansiya description-u deyil :)
Amma asagidakilar olsaydi lap ela olardi:
* deqiq maash araligi
* proyekt haqda qisa melumat, team nece neferden ibaretdir, necesi mid, necesi junior-du.
* The optimization of the CI/CD and building a solid deployment strategies -> babat movcud olmayan "devops"-cuya uygun gelir bu.
* The ideal candidate must have a strong background in writing tests (all kinds of, not unit tests only) -> bu da babat QA engineer-e. Unit testi bildik ama butun flow-nu, ya end-to-end test automation falan yazirsansa, biraz cetin olacaq.
* The person will be reporting to the CTO/Software architect -> bele cixir ki, yaziq tek olacaq doyush meydaninda :D
* It is possible to have a part ot full time employment, depending on the case. -> part-time mumkun olan bir teleblere oxshamadi.

Читать полностью…

AzerbaijanPUG(Official)

https://www.linkedin.com/posts/jhasanov-pmp_salam-dostlar-%C9%99g%C9%99r-tan%C4%B1d%C4%B1%C4%9F%C4%B1n%C4%B1z-senior-activity-7206241237903785984-vDTR?utm_source=combined_share_message&utm_medium=member_desktop

Читать полностью…

AzerbaijanPUG(Official)

Salam registrasiyada istifadeci profile image-e elave olaraq 6 eded basqa image-de elave ede bilmelidir. Bunu nece ede bilerem form-u nece update edim bunun ucun?


Modellerim:
https://pastebin.com/DD5kyKLZ
form:
https://pastebin.com/0QnU38sF

Читать полностью…

AzerbaijanPUG(Official)

Big Bang, sonra Tailwind ve React sonra Python. Bele davam edir, menim master thesis kimi

Читать полностью…

AzerbaijanPUG(Official)

Çox şirin danışmısan da yəqin, məllim :D

Читать полностью…

AzerbaijanPUG(Official)

1ci zalim 2 saat 26 deq talk edib :D

Читать полностью…

AzerbaijanPUG(Official)

https://getludic.dev/docs/
daha bir Python fullstack :D

Читать полностью…

AzerbaijanPUG(Official)

https://old.reddit.com/r/comfyui/comments/1dbls5n/psa_if_youve_used_the_comfyui_llmvision_node_from/

Читать полностью…

AzerbaijanPUG(Official)

bele paylasdim ki, dedim ola bilsin faydali muzakire olsun. Amma nece uygun gorursuzse ele de paylasaram, problem yoxdur.

Читать полностью…

AzerbaijanPUG(Official)

burada bir de linkedin hesabimda paylasiram heleki

Читать полностью…

AzerbaijanPUG(Official)

sehifeni paylasa bilersiz?

Читать полностью…

AzerbaijanPUG(Official)

buna contribute etmek isteyirdim, prosta baxdım çox complex idi bəzi issuelar

Читать полностью…

AzerbaijanPUG(Official)

rust dedin ureyimi qazandin bax :d

Читать полностью…

AzerbaijanPUG(Official)

Texniki teleb ne desen yazirlar :D ona bir soz demirem adeten men )
meselen Django-cu axtararlar ama ML bilikli, bash veren hadisedir. Cunki team ML-di en azindan bashin cixmalidir ki ne bash verir.

Читать полностью…

AzerbaijanPUG(Official)

bes react teleb etmelerine munasibetiniz necedir?

Читать полностью…

AzerbaijanPUG(Official)

https://github.com/juspay/hyperswitch
Maraqli bir kitabxanadir.
Payment 101 de yaziblar:
https://github.com/juspay/hyperswitch/wiki/Payments-101-for-a-Developer?utm_source=tldrnewsletter

Читать полностью…

AzerbaijanPUG(Official)

If the on_delete behavior is set to models.PROTECT, the admin app returns an error explaining why a protected object is blocking the deletion. This functionality can come in handy while building real-world apps, as there is often a chance of a manual error inadvertently leading to the deletion of important records.

Web development with Django, Ben Shaw, Saurabh Badhwar, Chris Guest, Bharath Chandra K S

#django

Читать полностью…

AzerbaijanPUG(Official)

University of Helsinki-den bele bir online kurslar bazasi var

https://mooc.fi/

Читать полностью…

AzerbaijanPUG(Official)

yerin yaradilishindan bashlayib, emelli intro level edib

Читать полностью…

AzerbaijanPUG(Official)

mende hec olmasa saat yarim idi :D

Читать полностью…

AzerbaijanPUG(Official)

Menim 2023-cu ildeki PyCON cixishim, top 100 en cox izlenenler siyahisinda imish 😂
100 most-watched Python 2023 conference talks ordered by the number of views by Tech Talks Weekly
https://www.youtube.com/playlist?list=PLsaeJ8d49kCnv20dizZqF_EjAoAByNfMj

Читать полностью…

AzerbaijanPUG(Official)

https://piku.github.io/

Читать полностью…

AzerbaijanPUG(Official)

Rocket chat var, self managed istifade etmek olur. Ozum istetmemisem, ama esitmisem yaxsidir

Читать полностью…
Subscribe to a channel