Created
March 5, 2020 16:43
-
-
Save austincollinpena/7bf55e227aac1f8bbaa984d705581add to your computer and use it in GitHub Desktop.
Set Up PostgresDjango (When it's already installed)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql -U postgres # "postgres" is the username. You'll be prompted to put in a password like "admin" | |
# You'll be presented with the postgres shell | |
# Create your new user and table | |
CREATE USER <name> WITH PASSWORD '<password>'; # Remove the "<>" symbols | |
CREATE DATABASE <db_name> WITH OWNER <name>; # Remove the "<>" symbols |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment