Django: Template namespacing
Now we might be able to get away with putting our templates directly in polls/templates (rather than creating another polls subdirectory), but it would actually be a bad idea. Django will choose the first template it finds whose name matches, and if you had a template with the same name in a different application, Django would be unable to distinguish between them. We need to be able to point Django at the right one, and the best way to ensure this is by namespacing them. That is, by putting those templates inside another directory named for the application itself.
Link: https://docs.djangoproject.com/en/5.1/intro/tutorial03/#write-views-that-actually-do-something
#Python
#Django
@Pairen_Programmers
Now we might be able to get away with putting our templates directly in polls/templates (rather than creating another polls subdirectory), but it would actually be a bad idea. Django will choose the first template it finds whose name matches, and if you had a template with the same name in a different application, Django would be unable to distinguish between them. We need to be able to point Django at the right one, and the best way to ensure this is by namespacing them. That is, by putting those templates inside another directory named for the application itself.
Link: https://docs.djangoproject.com/en/5.1/intro/tutorial03/#write-views-that-actually-do-something
#Python
#Django
@Pairen_Programmers
Django Project
Writing your first Django app, part 3 | Django documentation
The web framework for perfectionists with deadlines.
👍1
الگوریتم ها با زبان های مختلف از جمله پایتون:
GitHub Link: https://github.com/thealgorithms
Python Repository Link:
https://github.com/TheAlgorithms/Python
#Algorithm
#Python
#GitHub
#پایتون
#الگوریتم
@Pairen_Programmers
GitHub Link: https://github.com/thealgorithms
Python Repository Link:
https://github.com/TheAlgorithms/Python
#Algorithm
#Python
#GitHub
#پایتون
#الگوریتم
@Pairen_Programmers
GitHub
The Algorithms
Open Source resource for learning Data Structures & Algorithms and their implementation in any Programming Language - The Algorithms
🔥1
Multithreading in Python
Last Updated : 13 Aug, 2024
Link: https://www.geeksforgeeks.org/multithreading-python-set-1/
#Python
#مقاله
#پایتون
@Pairen_Programmers
Last Updated : 13 Aug, 2024
Link: https://www.geeksforgeeks.org/multithreading-python-set-1/
#Python
#مقاله
#پایتون
@Pairen_Programmers
GeeksforGeeks
Multithreading in Python - GeeksforGeeks
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
⚡️برنامهی Revision_test
برنامهای که به شما کمک میکنه تا خودتون رو در قدرت ترجمه کلمات و مترادف نویسی کلمات محک بزنید.
نحوهی کارش به این شکل هست که یک فایل تکست که توی هر خطش یک کلمهی انگلیسی نوشته شده رو به برنامه میدید اون هم کلمات رو میخونه و شما از قسمت mode انتخاب میکنید که دوست دارید آزمون شما ترجمه کلمات باشه یا مترادف نویسی کلمات انگلیسی.
توی mode ترجمه تمام کلمات پشتیبانی میشه فقط توی mode مترادف باید کلماتی که وارد میکنید توی google translate مترادف داشته باشن وگرنه برنامه بهتون اخطار میده و میگه مترادف این کلمه وجود نداره و اون رو از آمار کلمات حذف میکنه.
لینک دانلود:
https://github.com/PAIREN1383/Revision_test/releases/download/Revision_test/Revision_test.zip
#خبر
#پایتون
#Python
#GitHub
@Pairen_Programmers
برنامهای که به شما کمک میکنه تا خودتون رو در قدرت ترجمه کلمات و مترادف نویسی کلمات محک بزنید.
نحوهی کارش به این شکل هست که یک فایل تکست که توی هر خطش یک کلمهی انگلیسی نوشته شده رو به برنامه میدید اون هم کلمات رو میخونه و شما از قسمت mode انتخاب میکنید که دوست دارید آزمون شما ترجمه کلمات باشه یا مترادف نویسی کلمات انگلیسی.
توی mode ترجمه تمام کلمات پشتیبانی میشه فقط توی mode مترادف باید کلماتی که وارد میکنید توی google translate مترادف داشته باشن وگرنه برنامه بهتون اخطار میده و میگه مترادف این کلمه وجود نداره و اون رو از آمار کلمات حذف میکنه.
لینک دانلود:
https://github.com/PAIREN1383/Revision_test/releases/download/Revision_test/Revision_test.zip
#خبر
#پایتون
#Python
#GitHub
@Pairen_Programmers
راه های مختلف پخش فایل صوتی در پایتون.
Link: https://www.geeksforgeeks.org/play-sound-in-python/
#Python
#مقاله
@Pairen_Programmers
Link: https://www.geeksforgeeks.org/play-sound-in-python/
#Python
#مقاله
@Pairen_Programmers
GeeksforGeeks
Play Sound in Python - GeeksforGeeks
Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.