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.
Forwarded from Malikov | Blog | Notes
PythonOneLiners.pdf
663.8 KB
Before when i use APIView 😢🥵
Frontend Dev: why there is not URL 😡😡
Me: 😢 To I used APIView
Frontend Dev: why there is not URL 😡😡
Me: 😢 To I used APIView
Forwarded from Davronbek | SWE 🪐
Pythonda Rasmlar bilan ishash uchun qulay package
Lang 🇺🇸
Pillow
documentation 🖼Lang 🇺🇸
Forwarded from Davronbek | SWE 🪐
python_pillow_tutorial_201120103542.pdf
2.2 MB
Forwarded from Библиотека Питониста
Build a Website with Django 3 by Nigel George (z-lib.org).pdf
13.7 MB
Build a Website With Django 3 - 2019
#django
#django
👍1
Django da qanday qilib userlarning IP Address larini aniqlab ,ularning GeoLocationini topishni urganmoqchi bulganlar uchun juda yaxshi maqola ⚡️⚡️🥳
https://medium.com/@arrosid/get-visitor-location-using-geoip2-in-django-32ad3d417115
https://medium.com/@arrosid/get-visitor-location-using-geoip2-in-django-32ad3d417115
Medium
Get Visitor Location using GeoIP2 in Django
In this story, I will show you how to get Visitor location based on visitor IP Address
👏5🔥1
For CSRF Problems in Django >= 4.0
Solutions
1. Above Image ->
3. Corsheaders ->
*
Solutions
1. Above Image ->
CSRF_TRUSTED_ORIGINS = [
'https://subdomain.example.com',
'https://*.blob.com',
...
]
2. Please put -> {% csrf_token %}
inside <form> tag.3. Corsheaders ->
*
pip install django-cors-headers
* add 'corsheaders' in installed apps
4. Use decorators for view functions -> from django.views.decorators.csrf import csrf_exempt, csrf_protect