Skip to content

MagicWishMonkey/portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INSTALLATION AND CONFIGURATION

Pull down the repository to your local machine

Install Postgres if it is not already installed

  • Using the postgres admin tool, create the database user account to use with the project database
  • Using the postgres admin tool, create the database for this project and assign the user you created above as the owner

Prepare the python virtualenv for the project

Install the project requirements

  • Navigate to the folder containing the repository (lets assume this is /Work/portal)
  • Using the fully qualified path to the virtualenv pip, install the requirements
    • Example: /Work/portal/.virtual/portal/bin/pip install -r requirements.txt

Create a settings.override file for your local machine (note: this will not be included in source control)

  • Add a new json file to your /.config/ folder, named settings.override.json , with the following text: {}

Prepare the database

  • Add a DATABASE object entry to the /.config/settings.override.json file, copy/paste the DATABASE block from the settings.json file and update to include the database name, username, and password for your local db
  • Run initial database migration: /Work/portal/.virtual/portal/bin/python manage.py migrate
  • Run the project database migration: /Work/portal/.virtual/portal/bin/python manage.py migrate rpg

NOTES

  • To create a new migration: /Work/portal/.virtual/portal/bin/python manage.py makemigrations rpg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages