# Django-2-by-Example **Repository Path**: lin5617229/Django-2-by-Example ## Basic Information - **Project Name**: Django-2-by-Example - **Description**: Django项目实例精解第2版 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-03-25 - **Last Updated**: 2024-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Django 2 by Example This is the code repository for [Django 2 by Example](https://www.packtpub.com/application-development/django-2-example?utm_source=GitHub&utm_medium=repo&utm_campaign=9781788472487), published by [Packt](https://www.packtpub.com). It contains all the supporting project files necessary to work through the book from start to finish. ## About the Book If you want to learn about the entire process of developing professional web applications with Django, then this book is for you. This book will walk you through the creation of four professional Django projects, teaching you how to solve common problems and implement best practices. You will learn how to build a blog application, a social image-bookmarking website, an online shop, and an e-learning platform. The book will teach you how to enhance your applications with AJAX, create RESTful APIs, and set up a production environment for your Django projects. The book walks you through the creation of real-world applications, while solving common problems and implementing best practices. By the end of this book, you will have a deep understanding of Django and how to build advanced web applications ## Instructions and Navigations All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter01. The code will look like the following: ``` if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) ``` ## Related Products * [Building Django 2.0 Web Applications](https://www.packtpub.com/web-development/building-django-20-web-applications?utm_source=GitHub&utm_medium=repo&utm_campaign=9781787286214) * [Django RESTful Web Services](https://www.packtpub.com/web-development/django-restful-web-services?utm_source=GitHub&utm_medium=repo&utm_campaign=9781788833929) * [Mastering Django: Core](https://www.packtpub.com/application-development/mastering-django-core?utm_source=GitHub&utm_medium=repo&utm_campaign=9781787281141)