Skip to content

Commit 8071854

Browse files
committed
Fix manage.py references and showmigrations references
1 parent eb78dcc commit 8071854

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

plain-models/plain/models/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ plain makemigrations
125125
plain migrate
126126

127127
# See migration status
128-
plain showmigrations
128+
plain models show-migrations
129129
```
130130

131131
Migrations are Python files that describe database schema changes. They're stored in your app's `migrations/` directory.

plain-models/plain/models/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def describe_operation(operation):
502502
click.echo(f" {package}.{name}")
503503
click.echo(
504504
click.style(
505-
" Re-run 'manage.py migrate' if they are not marked as "
505+
" Re-run `plain migrate` if they are not marked as "
506506
"applied, and remove 'replaces' attributes in their "
507507
"Migration classes.",
508508
fg="yellow",
@@ -646,8 +646,8 @@ def describe_operation(operation):
646646
)
647647
click.echo(
648648
click.style(
649-
" Run 'manage.py makemigrations' to make new "
650-
"migrations, and then re-run 'manage.py migrate' to "
649+
" Run `plain makemigrations` to make new "
650+
"migrations, and then re-run `plain migrate` to "
651651
"apply them.",
652652
fg="yellow",
653653
)
@@ -821,7 +821,7 @@ def show_list(db_connection, package_names):
821821
if plan_node in recorded_migrations:
822822
output = f" [X] {title}"
823823
else:
824-
title += " Run 'manage.py migrate' to finish recording."
824+
title += " Run `plain migrate` to finish recording."
825825
output = f" [-] {title}"
826826
if verbosity >= 2 and hasattr(applied_migration, "applied"):
827827
output += f" (applied at {applied_migration.applied.strftime('%Y-%m-%d %H:%M:%S')})"
@@ -1001,7 +1001,7 @@ def find_migration(loader, package_label, name):
10011001
f"The migration '{start_migration}' cannot be found. Maybe it comes after "
10021002
f"the migration '{migration}'?\n"
10031003
f"Have a look at:\n"
1004-
f" python manage.py showmigrations {package_label}\n"
1004+
f" plain models show-migrations {package_label}\n"
10051005
f"to debug this issue."
10061006
)
10071007

plain-oauth/plain/oauth/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AppRouter(Router):
5959
Then run migrations:
6060

6161
```sh
62-
python manage.py migrate plain.oauth
62+
plain migrate plain.oauth
6363
```
6464

6565
Create a new OAuth provider ([or copy one from our examples](https://github.com/forgepackages/plain-oauth/tree/master/provider_examples)):
@@ -254,7 +254,7 @@ This library comes with a Django system check to ensure you don't _remove_ a pro
254254
You do need to specify the `--database` for this to run when using the check command by itself:
255255

256256
```sh
257-
python manage.py check --database default
257+
plain check --database default
258258
```
259259

260260
## FAQs

plain-oauth/plain/oauth/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def check(cls, **kwargs):
160160
A system check for ensuring that provider_keys in the database are also present in settings.
161161
162162
Note that the --database flag is required for this to work:
163-
python manage.py check --database default
163+
plain check --database default
164164
"""
165165
errors = super().check(**kwargs)
166166

@@ -175,7 +175,7 @@ def check(cls, **kwargs):
175175
cls.objects.values_list("provider_key", flat=True).distinct()
176176
)
177177
except (OperationalError, ProgrammingError):
178-
# Check runs on manage.py migrate, and the table may not exist yet
178+
# Check runs on plain migrate, and the table may not exist yet
179179
# or it may not be installed on the particular database intentionally
180180
return errors
181181

0 commit comments

Comments
 (0)