Metadata-Version: 2.1
Name: django-mongolight
Version: 0.1.8
Summary: A lightweight library for integrating Django with MongoDB.
Home-page: https://github.com/bryancitu/django-mongolight
Author: Bryan Jesus Ramon Avila
Author-email: bryanjesus.ra@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: Django>=4.0
Requires-Dist: pymongo>=4.0

# Django-MongoLight

A library light for integrate Django with MongoDB

## Instalation

```bash
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)
```

