All Projects → Alir3z4 → Django Databrowse

Alir3z4 / Django Databrowse

Licence: bsd-3-clause
Databrowse is a Django application that lets you browse your data.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Databrowse

Django Smuggler
Django Smuggler is a pluggable application for Django Web Framework that helps you to import/export fixtures via the automatically-generated administration interface.
Stars: ✭ 350 (+753.66%)
Mutual labels:  database, data, django
Arquero
Query processing and transformation of array-backed data tables.
Stars: ✭ 384 (+836.59%)
Mutual labels:  database, data
Django Watchman
django-watchman exposes a status endpoint for your backing services like databases, caches, etc.
Stars: ✭ 357 (+770.73%)
Mutual labels:  database, django
Tensorbase
TensorBase BE is building a high performance, cloud neutral bigdata warehouse for SMEs fully in Rust.
Stars: ✭ 440 (+973.17%)
Mutual labels:  database, data
Architect
A set of tools which enhances ORMs written in Python with more features
Stars: ✭ 320 (+680.49%)
Mutual labels:  database, django
Awesome Cheatsheets
👩‍💻👨‍💻 Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.
Stars: ✭ 26,007 (+63331.71%)
Mutual labels:  database, django
Datacleaner
The premier open source Data Quality solution
Stars: ✭ 391 (+853.66%)
Mutual labels:  database, data
Postgui
A React web application to query and share any PostgreSQL database.
Stars: ✭ 260 (+534.15%)
Mutual labels:  database, data
Octo Cli
CLI tool to expose data from any database as a serverless web service.
Stars: ✭ 653 (+1492.68%)
Mutual labels:  database, data
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+1541.46%)
Mutual labels:  database, data
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+65273.17%)
Mutual labels:  database, data
Altair
✨⚡️ A beautiful feature-rich GraphQL Client for all platforms.
Stars: ✭ 3,827 (+9234.15%)
Mutual labels:  database, data
Baize
白泽自动化运维系统:配置管理、网络探测、资产管理、业务管理、CMDB、CD、DevOps、作业编排、任务编排等功能,未来将添加监控、报警、日志分析、大数据分析等部分内容
Stars: ✭ 296 (+621.95%)
Mutual labels:  data, django
Mithril Data
A rich data model library for Mithril javascript framework
Stars: ✭ 17 (-58.54%)
Mutual labels:  database, data
Django Querycount
Middleware that Prints the number of DB queries to the runserver console.
Stars: ✭ 280 (+582.93%)
Mutual labels:  database, django
Samples
Sample projects using Material, Graph, and Algorithm.
Stars: ✭ 386 (+841.46%)
Mutual labels:  database, data
Django Migration Linter
🚀 Detect backward incompatible migrations for your django project
Stars: ✭ 231 (+463.41%)
Mutual labels:  database, django
Aresdb
A GPU-powered real-time analytics storage and query engine.
Stars: ✭ 2,814 (+6763.41%)
Mutual labels:  database, data
Bogus
📇 A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Stars: ✭ 5,083 (+12297.56%)
Mutual labels:  database, data
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+69360.98%)
Mutual labels:  database, data

================= Django Databrowse

.. image:: https://travis-ci.org/Alir3z4/django-databrowse.png :alt: travis-cli tests status for django-databrowse :target: https://travis-ci.org/Alir3z4/django-databrowse

.. contents:: Table of contents

.. note::

Extracted from `Django 1.4 since databrowse deprecation <https://docs.djangoproject.com/en/dev/releases/1.4/#django-contrib-databrowse>`_

Databrowse is a Django application that lets you browse your data.

As the Django admin dynamically creates an admin interface by introspecting your models, Databrowse dynamically creates a rich, browsable Web site by introspecting your models.

Installation

django-databrowse is available on pypi

http://pypi.python.org/pypi/django-databrowse

So easily install it by pip ::

$ pip install django-databrowse

Or by easy_install ::

$ easy_install django-databrowse

Another way is by cloning django-databrowse's git repo <https://github.com/Alir3z4/django-databrowse>_ ::

$ git clone git://github.com/Alir3z4/django-databrowse.git

Then install it by running: ::

$ python setup.py install

How to use Databrowse

  1. Point Django at the default Databrowse templates. There are two ways to do this:

    • Add 'django_databrowse' to your INSTALLED_APPS setting. This will work if your TEMPLATE_LOADERS setting includes the app_directories template loader (which is the case by default). See the template loader docs <https://docs.djangoproject.com/en/1.4/ref/templates/api/#template-loaders>_ for more.

    • Otherwise, determine the full filesystem path to the django_databrowse/templates directory, and add that directory to your TEMPLATE_DIRS <https://docs.djangoproject.com/en/1.4/ref/settings/#std:setting-TEMPLATE_DIRS>_ setting.

  2. Register a number of models with the Databrowse site::

    import django_databrowse
    from myapp.models import SomeModel, SomeOtherModel, YetAnotherModel
    
    django_databrowse.site.register(SomeModel)
    django_databrowse.site.register(SomeOtherModel, YetAnotherModel)
    

    Note that you should register the model classes, not instances.

    it is possible to register several models in the same call to django_databrowse.site.register.

    It doesn't matter where you put this, as long as it gets executed at some point. A good place for it is in your URLconf file <https://docs.djangoproject.com/en/1.4/topics/http/urls/>_ (urls.py).

  3. Change your URLconf to import the ~django_databrowse module::

    from django_databrowse
    

    ...and add the following line to your URLconf::

    (r'^django_databrowse/(.*)', django_databrowse.site.root),
    

    The prefix doesn't matter -- you can use databrowse/ or db/ or whatever you'd like.

  4. Run the Django server and visit /databrowse/ in your browser.

Requiring user login

You can restrict access to logged-in users with only a few extra lines of code. Simply add the following import to your URLconf::

from django.contrib.auth.decorators import login_required

Then modify the URLconf <https://docs.djangoproject.com/en/1.4/topics/http/urls/>_ so that the django_databrowse.site.root view is decorated with django.contrib.auth.decorators.login_required::

(r'^databrowse/(.*)', login_required(django_databrowse.site.root)),

If you haven't already added support for user logins to your URLconf <https://docs.djangoproject.com/en/1.4/topics/http/urls/>, as described in the user authentication docs <https://docs.djangoproject.com/en/1.4/ref/contrib/auth>, then you will need to do so now with the following mapping::

(r'^accounts/login/$', 'django.contrib.auth.views.login'),

The final step is to create the login form required by django.contrib.auth.views.login. The user authentication docs <https://docs.djangoproject.com/en/1.4/ref/contrib/auth>_ provide full details and a sample template that can be used for this purpose.

Tests

django-databrowse has been tested Django 1.6 and later. To run the the tests:

::

$ python run_tests.py

It's also available on travis-ci:

https://travis-ci.org/Alir3z4/django-databrowse/

Translations

Currently English is only available language that is being packaged. If you would like to contribute in localization you can find django-databrowse project on Transifex as well: https://www.transifex.com/projects/p/django-databrowse/

Translation Status on Transifex

.. image:: https://www.transifex.com/projects/p/django-databrowse/resource/django_databrowse/chart/image_png :alt: django-databrowse translation status on transifex :target: https://www.transifex.com/projects/p/django-databrowse/

Releasing

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].