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.11.tar.gz (6.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.11-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.11.tar.gz
  • Upload date:
  • Size: 6.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.11.tar.gz
Algorithm Hash digest
SHA256 4c06dbb5ad2327cf88840c29acbd6ad55d3c9ec21481f57526bfe4a22255db7f
MD5 09fff67bd1dc650161115419b36a6074
BLAKE2b-256 bb905d4163732651e8a1d9b858cf9d094ecc2cecc1997e3ce4dcf346f3f2ae78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 375a96799b3836ccb5ace2d782dd093aea164d141ca4003ce957ff9009600322
MD5 08178729ed5a63c634a0d32fc24ada4c
BLAKE2b-256 952bf70236e2b26c14f20dfecab05840daac188e439744a6507f65cdab6f34ad

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