Note: Started with a reinstall of Mac OS X Mojave for a clean start:
- Installed pip (package manager)
- First attempt to setup Django w/ PostgreSQL
"In addition to a database backend, you’ll need to make sure your Python database bindings are installed. If you’re using PostgreSQL, you’ll need the psycopg2 package."
- Ran into an error!
- Downloading PostgreSQL with GUI Instead
- Includes (PostgreSQL server, pgAdmin (for managing and developing databases), and StackBuilder (package manager for download/installing additional PostgreSQL tools and drivers)
- Downloading Version 11.4 for Mac OS X
- Back to the GCP documentation "Running Django in the App Engine flexible environment"
- Downloaded the Google Cloud SDK command line tools
- Creating the Django project
Question... "Don't I need a virtual environment?"
The answer is YES
- Installing/Setting up the virtual environment:
- Initializing your Cloud SQL instance
Run 3 different commands then use another terminal window
- Set up the project files
requirements.txt (command to create: pip list --format freeze > requirements.txt)
- Download/install all tools into environment (see image below)
Screenshot of environment
Deployment was successful in the 4th trial!