Django and DRF
302 subscribers
98 photos
39 files
161 links
Purpose is sharing, spreading knowledge which is most related to the Django and Django Rest Framework(DRF)

You can find in here my
- Articles
- Projects with source codes
- Videos
and another useful stuffs
Download Telegram
⚡️Using sessions resulted in one more query reduction 😅👍🏻


def post_comment(request, new_comment):
if request.session.get('has_commented', False):
return HttpResponse("You've already commented.")
c = comments.Comment(comment=new_comment)
c.save()
request.session['has_commented'] = True
return HttpResponse('Thanks for your comment!')
👏2
👍1
👍1
👍1
👍1
Now 😎😎
I didn't know this but I have learnt today
❤‍🔥1👍1
Before when i use APIView 😢🥵

Frontend Dev
: why there is not URL 😡😡
Me: 😢 To I used APIView
Django ModelForm: What is save(commit=False) used for ?
Forwarded from Davronbek | SWE 🪐
Pythonda Rasmlar bilan ishash uchun qulay package Pillow documentation 🖼

Lang 🇺🇸
Forwarded from Davronbek | SWE 🪐
python_pillow_tutorial_201120103542.pdf
2.2 MB
Python Pillow 🔥

Lang 🇺🇸
@Davron_coder