Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Modern Database Applications with PostgreSQL

You're reading from   Developing Modern Database Applications with PostgreSQL Use the highly available and object-relational PostgreSQL to build scalable and reliable apps

Arrow left icon
Product type Paperback
Published in Aug 2021
Publisher Packt
ISBN-13 9781838648145
Length 440 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Marcelo Diaz Marcelo Diaz
Author Profile Icon Marcelo Diaz
Marcelo Diaz
Quan Ha Le Quan Ha Le
Author Profile Icon Quan Ha Le
Quan Ha Le
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1 - Introducing PostgreSQL Development and Administration
2. Introduction to PostgreSQL Development and Administration FREE CHAPTER 3. Section 2 - Development in PostgreSQL
4. Setting Up a PostgreSQL RDS for ATMs 5. Using PostgreSQL and Node.js for Banking Transactions 6. Managing Bank ATM Locations Using PostgreSQL and Django 7. Creating a Geospatial Database Using PostGIS and PostgreSQL 8. Managing Banking Transactions using PostgREST 9. Section 3 - Administration in PostgreSQL
10. PostgreSQL with DevOps for Continuous Delivery 11. PostgreSQL High Availability Clusters 12. High-Performance Team Dashboards Using PostgreSQL and New Relic 13. Testing the Performance of Our Banking App with PGBench and JMeter 14. Test Frameworks for PostgreSQL 15. Other Books You May Enjoy APPENDIX - PostgreSQL among the Other Current Clouds

Installing Django

The virtual environment has now been activated. Therefore, we can use the Python package manager, pip, to install Django. Perform the following steps:

  1. Install Django using the following command:
(venv) [root@ip-172-31-95-213 django_app]# pip3 install django

The following screenshot shows the installation output on our console:

Figure 4.3 – Installing Django
  1.  The following command will help you to verify the installation process. It will print the Django version:
(venv) [root@ip-172-31-95-213 django_app]# python3.7 -m django --version
2.2.6
  1. Surprisingly, the installation of Django is very simple and quick for developers. Version 2.2.6 of Django requires SQLite versions later than SQLite 3.8.3; hence, you will have to install SQLite 3.29.0 as follows:
(venv) [root@ip-172-31-95-213 django_app]# cd ..
(venv) [root@ip-172-31-95-213 src]# wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
(venv) [root@ip-172-31-95...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime