Skip to content

Update docs #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/extensions/debug_toolbar_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# Application definition

INSTALLED_APPS = [
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoAdminConfig",
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoAuthConfig",
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoContentTypesConfig",
"django_mongodb_extensions.mongo_apps.MongoAdminConfig",
"django_mongodb_extensions.mongo_apps.MongoAuthConfig",
"django_mongodb_extensions.mongo_apps.MongoContentTypesConfig",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Table of Contents
:maxdepth: 2

installation/index
third-party-library-support
third-party-library-support/index
supported-libraries/index

.. _`Django MongoDB Backend`: https://github.com/mongodb/django-mongodb-backend
Expand Down
7 changes: 0 additions & 7 deletions docs/source/installation/clone-repository.rst

This file was deleted.

51 changes: 47 additions & 4 deletions docs/source/installation/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,51 @@
Installation
============

Clone the repository
--------------------

.. toctree::
clone-repository
venv
usage
::

git clone https://github.com/mongodb-labs/django-mongodb-cli
cd django-mongodb-cli


Create a virtual environment
----------------------------

::

python -m venv .venv
source .venv/bin/activate


Install CLI
-----------

::

python -m pip install -e .

Install development dependencies
--------------------------------

::

dm repo clone -a

Usage
-----

.. code:: bash

$ dm --help
Usage: dm [OPTIONS] COMMAND [ARGS]...

Django MongoDB CLI

Options:
--help Show this message and exit.

Commands:
repo Run Django fork and third-party library tests.
startproject Run `startproject` with custom templates.
16 changes: 0 additions & 16 deletions docs/source/installation/usage.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/installation/venv.rst

This file was deleted.

15 changes: 12 additions & 3 deletions docs/source/supported-libraries/django-allauth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ Django allauth

.. _django-allauth-results:

Test suite
----------

Results
-------
~~~~~~~

Via ``dm repo test django-filter``

Expand All @@ -17,7 +20,7 @@ Via ``dm repo test django-filter``
- `django-filter.txt <../_static/django-filter.txt>`_

Settings
--------
~~~~~~~~

Via ``dm repo test django-filter --show``

Expand Down Expand Up @@ -78,7 +81,7 @@ Via ``dm repo test django-filter --show``
}

Tests
-----
~~~~~

Via ``dm repo test django-filter -l``

Expand Down Expand Up @@ -209,3 +212,9 @@ Via ``dm repo test django-filter -l``
├── headless_only
├── login_required_mw
└── regular

Project examples
----------------

Known issues
------------
8 changes: 7 additions & 1 deletion docs/source/supported-libraries/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
Supported libraries
===================

Overview
--------

|

+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
| **Library** | **Test suites** | **Project examples** | **Known limitations** | **Notes** |
| **Library** | **Test suites** | **Project examples** | **Known issues** | **Notes** |
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
| **django-allauth** | :ref:`63% passing <django-allauth-results>` | | | |
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
Expand All @@ -30,6 +33,9 @@ Supported libraries
| | | | | |
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+

Criteria
--------

.. toctree::
django-allauth
django-debug-toolbar
Expand Down
17 changes: 17 additions & 0 deletions docs/source/third-party-library-support/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Third party library support
===========================

Definition
-----------

This is the criteria used to determine if a third party library is supported
by Django MongoDB Backend. It is not a guarantee that the library will
work without issues, just that these criteria have been met.

Criteria
--------

.. toctree::
test-suites
project-examples
known-issues
4 changes: 4 additions & 0 deletions docs/source/third-party-library-support/known-issues.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. _`known_issues`:

Known issues
------------
4 changes: 4 additions & 0 deletions docs/source/third-party-library-support/project-examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. _`project_examples`:

Project examples
----------------
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
Third party library support
===========================

.. note::

This is the criteria used to determine if a third party library is supported
by Django MongoDB Backend. It is not a guarantee that the library will
work without issues, just that these criteria have been met.

Support for third party libraries is determined via the following:

- :ref:`Test suites <test_suites>`
- :ref:`Project examples <project_examples>`
- :ref:`Known limitations <known_limitations>`

.. _test_suites:

Test suites
Expand Down Expand Up @@ -43,15 +28,3 @@ For each third party library that is supported, the following tasks are performe
- The test suite is updated

- Replace static primary key references with dynamic references or static ``ObjectId`` references

.. _`project_examples`:

Project examples
----------------

.. _`known_limitations`:

Known limitations
-----------------

- URL configuration