Skip to main content

A replacement for django's admin that works with mongodb.

Project description

This a drop in replacement for the django admin that works with monodb. It uses the django admin stuff wherever possible and can be used together with normal django models and a SQL database.

Requirements

Usage

Add mongoadmin to INSTALLED_APPS settings

INSTALLED_APPS = (
    ...
    'mongoadmin',
    'django.contrib.admin',
    ...
)

Add mongoadmin to urls.py

from django.contrib import admin
admin.autodiscover()

from mongoadmin import site

urlpatterns = patterns('',
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(site.urls)),
)

The admin.py for your app needs to use mongoadmin instead of django’s admin:

from mongoadmin import site, DocumentAdmin

from app.models import AppDocument

class AppDocumentAdmin(DocumentAdmin):
    pass
site.register(AppDocument, AppDocumentAdmin)

Now the document should appear as usual in django’s admin.

Using third party apps with mongoadmin

To use third party apps (i.e. apps that register their admin classes in django.contrib.admin.site) with mongoadmin you have to add MONGOADMIN_OVERRIDE_ADMIN = True to your settings file. This overrides the django admin site with mongoadmin’s admin site.

What works and doesn’t work

django-mongoadmin currently only supports the most basic things and even they are not really tested.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongoadmin-0.1.1.tar.gz (31.1 kB view details)

Uploaded Source

File details

Details for the file mongoadmin-0.1.1.tar.gz.

File metadata

  • Download URL: mongoadmin-0.1.1.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mongoadmin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d82cdf0153f1e09a42576247cc716df523682bbd952c0aa3dff57a6ebdf77bbc
MD5 31175d3f56bc586920762b3ed5463911
BLAKE2b-256 ed03ab485707a9b94b53f779066b968016b9e000e98eefef4fca7106bb7af976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page