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.23.tar.gz (8.0 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.23-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.23.tar.gz
  • Upload date:
  • Size: 8.0 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.23.tar.gz
Algorithm Hash digest
SHA256 6144e05c62ad674079a47dd08e06ec1d114a112ffa462d921b0ea259b768d495
MD5 3ca45f8b0983232e3bb0d5c7c2cdae57
BLAKE2b-256 f9b0ca0c58f2bf858fc7ea569a2f0bf519c7a39494e5e173397cd509f5757fa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 52d812e5becd196d5e312833fe4c8951df520400d605e3abba7b77d79ca424b6
MD5 cf850752f60dcb538411761d244757e0
BLAKE2b-256 697012f877683e672bce17d96bdc003df1b9a03e5f61a28d118c7f9f36f95473

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