Django Design Patterns and Best Practices
Industry-standard web development techniques and solutions using PythonArun Ravindran
- ناشرPackt
- سال انتشار2018
- ویرایش2
- زبانEnglish
- تعداد صفحات274
- شابک9781788831345
699,000 تومان – 1,694,000 تومانمحدوده قیمت: 699,000 تومان تا 1,694,000 تومان
تحویل اکسپرس
حمل رایگان سفارشات بالای 1 میلیون تومان
پرداخت امن
امکان پرداخت انلاین یا پرداخت حضروی درب منزل
ضمانت اصالت کالا
امکان پرداخت انلاین یا پرداخت حضروی درب منزل
7 روز گارانتی بازگشت وجه
امکان پرداخت انلاین یا پرداخت حضروی درب منزل
کتاب الگوهای طراحی جنگو (Django Design Patterns and Best Practices)
📖 با الگوهای طراحی شیک جنگو و بهترین شیوههای مدرن، وبسایتهای قابل نگهداری بسازید!
✨ ویژگیهای کلیدی کتاب
🚀 شیرجه عمیق در جنگو: از مدلها (Models) و ویوها (Views) گرفته تا تست و دیپلوی، کل جنگو رو زیر و رو میکنی.
🤔 فهمیدن ریزهکاریها: نکات ظریف توسعه وب مثل حملات مرورگر (browser attack) و طراحی درست دادهها (data design) رو یاد میگیری.
⚡ کار با ابزارهای Asynchronous: با ابزارهای خفن و غیرهمزمان مثل Celery و Channels به صورت عملی کار میکنی و پروژههات رو پرسرعت میکنی.
📘 درباره کتاب
ساختن اپلیکیشنهای وب امن و قابل نگهداری، دانش زیادی میخواد. ویرایش دوم این کتاب نه تنها جنگو رو برات روشن میکنه، بلکه سالها تجربه رو در قالب الگوهای طراحی و بهترین شیوهها (Best Practices) بهت هدیه میده. این کتاب به جای چسبیدن به الگوهای طراحی معروف GoF (Gang of Four)، روی الگوهای سطح بالاتر تمرکز میکه.
با استفاده از آخرین نسخه جنگو و پایتون، در حین ساختن یک پایه مفهومی محکم، با ابزارهایی مثل Channels و asyncio هم آشنا میشی. کتاب گزینههای مختلف طراحی رو با هم مقایسه میکنه تا کمکت کنه تو این دنیای پر از تغییر، تصمیمهای روزمرهات رو سریعتر و بهتر بگیری.
اول از همه، با الگوهای مختلف معماری آشنا میشی، که خیلیهاشون تو ساخت خودِ جنگو هم استفاده شدن. بعدش با یه پروژه باحال “ابرقهرمانی” شروع میکنی: نیازمندیها رو جمع میکنی، ماکاپ (mockup) میسازی و پروژه رو راه میندازی. در طول این پروژه، با مثالهای عملی، مدلها، ویوها، تمپلیتها، گردش کارها (workflows) و تکنیکهای استفاده مجدد از کد رو یاد میگیری. علاوه بر این، تکنیکهای کدنویسی پایتون رو به صورت عملی در جنگو یاد میگیری که بهت کمک میکنه مشکلات پیچیدهای مثل کار با کدهای قدیمی (legacy code)، مدلسازی داده و استفاده مجدد از کد رو حل کنی.
در ادامه، اصول و بهترین شیوههای طراحی API رو کشف میکنی و دلیل نیاز به گردشکارهای غیرهمزمان رو میفهمی. در طول این سفر، با تکنیکهای محبوب تست کد پایتون در جنگو، تهدیدات مختلف امنیتی وب و راههای مقابله باهاشون، و همچنین مانیتورینگ و بهبود عملکرد اپلیکیشنت آشنا میشی.
🎓 چی یاد میگیری؟
🎨 از الگوهای طراحی رایج استفاده کنی تا کد بهتری بنویسی.
✅ بهترین شیوهها (best practices) و اصطلاحات رایج رو تو این فریمورک که به سرعت در حال تکامله، پیادهکنی.
🔧 چطوری با کدهای قدیمی (legacy code) و دیباگ کردن کلنجار بری.
💨 از ابزارهای غیرهمزمان مثل Celery، Channels و asyncio استفاده کنی.
🏗️ موقع طراحی API با Django REST Framework از الگوها کمک بگیری.
🧹 با نوشتن کد تمیزتر و تستشده، دردسر نگهداری کد رو کم کنی.
🛡️ پروژههای جنگوت رو هاست، دیپلوی و امن کنی.
👨💻 این کتاب برای کیه؟
این کتاب برای خودته! چه تازه با جنگو آشنا شده باشی و چه بخوای بهترین شیوههاش رو یاد بگیری. لازم نیست حتماً تو جنگو یا پایتون متخصص باشی. دانش قبلی از الگوهای طراحی هم الزامی نیست، ولی اگه داشته باشی که چه بهتر!
📑 فهرست مطالب
- جنگو و الگوها
- طراحی اپلیکیشن
- مدلها (Models)
- ویوها و URLها
- تمپلیتها (Templates)
- رابط ادمین
- فرمها (Forms)
- کار کردن به صورت غیرهمزمان (Asynchronous)
- ساختن API
- سروکله زدن با کدهای قدیمی (Legacy Code)
- تست و دیباگ کردن
- امنیت
- آماده برای پروداکشن
- پیوست: مقایسه پایتون ۲ و ۳
🧑💼 درباره نویسنده
آرون راویندران (Arun Ravindran) یه سخنران و وبلاگنویس مشتاقه که از سال ۲۰۰۷ داره با جنگو برای پروژههای مختلف، از اپلیکیشنهای اینترانتی گرفته تا شبکههای اجتماعی، ور میره. اون از قدیم عاشق دنیای متنباز (open source) و یه برنامهنویس پایتونه. مقالهها و ویدیوهای آموزشیش برای جامعه رو به رشد جنگو خیلی ارزشمند بوده. در حال حاضر هم عضو توسعهدهنده بنیاد نرمافزار جنگو (Django Software Foundation) ه یه عشق فیلمه و عاشق رمانهای گرافیکی و کمیک بوکهاست. (
Build maintainable websites with elegant Django design patterns and modern best practices
Key Features
- Explore aspects of Django from Models and Views to testing and deployment
- Understand the nuances of web development such as browser attack and data design
- Walk through various asynchronous tools such as Celery and Channels
Book Description
Building secure and maintainable web applications requires comprehensive knowledge. The second edition of this book not only sheds light on Django, but also encapsulates years of experience in the form of design patterns and best practices. Rather than sticking to GoF design patterns, the book looks at higher-level patterns. Using the latest version of Django and Python, you’ll learn about Channels and asyncio while building a solid conceptual background. The book compares design choices to help you make everyday decisions faster in a rapidly changing environment.
You’ll first learn about various architectural patterns, many of which are used to build Django. You’ll start with building a fun superhero project by gathering the requirements, creating mockups, and setting up the project. Through project-guided examples, you’ll explore the Model, View, templates, workflows, and code reusability techniques. In addition to this, you’ll learn practical Python coding techniques in Django that’ll enable you to tackle problems related to complex topics such as legacy coding, data modeling, and code reusability.
You’ll discover API design principles and best practices, and understand the need for asynchronous workflows. During this journey, you’ll study popular Python code testing techniques in Django, various web security threats and their countermeasures, and the monitoring and performance of your application.
What you will learn
- Make use of common design patterns to help you write better code
- Implement best practices and idioms in this rapidly evolving framework
- Deal with legacy code and debugging
- Use asynchronous tools such as Celery, Channels, and asyncio
- Use patterns while designing API interfaces with the Django REST Framework
- Reduce the maintenance burden with well-tested, cleaner code
- Host, deploy, and secure your Django projects
Who this book is for
This book is for you whether you’re new to Django or just want to learn its best practices. You do not have to be an expert in Django or Python. No prior knowledge of patterns is expected for reading this book but it would be helpful.
Table of Contents
- Django and Patterns
- Application Design
- Models
- Views and URLs
- Templates
- Admin Interface
- Forms
- Working Asynchronously
- Creating APIs
- Dealing with Legacy Code
- Testing and Debugging
- Security
- Production-ready
- Appendix- Python 2 Versus Python 3
About the Author
Arun Ravindran is an avid speaker and blogger who has been tinkering with Django since 2007 for projects ranging from intranet applications to social networks. He is a long-time open source enthusiast and Python developer. His articles and screencasts have been invaluable to the rapidly growing Django community. He is currently a developer member of the Django Software Foundation. Arun is also a movie buff and loves graphic novels and comics.
| ناشر | Packt |
|---|---|
| ویرایش | 2 |
| زبان | English |
| سال انتشار | 2018 |
| شابک | 9781788831345 |
| تعداد صفحات | 274 |
| قطع | B5 |
| کیفیت | اورجینال انتشارات |
| نوع چاپ | رنگی, سیاه و سفید |
| نوع جلد | جلد سخت, شومیز, طلقی |
محصولات مشابه

نقد و بررسیها
هنوز بررسیای ثبت نشده است.