From 166ca58ac37dd641bbdad3a0cbf29fc0dc279f36 Mon Sep 17 00:00:00 2001 From: Manoj Tyagi <38884133+thewolfcommander@users.noreply.github.com> Date: Thu, 10 Oct 2019 23:45:55 +0530 Subject: [PATCH] Four more django-admin commands added I have added four more app-related django-admin commands. --- backend/django.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/django.py b/backend/django.py index a30a9b4..dd50a37 100644 --- a/backend/django.py +++ b/backend/django.py @@ -69,3 +69,15 @@ django-admin sqlmigrate # Prints the SQL statements for the nam django-admin sqlsequencereset # Prints the SQL statements for resetting sequences for the given app name(s). django-admin squashmigrations # Squashes an existing set of migrations (from first until specified) into a single new one. django-admin testserver # Runs a development server with data from the given fixture(s). + + + +################################################################################### +# App related commands ####################################################### +################################################################################### + +django-admin changepassword # Allows changing a user’s password. It prompts you to enter a new password twice for the given user. +django-admin createsuperuser # Creates a superuser account (a user who has all permissions). +django-admin remove_stale_contenttypes # Deletes stale content types (from deleted models) in your database. +django-admin clearsessions # Can be run as a cron job or directly to clean out expired sessions. +django-admin collectstatic # Helps to collect all the static files in the one mentioned directory.