پایکون
80 subscribers
53 photos
2 videos
6 files
131 links
تدریس خصوصی و مشاوره :
@alistvt
سفارش ربات تلگرام :
@mohsen_ykz
گروه ما :
@ir_pycon_gp
Download Telegram
from django.core.validators import MaxValueValidator, MinValueValidator

. . .

# create a Django fields with maximum and minimum limits
tits_size = models.FloatField(
validators = [
MinValueValidator(70),
MaxValueValidator(185.5)
]
)

#python #django #orm
simple implementation of superuser_required decorator

@user_passes_test(lambda u: u.is_superuser)
def view(request):
...

@user_passes_test(lambda u: u.is_superuser, login_url=..., redirect_field_name=...)
def view(request):
...
‏روز برنامه نویس
روز تموم شد ولی ریفکتور میخواد
روز ۵ دقیقه دیگه تموم میشه
روز پوش کردم نمی دونم چرا نیست
روز رو سیستم من کار می کنه

روز باید فریم ورک خودمون رو بنویسیم
روز تا حالا ۱ ملیون رکوئست هندل کردی آخه
...
مبارک
Forwarded from ProGraphs
🔺کشیدن نقشه‌های ذهنی و ایده‌های خود را از امروز با Plectica آغاز کنید.

https://www.plectica.com/

#link #conceptmapping #collaboration #metacognition #mentalmodels #systemsthinking #perspective #diagram #mindmapping

@ProGraphs
https://github.com/wsvincent/djangox

A framework for launching new Django projects quickly. Comes with a complete user authentication flow, custom user model, and social authentication options via Gmail, Facebook, Twitter, etc.