GithubHelp home page GithubHelp logo

dj-statuspage's Introduction

Django Status Page

Django Status Page is a Django plugin which allows you to easily embed status pages into your Django project.

Quick start

  1. Install python packages:

    pip install djangostatuspage

    This will install the plugin and all dependency packages, e.g. Django REST Framework.

  2. Add "rest_framework" and "djangostatuspage" to your INSTALLED_APPS setting (settings.py) like this:

    INSTALLED_APPS = [
        ...
        'rest_framework',
        'djangostatuspage',
    ]
  3. Include the API URLconf in your project urls.py like this:

    path('api/statuspage/', include('djangostatuspage.urls')),
  4. Include the UI URLconf in your project urls.py like this:

    path('ui/', include('djangostatuspage-ui.urls_ui')),
  5. Run python manage.py migrate to create the Status Page models.
  6. Start the development server:

    python manage.py runserver
  7. To manage your Status Pages, visit the Django Admin at http://127.0.0.1:8000/admin/ (you'll need the Admin app enabled and superuser created).
  8. To view actual status page, visit http://127.0.0.1:8000/ui/status-pages/(status-page-id)/
  9. Status page API endpoints are available at: http://127.0.0.1:8000/api/statuspage/

Customization

Add DJANGOSTATUSPAGE dictionary to your project's settings.py:

DJANGOSTATUSPAGE = {
    'UI_TEMPLATE': 'djangostatuspage/status_page.html',
}

Build and Publish

$ python setup.py sdist 
$ python -m pip install --upgrade twine
$ python -m twine upload dist/*

dj-statuspage's People

Contributors

ivangeorgiev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.