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.20.tar.gz (7.8 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.20-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.20.tar.gz
  • Upload date:
  • Size: 7.8 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.20.tar.gz
Algorithm Hash digest
SHA256 a85a2cdb9605f939557ac5b81f4624a825242986fd0060c3aa248cfbd1ea606e
MD5 fc1de62e9c9637016b12e97dd295f5ea
BLAKE2b-256 06df4016cd438e8838ab1b000e7fe52dd83367bf9d35d6bf9de81042c2d8a066

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 ca0771bdb8473d8cfd84c5b83d0140002459df8629ce2ae9687fd9c6a187afdc
MD5 b59f9d44b12c8c9a8017c53e6c9d9ff6
BLAKE2b-256 e8762e0294f6607e3fdfd86972c934e0373d7205d2d615589ddcbc23c419effb

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