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.8.tar.gz (5.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.8-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.8.tar.gz
  • Upload date:
  • Size: 5.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.8.tar.gz
Algorithm Hash digest
SHA256 63948d04cf258c1a8e3bff6c0dc5842edcabe21804b4320cf87c9dd9f1e155a3
MD5 7d7858f9e5535d73db47ba1fe83af78f
BLAKE2b-256 743c6b5706e86b949103eef66d673173ed741a49b901ecc7803ce1a878baf58a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4380b12aa612c16f43795f156306cb4630aa92e695bbf249b42bb58e01d89799
MD5 1c57c7798962ab3be896c76c6a4101ca
BLAKE2b-256 d5aac08ddd0d2a63b43c074ae7eddf9f248067c4dc02bd476a064d69cc837d76

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