Skip to content

The-Politico/django-politico-staff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POLITICO

django-politico-staff

Staff app. Syncs with Slack.

Quickstart

  1. Install the app.
$ pip install django-politico-staff
  1. Add the app to your Django project and configure settings.
INSTALLED_APPS = [
    # ...
    'rest_framework',
    'tokenservice',
    'staff',
]

#########################
# staff settings
# Token for a slack app with users:read & users:read.email permission scopes
STAFF_SLACK_API_TOKEN = os.getenv("SLACK_API_TOKEN")

Developing

Running a development server

Developing python files? Move into example directory and run the development server with pipenv.

$ cd example
$ pipenv run python manage.py runserver
Setting up a PostgreSQL database
  1. Run the make command to setup a fresh database.
$ make database
  1. Add a connection URL to the .env file.
DATABASE_URL="postgres://localhost:5432/staff"
  1. Run migrations from the example app.
$ cd example
$ pipenv run python manage.py migrate

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published