In short time adding Swagger to your drf api's docs 🍏👍🏽
https://www.jasonmars.org/2020/04/22/add-swagger-to-django-rest-api-quickly-4-mins-without-hiccups/
https://www.jasonmars.org/2020/04/22/add-swagger-to-django-rest-api-quickly-4-mins-without-hiccups/
Jason Mars
Add Swagger to Django Rest API quickly (4 mins) without Hiccups - Jason Mars
Problem Swagger / OpenAPI can be regarded as the de-facto standard for API documentation and sandbox for experimenting with and learning a new API. Adding this to a REST API Django project is important. The process for this integration can have some hiccups…
how to find server's ip address
go to terminal or cmd
linux os: sudo ping website_name
windows : ping website_name
it is amazing 😃😰😂
go to terminal or cmd
linux os: sudo ping website_name
windows : ping website_name
it is amazing 😃😰😂
Medium
15+ Django Interview Questions and Answers for Freshers 2022 | Django Interview Questions for Freshers 2022- Codexashish
Django is an open-source and high-level python-based free web framework that follows MVT( Model View Template) architecture. The Django…
👍1
source: link
solution:
solution:
pip install pyjwt==v1.7.1
2-marta duch keldim shu xatolikka.How to add ssh key to gitlab ?
Understandable article ✅👍🏽
https://medium.com/devops-with-valentine/2021-how-to-your-ssh-key-for-gitlab-on-linux-1b94e2a3a49a
Understandable article ✅👍🏽
https://medium.com/devops-with-valentine/2021-how-to-your-ssh-key-for-gitlab-on-linux-1b94e2a3a49a
Medium
[2022] How to set up your SSH key for GitLab on Linux (Ubuntu / Mint)
One of the most common issues while getting started with Git and GitLab is setting up the private and public keys. I will be using Linux…
Denis Ivy is one of the best Backend Developer for me 💪🏻
you can read his answer👇🏻 for this 👆🏻questionhttps://medium.com/@dennisivy/what-level-of-proficiency-is-required-in-django-to-get-a-job-ff514d04bdc2
In Linux OS Useful Commands ⚙️💪🏻
🔎 Searching any word in any file:
👁 Viewing difference between 2 files:
🖨 Printing text to display:
📨 Taking full information about any command:
⚒ For change your password:
1.
2.
3.
🔎 Searching any word in any file:
grep search_word path_to_file
e.m: grep content shukur_dev/about.html👁 Viewing difference between 2 files:
diff first_fille_path second_file_path
e.m: diff local/index.html global/index.html🖨 Printing text to display:
echo some text
e.m: echo hello world📨 Taking full information about any command:
info one_command
e.m: info sudo ⚒ For change your password:
passwd
🗂 Saving Results to a File: 1.
pwd > one_file
(in this saved path).2.
ls > second_file
(in this saved name of files or folders)3.
pwd >> second_file
(for save from continuation of file)🔥1
#Question❓
imagefielddan keladigan rasmni o'zim xohlagandek nomlab saqlab qo'yishim uchun nima qilishni tavsiya berasizlar?
#solution✅
def get_path(instance,filename):
return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename)
class CCEntry(models.Model):
....
pdf = models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
imagefielddan keladigan rasmni o'zim xohlagandek nomlab saqlab qo'yishim uchun nima qilishni tavsiya berasizlar?
#solution✅
def get_path(instance,filename):
return "site_media/jobs/%s_%s/%s" % (instance.client, instance.job_number, filename)
class CCEntry(models.Model):
....
pdf = models.FilePathField(path=get_path, match=".*\.pdf$", recursive=True)
Forwarded from Shukurali Rezamonov
Assalomu Alaykum
#savolboredi
list ga objectlar terib chiqilgan tartib buyicha ,hozir shu tartib buzilmagan holda Model da mavjud bulgan objectlarni listdan olishim kere . Qanday qilsam buladi shuni ?
hozir men:
any_list = [obj1,obj2,obj9,obj4...]
Estate.objects.filter(id__in=any_list)
shunaqa qilsam tartib yuqolib ketyapti .
#savolboredi
list ga objectlar terib chiqilgan tartib buyicha ,hozir shu tartib buzilmagan holda Model da mavjud bulgan objectlarni listdan olishim kere . Qanday qilsam buladi shuni ?
hozir men:
any_list = [obj1,obj2,obj9,obj4...]
Estate.objects.filter(id__in=any_list)
shunaqa qilsam tartib yuqolib ketyapti .
Shukurali Rezamonov
Assalomu Alaykum #savolboredi list ga objectlar terib chiqilgan tartib buyicha ,hozir shu tartib buzilmagan holda Model da mavjud bulgan objectlarni listdan olishim kere . Qanday qilsam buladi shuni ? hozir men: any_list = [obj1,obj2,obj9,obj4...] Es…
Stack Overflow
Sort queryset by values in list
Is it possible to sort a django queryset by the list of elements provided in the query?
For example, if I do
m.objects.filter(id__in=[3,1,8])
I wan't the order of the queryset to be the element o...
For example, if I do
m.objects.filter(id__in=[3,1,8])
I wan't the order of the queryset to be the element o...
#swagger #customise
You can use swagger as easly for your project's API Docs
https://link.medium.com/coXiVLcyhtb
Official Documentations: https://drf-yasg.readthedocs.io/en/stable/readme.html
You can use swagger as easly for your project's API Docs
https://link.medium.com/coXiVLcyhtb
Official Documentations: https://drf-yasg.readthedocs.io/en/stable/readme.html
Medium
3 Steps to make Django document by Swagger UI automatically.
What is swagger?
Forwarded from ShukurDev (ѕнυĸυralι rezaмonov)
Telegraph
Djangodagi 'q' obyekti nima qiladi.
Django frameworkida ORM lar bilan ishlaymiz va bu ORM esa Djangoni Malumotlar bazasi ya'ni Object Relation Management = Obyekt munosabatlarini boshqarish uchun xizmat qiladi. Aslida esa bu ORM ni orqasida SQL --> Structured Query Lenguage tili turadi buni…
👍2🐳1
If you are going to do Push Notification for you project and application, you can use Firebase Cloud Messaging(FCM).✅
For this I recommended following package if you are doing your project with django.💪🏻
https://pypi.org/project/pyfcm/
For this I recommended following package if you are doing your project with django.💪🏻
https://pypi.org/project/pyfcm/
👍2