Django 3 Blog: Designing Blog Page & Displaying Blog Posts | Python Django Tutorials In Hindi #80

preview_player
Показать описание

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Harry Bhai now i feel like i can make something after learning these stuffs 🤩😃😃thank you so much bhai

Vishalkumar
Автор

Bhai, a very heart warming thank you to you. Your free tutorials have got me started in programming. Please dont stop your tutorials, we are always there to support you..

duttdude
Автор

Bhai day by day improve kr RHA Mai Django m thanks so much

Flutterdev
Автор

Thank you so much this video ....useful content you again 👍👍

PriyaSharma-vfkb
Автор

Front-end me mja aa gya....
Bs jldi se pura blog-site bna do.

deepaktiwari-ryyo
Автор

I guess it's been a month(acutally I think it's been more than 2 months😅) since I have been watching ur django videos. And I tried finding a solution to this active item for so long. And I wasted so much time but finally u are telling😭

rheumaticharm
Автор

Thank you so much. Please make more python tutorials in your English channel programming with harry.

engineerbhai
Автор

Please make a more sorted video for hosting the website

kiranpreetchadda
Автор

Based on Python Tutorial # 231 of Sir Harshit Vashitha, below is the program to segregated mixed files and folders into Audio files, Vedio files, Image files and document file folders. The code includes few file extensions and you may add your extensions in the relevant tuples at the start of code.



import os, shutil
dict_extensions = {
'audio_extensions' : ('.mp3', '.m4a', '.wav', '.flac'),
'video_extensions' : ('.mp4', '.mkv', '.MKV', '.flv', '.mpeg', '.3gp'),
'document_extensions' : ('.doc', '.pdf', '.txt', '.inp'),
'image_extensions' : ('.gif', '.jpg', '.JPG', '.png')

}

user_given_path = input('Enter folder path where files are to be segregated: ')
user_destination = input('Enter folder path where you want to create segregated folders: ')


def file_finder(folder_path, file_extensions):
check_files = []
files = []
for current_path, folder_names, file_names in os.walk(folder_path):
for extension in file_extensions:
for file in file_names:
if file.endswith(extension) and file not in check_files:
check_files.append(file)
searched_files = os.path.join(current_path, file)
files.append(searched_files)
return files


for extension_type, extension_tuple in dict_extensions.items():
folder_name = extension_type.split('_')[0] + 'Files'
folder_path = os.path.join(user_given_path, folder_name)
files2 = file_finder(user_given_path, extension_tuple)
print(len(files2))
if not os.path.exists(folder_path) and len(files2) != 0:
os.mkdir(folder_path)

for item in file_finder(user_given_path, extension_tuple):
shutil.move(item, folder_path)

if not
os.mkdir(user_destination)
segregated_folders = ('audioFiles', 'videoFiles', 'documentFiles', 'imageFiles')
for folder in os.listdir(user_given_path):
if folder in segregated_folders:
seg_folder_path = os.path.join(user_given_path, folder)
shutil.move(seg_folder_path, user_destination)
else:
del_path = os.path.join(user_given_path, folder)
shutil.rmtree(del_path)

TahirKhan-ktmc
Автор

BHAI ME APKE VAJAH SE DOCUMENTATION PADHNA SIKH GAYA MENE CONTACT PAGE PAR SMTP MAIL LAGA DIYA

manmohanwable
Автор

Sir, dynamic kaise kre? I mean ki jab ma click kru koi v blog post ke " continue reading" prr to blog page ma wo content database se retierive hokr aaa jaye..

FM-rnti
Автор

Bro, please make video on full django deployment
Django nginx postgresql
Or
Django Apache mySql

In digital ocean

MrRahul
Автор

Can you please make a video on how to jump in pygame...

ujjwalanand
Автор

Bhai css in one video me live server redirect nhi ho rha kya kru please reply

spidersense
Автор

harry sir please make hadoop tutorials videos

Readerx
Автор

Bro ap apna 1 android ka software ban do jis ma ya sub ho tutorial bhi code bhi or theory bhi ap nay dekhy ho gye kafi plystore ma easy software ha

EasyLearning
Автор

Harry Bhai, Angular ka series kub a raha ha?

iUmerFarooq
Автор

Jarvis work nahi kar raha error aa raha he pyaudio kya karo pyaudio install bhi nahi horaha

mycreations
Автор

Harry bhai code to daal diya kro yaar!!!!

rakshitvyas
Автор

basic.html
{% url 'About' as about %}


<a class="nav-link {% if request.path == about %}active{% endif %}" href="../about/">About Us</a>

savaliyakishan
welcome to shbcf.ru