Skip to content

lamby/31bananas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

31bananas

Local database setup

  1. Create PostgreSQL user with id matching your UNIX username:

    $ sudo -u postgres createuser $(whoami) -SDR
  2. Create a database owned by this user:

    $ sudo -u postgres createdb -E UTF-8 -O $(whoami) bananas
  3. Check we can connect to this database:

    $ /usr/bin/psql bananas
    psql (9.1.2)
    Type "help" for help.
    
    bananas=> \q

Syncing with the live site

Sync database:

$ ./manage.py sync_database