Skip to content

Commit 7df28e0

Browse files
committed
Code review fixes
1 parent 405a416 commit 7df28e0

14 files changed

+24
-20
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

django_mongodb_cli/config.py

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"settings": {
2727
"test": {
28-
"source": join("config", "django_settings.py"),
28+
"source": join("config", "django", "django_settings.py"),
2929
"target": join("src", "django", "tests", "mongo_settings.py"),
3030
},
3131
"migrations": {
32-
"source": join("config", "django_settings.py"),
32+
"source": join("config", "django", "django_settings.py"),
3333
"target": join("src", "django", "tests", "mongo_settings.py"),
3434
},
3535
"module": {
@@ -44,7 +44,7 @@
4444
},
4545
"django-filter": {
4646
"apps_file": {
47-
"source": join("config", "filter_apps.py"),
47+
"source": join("config", "filter", "filter_apps.py"),
4848
"target": join("src", "django-filter", "tests", "mongo_apps.py"),
4949
},
5050
"test_command": "./runtests.py",
@@ -61,11 +61,11 @@
6161
"clone_dir": join("src", "django-filter"),
6262
"settings": {
6363
"test": {
64-
"source": join("config", "filter_settings.py"),
64+
"source": join("config", "filter", "filter_settings.py"),
6565
"target": join("src", "django-filter", "tests", "settings.py"),
6666
},
6767
"migrations": {
68-
"source": join("config", "filter_settings.py"),
68+
"source": join("config", "filter", "filter_settings.py"),
6969
"target": join("src", "django-filter", "tests", "settings.py"),
7070
},
7171
"module": {
@@ -77,23 +77,27 @@
7777
},
7878
"django-rest-framework": {
7979
"apps_file": {
80-
"source": join("config", "rest_framework_apps.py"),
80+
"source": join("config", "rest_framework", "rest_framework_apps.py"),
8181
"target": join("src", "django-rest-framework", "tests", "mongo_apps.py"),
8282
},
8383
"migrations_dir": {
84-
"source": join("src", "django-mongodb-project", "mongo_migrations"),
84+
"source": join(
85+
"src", "rest_framework", "django-mongodb-project", "mongo_migrations"
86+
),
8587
"target": join("src", "django-rest-framework", "tests", "mongo_migrations"),
8688
},
8789
"test_command": "./runtests.py",
8890
"test_dir": join("src", "django-rest-framework"),
8991
"clone_dir": join("src", "django-rest-framework"),
9092
"settings": {
9193
"test": {
92-
"source": join("config", "rest_framework_settings.py"),
94+
"source": join(
95+
"config", "rest_framework", "rest_framework_settings.py"
96+
),
9397
"target": join("src", "django-rest-framework", "tests", "conftest.py"),
9498
},
9599
"migrations": {
96-
"source": join("config", "rest_framework_migrate.py"),
100+
"source": join("config", "rest_framework", "rest_framework_migrate.py"),
97101
"target": join("src", "django-rest-framework", "tests", "conftest.py"),
98102
},
99103
"module": {
@@ -105,7 +109,7 @@
105109
},
106110
"wagtail": {
107111
"apps_file": {
108-
"source": join("config", "wagtail_apps.py"),
112+
"source": join("config", "wagtail", "wagtail_apps.py"),
109113
"target": join("src", "wagtail", "wagtail", "test", "mongo_apps.py"),
110114
},
111115
"migrations_dir": {
@@ -122,13 +126,13 @@
122126
"clone_dir": join("src", "wagtail"),
123127
"settings": {
124128
"test": {
125-
"source": join("config", "wagtail_settings.py"),
129+
"source": join("config", "wagtail", "wagtail_settings.py"),
126130
"target": join(
127131
"src", "wagtail", "wagtail", "test", "mongo_settings.py"
128132
),
129133
},
130134
"migrations": {
131-
"source": join("config", "settings_wagtail.py"),
135+
"source": join("config", "wagtail", "settings_wagtail.py"),
132136
"target": join(
133137
"src", "wagtail", "wagtail", "test", "mongo_settings.py"
134138
),
@@ -145,7 +149,7 @@
145149
},
146150
"django-debug-toolbar": {
147151
"apps_file": {
148-
"source": join("config", "debug_toolbar_apps.py"),
152+
"source": join("config", "debug_toolbar", "debug_toolbar_apps.py"),
149153
"target": join(
150154
"src", "django-debug-toolbar", "debug_toolbar", "mongo_apps.py"
151155
),
@@ -155,13 +159,13 @@
155159
"clone_dir": join("src", "django-debug-toolbar"),
156160
"settings": {
157161
"test": {
158-
"source": join("config", "debug_toolbar_settings.py"),
162+
"source": join("config", "debug_toolbar", "debug_toolbar_settings.py"),
159163
"target": join(
160164
"src", "django-debug-toolbar", "debug_toolbar", "mongo_settings.py"
161165
),
162166
},
163167
"migrations": {
164-
"source": join("config", "debug_toolbar_settings.py"),
168+
"source": join("config", "debug_toolbar", "debug_toolbar_settings.py"),
165169
"target": join(
166170
"src", "django-debug-toolbar", "debug_toolbar", "mongo_settings.py"
167171
),
@@ -180,16 +184,16 @@
180184
"test_dir": join("src", "django-allauth"),
181185
"clone_dir": join("src", "django-allauth"),
182186
"apps_file": {
183-
"source": join("config", "allauth_apps.py"),
187+
"source": join("config", "allauth", "allauth_apps.py"),
184188
"target": join("src", "django-allauth", "allauth", "mongo_apps.py"),
185189
},
186190
"settings": {
187191
"test": {
188-
"source": join("config", "allauth_settings.py"),
192+
"source": join("config", "allauth", "allauth_settings.py"),
189193
"target": join("src", "django-allauth", "allauth", "mongo_settings.py"),
190194
},
191195
"migrations": {
192-
"source": join("config", "allauth_settings.py"),
196+
"source": join("config", "allauth", "allauth_settings.py"),
193197
"target": join("src", "django-allauth", "allauth", "mongo_settings.py"),
194198
},
195199
"module": {

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ django-open:
3636
alias o := django-open
3737

3838
[group('django')]
39-
django-serve:
39+
django-runserver:
4040
dm runserver
41-
alias s := django-serve
41+
alias s := django-runserver
4242

4343
[group('django')]
4444
django-migrate:

0 commit comments

Comments
 (0)