A lightweight library for integrating Django with MongoDB.
Project description
Django-MongoLight
A library light for integrate Django with MongoDB
Instalation
pip install django-mongolight
- Use
- Configura tu base de datos en settings.py:
DATABASES = {
'default': {
'ENGINE': 'mongolight',
'NAME': 'mydatabase',
'HOST': 'localhost',
'PORT': 27017,
}
}
2.Create models:
from django.db import models
from mongolight.fields import ObjectIdField
class User(models.Model):
_id = ObjectIdField(primary_key=True)
name = models.CharField(max_length=100)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-mongolight-0.1.14.tar.gz.
File metadata
- Download URL: django-mongolight-0.1.14.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c2558d811e4ba12d39bc7f02afd878fa1d3c491075b5fdf966a85d2e533aed7
|
|
| MD5 |
fce368a74af646b0818193496db9435a
|
|
| BLAKE2b-256 |
05e882079b422907fdb5ddc1048a0cb0293f1a95832bd9e431efa9ebd0802de2
|
File details
Details for the file django_mongolight-0.1.14-py3-none-any.whl.
File metadata
- Download URL: django_mongolight-0.1.14-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03cd2d6d1fb577db3b64654f81471755fb03d11e5531baf6ba5929e508931bdd
|
|
| MD5 |
94957461dfd1481c242c9c955b283a53
|
|
| BLAKE2b-256 |
d8f211a8fb481cd782b0572f12375c7a79ea9f0c4ece301fcb075735b8ec1a37
|