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.0.tar.gz (2.9 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 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.0.tar.gz
Algorithm Hash digest
SHA256 50b8e899fccca55c280e114fc4698c077384188d9af0e0420b92f07d3cd921f8
MD5 4e1b1705f89854bce22aaa424713b338
BLAKE2b-256 91babb4fdd612c2f65ef614ed018a943a50a535ced86d5d4f700669fa78ccc9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f2649eaeff435b5050412960ae61f30d7836871ef782408a1102eee6b29080a
MD5 4733bda80d7027c504b8049d4247e178
BLAKE2b-256 ceba7527a5b38a8d15e57f9acf7d07bf37ca6f2a60c2cc4304406e8beb591abf

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