Skip to content

Instantly share code, notes, and snippets.

@austincollinpena
Created March 5, 2020 16:43
Show Gist options
  • Save austincollinpena/7bf55e227aac1f8bbaa984d705581add to your computer and use it in GitHub Desktop.
Save austincollinpena/7bf55e227aac1f8bbaa984d705581add to your computer and use it in GitHub Desktop.
Set Up PostgresDjango (When it's already installed)
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