django-mongokit 0.1.7 - Free django-mongokit Download at Downloadplex.com

django-mongokit 0.1.7 - Free django-mongokit Download at Downloadplex.com
Check todays, this month or hot new software. This week most downloaded new software. You are not Logged in! Do you want to Log in or Register?
Downloadplex.com » Linux » Network & Internet » Other » django-mongokit 0.1.7
 

linux default icon django-mongokit 0.1.7

download django-mongokit 0.1.7 now
Download Now (0.01 Mb)
License: Freeware, developed by Peter Bengtsson, listed in Network & Internet, Other
 
 

django-mongokit Technical Information

 
no screenshot

User Tools

django-mongokit Publisher's description:

from Peter Bengtsson

Bridging Django to MongoDB with the MongoKit ODM

django-mongokit's purpose is to make it easy to use MongoKit to
define your models for Django if you prefer to use MongoDB instead of a relational database. This kit takes care of the boilerplate and makes your MongoKit documents work better with Django as it defines a `_meta` class attribute when registering.

Installation:

pip/easy_install django-mongokit

Usage/Configuration:

First of all you need to define a name of the database and but that into your `settings.DATABASES` directive. Here's an example:

DATABASES = {
'default': {
'ENGINE': 'sqlite3',
'NAME': 'example-sqlite3.db',
},
'mongodb': {
'ENGINE': 'django_mongokit.mongodb',
'NAME': 'example',
},
}

Note that `default` and `mongodb` are mandatory keys in this settings. What you can change is the `NAME` part under `DATABASES['mongodb']`.

In Django, you might be used to doing something like this:

from django.db import models

class Talk(models.Model):
topic = models.CharField(max_length=250)
date = models.DateTimeField()

Now, with `django_mongokit` you can do this:

from django_mongokit.document import DjangoDocument

class Talk(DjangoDocument):
structure = {
'topic': unicode,
'date': datetime.datetime
}

This base class gives you some benefits out-of-the-box which will hopefully make working with MongoKit documents easier such as `pk`. This will return the `ObjectID` of an instance as a byte string which can be very useful for mapping URLs and finding documents by ID. For example:

>>> from mongokit import Connection
>>> conn = Connection()
>>> from exampleapp.models import Talk
>>> conn.register([Talk])
>>> database = conn['example']
>>> collection = database['talks']
>>> talk = collection.Talk.find_one()
>>> talk
'4b87c6b19d40b3375a000001'

There's also the `_meta` attribute which Django people will be familiar with:

>>> talk._meta
< Meta Talk 'Talk', 'Talks' >
>>> talk._meta.verbose_name
'Talk'
>>> talk._meta.verbose_name_plural
'Talks'

If you want to override any of the `_meta` attributes you do it just like you do it with the Django ORM:

class Talk(models.Model):
...
class Meta:
verbose_name_plural = u"Talkings"

A limited set of signals are fired when working with `django_mongokit` documents. These are:

* pre_delete
* post_delete
* pre_save
* post_save

Examples:

`django-mongokit` comes with an example project and an example app that does some basic things. It might be a good source of inspiration for how to use `django-mongokit` to look at this example app.

#md5=613f9adbf09f742eafbd55a253828292
You can free download django-mongokit 0.1.7 now.

System Requirements:

· Python
· Django

- Download django-mongokit 0.1.7 freeDownload django-mongokit 0.1.7 free


 

django-mongokit Related Tags:

    gtgtgt,     class,     django,     documents,     import,     mongokit,     meta,     database,     working,     attribute,     engine,     talk,     talkmodelsmodel,     django mongokit,     connection,     039name039,     models
 

Popular Searches:

No related tags
 
 

django-mongokit Related downloads:

 
linux default icon BitNami Django Stack for Linux 1.1.1-2
BitNami Django Stack provides an installer that greatly simplifies the installation of Django and its runtime dependencies.
02-02-2010 20:32:21 | Freeware | Downloads: (34)
linux default icon django-saddle 0.2 / 0.3 B2
Settings on steroids and some shortcuts for Django
01-07-2010 23:45:51 | Freeware | Downloads: (10)
linux default icon django-lazysignup for Linux 0.1.1
Lazy signup for Django
31-01-2010 21:07:38 | Freeware | Downloads: (19)
linux default icon django-simple-news 1.0
News application for Django
09-06-2010 22:07:47 | Freeware | Downloads: (11)
linux default icon django-richtemplates 0.3.1
Templates, media, tags for Django based on Java Richfaces
27-05-2010 04:42:52 | Freeware | Downloads: (14)
linux default icon django-mongodb-cache 0.1.0
Django cache backend for mongodb
06-05-2010 22:54:00 | Freeware | Downloads: (9)
linux default icon django-versions 1.0.1
django-versions allows you to version the data stored in django models seamlessly.
18-08-2010 21:29:54 | Freeware | Downloads: (3)
linux default icon django-queries 0.1
Generic query interface for django models
03-06-2010 23:14:12 | Freeware | Downloads: (9)
django-celery 2.0.0 icon django-celery 2.0.0
django-celery - Celery Integration for Django
01-07-2010 21:17:30 | Freeware | Downloads: (7)
linux default icon django-permissions 1.0 Beta 3
Generic per-object permissions for Django
09-07-2010 00:09:08 | Freeware | Downloads: (11)

Network & Internet Related Category

 

django-mongokit Voting and Download Button For Your Site:

To link back to this page, please copy code below and insert in your page. All visits come thru this code will add a 10 point vote to this software.

Example:
Rate this software with 5 stars from downloadplex.com.     

Downloadplex.com periodically updates pricing and software information of django-mongokit from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using django-mongokit crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of django-mongokit Edition.
Downloadplex.com also does not provide download link for django-mongokit from Rapidshare, Hotfile, Megaupload, Yousendit, Mediafire, Filefactory and other Free file hosting service also. The download file is obtained directly from the publisher, not from any Peer to Peer file sharing applications such as Shareaza, Limewire, Kazaa, Imesh, eDonkey, eMule, Ares, BearShare, Overnet, Morpheus, BitTorrent Azureus and WinMX

Translate this page:

Newsletter

Use FeedBurner to get latest software free downloads via email

Enter your email address:

Delivered by FeedBurner

User Rating

User Rating:
         
Rated by: 0 user(s)
Visitors Rating:
         
Rated by: 0 visitor(s)
Your opinion is important!

Review it!

Advertise