Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    mongoadmin 0.1.3

    Download button

    No screenshots available
    Downloads: 142  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jan Schrewe | More programs
    BSD License / FREE
    March 6th, 2012, 23:21 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    mongoadmin description

    A replacement for Django's admin that works with mongodb

    mongoadmin is 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.

    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.


    Product's homepage

    Requirements:

    · Python
    · Django
    · mongoengine
    · django-mongodbforms

      


    TAGS:

    Django admin | mongodb database | Django | mongodb | admin

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM