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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.7.tar.gz
  • Upload date:
  • Size: 5.5 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.7.tar.gz
Algorithm Hash digest
SHA256 a49655f37c534c1683e5b7ace0e28742922069618dfe5afc0f3e84f67753bcde
MD5 dad88632e8b6ee9b1be126eb6a84181a
BLAKE2b-256 4a6b890d763c2c5321b20e12b6ab50d4519c2d0a8cbd0f354e0934b438c1053b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2cde3a8d5ad62d78af56f25bc7a9462b3d5e806bbf49a14541dbc698e704f6
MD5 880a9e6e6e6a4a16c62d8d79ce0384de
BLAKE2b-256 0cedc18c2bfd3283d575e2ab966957097f3a493942b11df78637fc1093d41db5

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