Skip to main content

django-mongonaut

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)

Metadata

Release files for django-mongonaut 0.2.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mongonaut 0.2.18
File Size Uploaded
django-mongonaut-0.2.18.tar.gz 35.6 kB Details

Release files / django-mongonaut-0.2.18.tar.gz

Download URL django-mongonaut-0.2.18.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
80c598c9c072d3feab72714562a1495ecdeb25738457008847df6cb1de4d7cd5
BLAKE2b-256 checksum
How to use checksums
b2f3468173dc8bd7e902b60089e66caee0abce264a94ca510cf36999e1656949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.21

1 release file

0.2.20

1 release file

0.2.19

1 release file

This release

0.2.18 This release

1 release file

0.2.17

1 release file

0.2.16

1 release file

0.2.15

1 release file

0.2.14

1 release file

0.2.13

1 release file

0.2.12

1 release file

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page