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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.17.tar.gz
  • Upload date:
  • Size: 6.1 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.17.tar.gz
Algorithm Hash digest
SHA256 c3ad1a7f34bf38d4bce085b54c1f5c71a5d67dfca6d0a1ee85423d6d76062c70
MD5 7bef5b7e630c379648f7ede9da9665cb
BLAKE2b-256 b641629d6f2f45de3ae2adf70173d4a1a4f8ee6b313d04256cdcbc11437fbbfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c809c6a527e1125b644583198e595b0d75e9af46e247d7321c531dd75336358c
MD5 269aa7f7a64ebbd8551825b75f68b65e
BLAKE2b-256 df8f1e41bad523d7f0ea7a1701f5c481fe0352ddb5e358bf5dab76edca9943ec

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