Skip to main content

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
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-mongolight-0.1.18.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_mongolight-0.1.18-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file django-mongolight-0.1.18.tar.gz.

File metadata

  • Download URL: django-mongolight-0.1.18.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for django-mongolight-0.1.18.tar.gz
Algorithm Hash digest
SHA256 f4f6a8d269afa1e9fb3c9580409490ea8081445feadc332e8e64b4b3f7e6d4e3
MD5 8e8637857b059aea269afad8ea65bc7f
BLAKE2b-256 f65945b823a589a8d356500c385fbe96846d1e1a238d1b5551a60110c0d3d364

See more details on using hashes here.

File details

Details for the file django_mongolight-0.1.18-py3-none-any.whl.

File metadata

File hashes

Hashes for django_mongolight-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 dc99986d59e1d81fff7d20d69eb6069b3ea1221385b03c7fced77724d150c14b
MD5 c54822192518bc9db459783080d9159e
BLAKE2b-256 5632e40f0747e2367493d7f20c2e1a1777bde980acd0351d6853e0cb1d3d975a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page