Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Django database administrational interface

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dj_dba
Octocat-spinner-32 .gitignore
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 setup.py
README.md

Introduction

django-dba focuses on creating an interface for developers working with django applications. It is intended to ease maintaining and administering your database, for common dba operations such as viewing tables status, re-initiating database (drop & create), viewing table storage, viewing collation setup, comparing physical tables with django app models.

INSTALL

  1. You can either install directly using github as below

    $ pip install git+https://github.com/mo-mughrabi/django-dba/

  2. You can also download a copy of the code and unzip into your project folder

SETUP

Once installed you can add "dj_dba" into your INSTALLED_APPS tuple. Only couple configuration available as of date of writing this document

   DJ_DBA_DEFAULT_FIXTURES = (
         'ABSOLUTE_PATH_TO_FIXTURE_FILE',
     )


   DJ_DBA_POST_FIXTURE_COMMANDS = (
         'COMMAND_LINE',
   )

AVAILABLE COMMANDS

  1. dba_init_db

    will create the database using credential from settings.py or will prompt to recreate in case database already exists

  2. dba_analyze_tables

    will show table of analysis ran into each table in the database engine

  3. dba_tables_status

    will show each table name, collation, rows, engine type

  4. dba_models_vs_tables

    this command can be used to compare between use django app models and actual tables in the database and vice versa.

Something went wrong with that request. Please try again.