👍1
#question #djangousermodel
1. Why Django doesn’t store the raw password in database ?
2. Who did learn this topic https://docs.djangoproject.com/en/4.1/topics/auth/passwords/ ?
3. What we need django.contrib.contenttypes application of django ?
So interesting in know about this 😊
1. Why Django doesn’t store the raw password in database ?
2. Who did learn this topic https://docs.djangoproject.com/en/4.1/topics/auth/passwords/ ?
3. What we need django.contrib.contenttypes application of django ?
So interesting in know about this 😊
⚡1👍1
⚡️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
Django and DRF
https://django-storages.readthedocs.io/
https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html
Useful library to saving important information in aws cloud 💥🚀
Useful library to saving important information in aws cloud 💥🚀
Simple is Better Than Complex
How to Setup Amazon S3 in a Django Project
In this tutorial you will learn how to use the Amazon S3 service to handle static assets and the user uploaded files,that is, the media assets.