-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '27b68eff27f127fc1c4126d3d0b8be88fc87f060'
- Loading branch information
Showing
4,342 changed files
with
1,071 additions
and
429,540 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Use Mongodb as a backend database for your django project, without changing a | ||
single django model! | ||
|
||
Usage | ||
----- | ||
|
||
1. Install djongo:: | ||
|
||
pip install djongo | ||
|
||
2. Into settings.py file of your project, add:: | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'djongo', | ||
'NAME': 'your-db-name', | ||
} | ||
} | ||
|
||
3. Run (ONLY the first time to create collections in mongoDB):: | ||
|
||
manage.py makemigrations | ||
manage.py migrate | ||
|
||
YOUR ARE SET! HAVE FUN! | ||
|
||
Requirements | ||
------------ | ||
|
||
1. Djongo requires python 3.6 or above. | ||
|
||
|
||
How it works | ||
------------ | ||
|
||
Djongo is a SQL to mongodb query transpiler. It translates a SQL query string | ||
into a mongoDB query document. As a result, all Django features, models etc | ||
work as is. | ||
|
||
Django contrib modules:: | ||
|
||
'django.contrib.admin', | ||
'django.contrib.auth', | ||
'django.contrib.sessions', | ||
|
||
and others... fully supported. | ||
|
||
Important links | ||
--------------- | ||
|
||
* `Full Documentation <https://www.djongomapper.com/>`_ | ||
* `Source code <https://github.com/doableware/djongo>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
# This version of Djongo was made possible by | ||
# the generous contributions from: | ||
# | ||
# * Zachary Sizemore | ||
# * Wayne Van Son | ||
# * Norman Niemer | ||
# * Renz Ladia | ||
# * thestick613 | ||
|
||
__version__ = '1.3.6' | ||
__version__ = '1.3.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools"] | ||
|
||
[project] | ||
dynamic = ["version", "optional-dependencies"] | ||
name = "djongo" | ||
dependencies = [ | ||
'sqlparse==0.2.4', | ||
'pymongo>=3.7.0,<=3.11.4', | ||
'django>=2.1,<=3.1.12', | ||
'pytz>=2018.5' | ||
] | ||
authors = [ | ||
{ name = "doableware", email = '[email protected]' } | ||
] | ||
license= {text = "AGPL"} | ||
keywords = ["Django", "Djongo", "MongoDB", "driver", "connector"] | ||
requires-python = ">=3.6" | ||
classifiers = [ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3.6', | ||
] | ||
description = "Djongo: The Django MongoDB connector" | ||
readme = "README.md" | ||
[project.urls] | ||
Homepage = "https://www.djongomapper.com/" | ||
Documentation = "https://www.djongomapper.com/docs/" | ||
Repository = "https://github.com/doableware/djongo.git" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "djongo.__version__"} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/ |
Oops, something went wrong.