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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-mongolight-0.1.1.tar.gz
  • Upload date:
  • Size: 4.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.1.tar.gz
Algorithm Hash digest
SHA256 758c3d31ed3870476f29e2ae3e9fd4b143ee75b9e21f1ca0d0728b9d872bd7a2
MD5 4ba5ea8492d1d3dbff3f5c40e45ab75d
BLAKE2b-256 dccd7ca1ac55a3e07364924fe97e0a256aec4c6ffe5cfc583d89612cf9ec4adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mongolight-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09ba1fc976fb82b64370c9c2f5736c7a08af7b2003d84d1db77dab0bcc235b85
MD5 48790f9d008d81b6232316e0f480568d
BLAKE2b-256 4c1d6b89b24982ea7ae616642cb33a9c871ea931b922b1e29663e9cf88df757f

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