Skip to main content

An introspective interface for Django and MongoDB

Project description

Info:

An introspective interface for Django and MongoDB.

Version:
0.2.17
Author:

Daniel Greenfeld (http://pydanny.com)

About

django-mongonaut is an introspective interface for working with MongoDB via mongoengine. Rather then attempt to staple this functionality into Django’s Admin interface, django-mongonaut takes the approach of rolling a new framework from scratch.

By writing it from scratch I get to avoid trying to staple ORM functionality on top of MongoDB, a NoSQL key/value binary-tree store.

Features

Installation

Made as easy as possible, setup is actually easier than django.contrib.admin. Furthermore, the only dependencies are mongoengine and pymongo. Eventually django-mongonaut will be able to support installations without mongoengine.

Get MongoDB:

Download the right version per http://www.mongodb.org/downloads

Get mongoengine (and pymongo):

pip install mongoengine==0.6.2

Get the code:

pip install django-mongonaut==0.2.17

Install the dependency in your settings.py:

INSTALLED_APPS = (
...
'mongonaut',
...
)

You will need the following also set up:

  • django.contrib.sessions

  • django.contrib.messages

Add the mongonaut urls.py file to your urlconf file:

urlpatterns = patterns('',
    ...
    (r'^mongonaut/', include('mongonaut.urls')),
    ...
)

Configuration

django-mongonaut will let you duplicate much of what django.contrib.admin gives you, but in a way more suited for MongoDB. Still being implemented, but already works better than any other MongoDB solution for Django. A simple example:

# myapp/mongoadmin.py

# Import the MongoAdmin base class
from mongonaut.sites import MongoAdmin

# Import your custom models
from blog.models import Post

# Instantiate the MongoAdmin class
# Then attach the mongoadmin to your model
Post.mongoadmin = MongoAdmin()

Documentation

All the documentation for this project is hosted at http://django-mongonaut.rtfd.org.

Support this project!

I am making the world better by donating everything I earn via gittip to efforts that help other people learn Python. Go to gittip to donate!

Dependencies

  • mongoengine >=0.5.2

  • pymongo (comes with mongoengine)

  • sphinx (optional - for documentation generation)

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

django-mongonaut-0.2.18.tar.gz (35.6 kB view details)

Uploaded Source

File details

Details for the file django-mongonaut-0.2.18.tar.gz.

File metadata

File hashes

Hashes for django-mongonaut-0.2.18.tar.gz
Algorithm Hash digest
SHA256 80c598c9c072d3feab72714562a1495ecdeb25738457008847df6cb1de4d7cd5
MD5 255eb39d1bb8d7d6ab60e2bca525bf16
BLAKE2b-256 b2f3468173dc8bd7e902b60089e66caee0abce264a94ca510cf36999e1656949

See more details on using hashes here.

Provenance

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