|
1 |
| -======================== |
2 |
| - Django MongoDB Engine |
3 |
| -======================== |
4 |
| -:Version: 0.1.1 |
5 |
| -:Info: It's a database backend that adds mongodb support to django |
6 |
| -:Author: Flavio [FlaPer87] Percoco Premoli (http://github.com/FlaPer87) and Alberto [aparo] Paro (http://github.com/aparo) |
7 |
| -:Web: http://github.com/FlaPer87/django-mongodb-engine/ |
| 1 | +============== |
| 2 | +IMPORTANT NOTE |
| 3 | +============== |
| 4 | +django-mongodb-engine has been moved to http://github.com/django-mongodb-engine/mongodb-engine |
| 5 | + |
| 6 | +I'll keep this repo up to date. |
| 7 | + |
| 8 | +========================================= |
| 9 | + Django MongoDB Engine for django-nonrel |
| 10 | +========================================= |
| 11 | +:Web: http://github.com/django-mongodb-engine/mongodb-engine/ |
| 12 | +:Mailing List: http://groups.google.com/group/django-non-relational |
| 13 | +:Bug tracker: http://github.com/django-mongodb-engine/mongodb-engine/issues/ |
| 14 | +:License: 2-clause BSD |
8 | 15 | :Download: http://pypi.python.org/pypi/django_mongodb_engine/
|
9 |
| -:Source: http://github.com/FlaPer87/django-mongodb-engine/ |
10 | 16 | :Keywords: django, mongodb, orm, nosql, database, python
|
11 | 17 |
|
12 | 18 | Requirements
|
13 | 19 | ============
|
| 20 | +* MongoDB of course ;-) |
| 21 | +* PyMongo (PyPI) |
| 22 | +* `Django-nonrel`_ |
| 23 | +* `djangotoolbox`_ |
14 | 24 |
|
15 |
| -- Django non rel http://github.com/aparo/django-nonrel |
16 |
| -- Djangotoolbox http://github.com/aparo/djangotoolbox or http://bitbucket.org/wkornewald/djangotoolbox |
17 |
| - |
18 |
| -Infographics |
19 |
| -============ |
20 |
| -:: |
21 |
| - |
22 |
| - - Django Nonrel branch |
23 |
| - - Manager |
24 |
| - - Compiler (MongoDB Engine one) |
25 |
| - - MongoDB |
26 |
| - |
27 |
| -django-mongodb-engine uses the new django1.2 multi-database support and sets to the model the database using the "django_mongodb_engine.mongodb". |
28 |
| - |
29 |
| -Examples |
30 |
| -======== |
31 |
| -For detailed examples see: (http://github.com/FlaPer87/django-mongodb-engine/tree/master/tests/testproj/) |
32 |
| -:: |
33 |
| - |
34 |
| - class Person(models.Model): |
35 |
| - name = models.CharField(max_length=20) |
36 |
| - surname = models.CharField(max_length=20) |
37 |
| - age = models.IntegerField(null=True, blank=True) |
38 |
| - |
39 |
| - def __unicode__(self): |
40 |
| - return u"Person: %s %s" % (self.name, self.surname) |
41 |
| - |
42 |
| - >> p, created = Person.objects.get_or_create(name="John", defaults={'surname' : 'Doe'}) |
43 |
| - >> print created |
44 |
| - True |
45 |
| - >> p.age = 22 |
46 |
| - >> p.save() |
47 |
| - |
48 |
| - === Querying === |
49 |
| - >> p = Person.objects.get(name__istartswith="JOH", age=22) |
50 |
| - >> p.pk |
51 |
| - u'4bd212d9ccdec2510f000000' |
52 |
| - |
53 |
| - |
54 |
| -Bug tracker |
55 |
| -=========== |
56 |
| - |
57 |
| -If you have any suggestions, bug reports or annoyances please report them |
58 |
| -to our issue tracker at http://github.com/FlaPer87/django-mongodb-engine/issues/ |
59 |
| - |
60 |
| -Wiki |
61 |
| -==== |
62 |
| - |
63 |
| -http://wiki.github.com/FlaPer87/django-mongodb-engine/ |
| 25 | +.. _Django-nonrel: http://bitbucket.org/wkornewald/django-nonrel |
| 26 | +.. _djangotoolbox: http://bitbucket.org/wkornedwald/djangotoolbox |
64 | 27 |
|
65 | 28 | Contributing
|
66 | 29 | ============
|
67 |
| - |
68 |
| -Development of ``django-mongodb-engine`` happens at Github: http://github.com/FlaPer87/django-mongodb-engine/ |
69 |
| - |
70 |
| -You are highly encouraged to participate in the development |
71 |
| -of ``django-mongodb-engine``. If you don't like Github (for some reason) you're welcome |
72 |
| -to send regular patches. |
73 |
| - |
74 |
| -License |
75 |
| -======= |
76 |
| - |
77 |
| -This software is licensed under the ``New BSD License``. See the ``LICENSE`` |
78 |
| -file in the top distribution directory for the full license text. |
79 |
| - |
80 |
| -.. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround |
| 30 | +You are highly encouraged to participate in the development, simply use |
| 31 | +GitHub's fork/pull request system. |
| 32 | +If you don't like GitHub (for some reason) you're welcome |
| 33 | +to send regular patches to the mailing list. |
0 commit comments