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
Forwarded from Davronbek | SWE 🪐
S.O.L.I.D printsiplari
O’zbek tilida ma’lumotlar kam ekanligi uchun Mediumdagi maqola orqali o’zbek tilida yozilgan maqola. #SOLID

https://medium.com/@nurulloh.ubaydullayev2004/s-o-l-i-d-printsiplari-882cd316c312
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 😃😰😂
source: link

solution: pip install pyjwt==v1.7.1

2-marta duch keldim shu xatolikka.
Denis Ivy is one of the best Backend Developer for me 💪🏻

you can read his answer👇🏻 for this 👆🏻question  

https://medium.com/@dennisivy/what-level-of-proficiency-is-required-in-django-to-get-a-job-ff514d04bdc2
DNS and How does it Work?
if you know what does it work in your linux laptop ?🔭
you can write htop command in terminal
So you can know your laptop's characteristics in linux os with neofetch command😎
👍2
In Linux OS Useful Commands ⚙️💪🏻

🔎 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
File Permissions in Linux OS
#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)
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 .