-
Notifications
You must be signed in to change notification settings - Fork 1
Add dm
cli + docs
#1
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
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6095f14
Add justfile
aclark4life 050da41
Add pyproject.toml
aclark4life f023183
Add python recipes
aclark4life fe6d104
Add dj-cli and pre-commit hooks
aclark4life aff6e0c
Add `dm` cli + docs
aclark4life 405a416
Remove comments, enable cache
aclark4life 7df28e0
Code review fixes
aclark4life 9fbe39c
Remove comment
aclark4life 17f2311
Move DATABASES config to utils
aclark4life 86db722
Add django-allauth docs
aclark4life 9b93b13
Add django-rest-framework docs
aclark4life 0ab3c10
Add django-debug-toolbar docs
aclark4life 1f1c47c
Add django-debug-toolbar docs
aclark4life 75ead5b
Add django-debug-toolbar docs
aclark4life 7dd4a0e
Remove apply_patches
aclark4life File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,33 @@ | ||
.envrc | ||
.idea/ | ||
backend/ | ||
frontend/ | ||
django_mongodb_cli.egg-info/ | ||
__pycache__ | ||
manage.py | ||
mongo_app/ | ||
mongo_migrations/ | ||
mongo_project/ | ||
node_modules/ | ||
server.log | ||
server.pid | ||
.babelrc | ||
.browserslistrc | ||
.eslintrc | ||
.nvmrc | ||
.stylelintrc.json | ||
frontend/ | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
apps/ | ||
!test/apps/ | ||
src/ | ||
!project_templates/project_template/mongo_migrations | ||
home/ | ||
.dockerignore | ||
Dockerfile | ||
requirements.txt | ||
search/ | ||
uv.lock | ||
docs/_build/ |
This file contains hidden or 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,22 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.3 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/djlint/djLint | ||
rev: v1.36.3 | ||
hooks: | ||
- id: djlint-reformat-django | ||
- id: djlint-django |
This file contains hidden or 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,22 @@ | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version, and other tools you might need | ||
build: | ||
os: ubuntu-24.04 | ||
tools: | ||
python: "3.13" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Optionally, but recommended, | ||
# declare the Python requirements required to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
# python: | ||
# install: | ||
# - requirements: docs/requirements.txt |
This file contains hidden or 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,35 @@ | ||
# django-mongodb-cli | ||
|
||
## About | ||
|
||
For testing [django-mongodb-backend](https://github.com/mongodb-labs/django-mongodb-backend) | ||
with [MongoDB's Django fork](https://github.com/mongodb-forks/django) and [third party libraries](#third-party-libraries). | ||
|
||
> [!NOTE] | ||
> [MongoDB's Django fork](https://github.com/mongodb-forks/django) is for *testing* [django-mongodb-backend](https://github.com/mongodb-labs/django-mongodb-backend) | ||
> and is not a requirement for *using* [django-mongodb-backend](https://github.com/mongodb-labs/django-mongodb-backend). | ||
|
||
## Installation | ||
|
||
```bash | ||
git clone https://github.com/mongodb-labs/django-mongodb-cli | ||
cd django-mongodb-cli | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
just install | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
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. | ||
``` |
This file contains hidden or 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,40 @@ | ||
from django.contrib.admin.apps import AdminConfig | ||
from django.contrib.auth.apps import AuthConfig | ||
from django.contrib.contenttypes.apps import ContentTypesConfig | ||
from allauth.account.apps import AccountConfig | ||
from allauth.socialaccount.apps import SocialAccountConfig | ||
from allauth.usersessions.apps import UserSessionsConfig | ||
from allauth.mfa.apps import MFAConfig | ||
from allauth.headless.apps import HeadlessConfig | ||
|
||
|
||
class MongoAdminConfig(AdminConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoAuthConfig(AuthConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoContentTypesConfig(ContentTypesConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoHeadlessConfig(HeadlessConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoMFAConfig(MFAConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoUserSessionsConfig(UserSessionsConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoAccountConfig(AccountConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" | ||
|
||
|
||
class MongoSocialAccountConfig(SocialAccountConfig): | ||
default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.