Book Image

Hands-On Application Development with PyCharm

By : Quan Nguyen
Book Image

Hands-On Application Development with PyCharm

By: Quan Nguyen

Overview of this book

JetBrain’s PyCharm is the most popular Integrated Development Environment (IDE) used by the Python community thanks to its numerous features that facilitate faster, more accurate, and more productive programming practices. However, the abundance of options and customizations can make PyCharm seem quite intimidating. Hands-on Application Development with PyCharm starts with PyCharm’s installation and configuration process, and systematically takes you through a number of its powerful features that can greatly improve your productivity. You’ll explore code automation, version control, graphical debugging/testing, management of virtual environments, and much more. Finally, you’ll delve into specific PyCharm features that support web development and data science, two of the fastest growing applications in Python programming. These include the integration of the Django framework as well as the extensive support for IPython and Jupyter Notebook. By the end of this PyCharm book, you will have gained extensive knowledge of the tool and be able to implement its features and make the most of its support for your projects.
Table of Contents (23 chapters)
Free Chapter
1
Section 1: The Basics of PyCharm
4
Section 2: Improving Your Productivity
9
Section 3: Web Development in PyCharm
14
Section 4: Data Science with PyCharm
18
Section 5: Plugins and Conclusion

Chapter 10

  1. Database objects in a Django project can also be accessed and modified in a Python script using various Django APIs. For example, the Table.objects.get() method (with Table being the name of a database table) will return all the saved database records in a given table, while the Table.objects.create() method, along with the appropriate arguments, can be used to create a new record in a database table.
  2. Double underscores (__) are used to look up the specific fields of an attribute of a database record. In our example, we use __year, __month, and __day with the publish_date attribute to look up the year, month, and day of that attribute, respectively.
  3. The {% csrf_token %} tag is a way to generate a token that counters cross-site request forgery (CSRF) attacks. This tag is required in a Django application in any given form element.
  4. To set up an SMTP email server, you...