Compare commits

..

2 Commits

Author SHA1 Message Date
Md. Babul Hasan (NoYoN)
a055eb1b65 Merge e5ebd5cf5c into 88e5be6e4b 2024-09-04 16:57:04 +03:00
Md. Babul Hasan (NoYoN)
e5ebd5cf5c new django command + update
Added the command which is used to deploy django project in local network and fixes a command
2023-08-26 20:30:29 +06:00
3 changed files with 2 additions and 8 deletions

View File

@@ -89,7 +89,8 @@ django-admin help # display usage information and a list
django-admin makemigrations # create new migrations to the database based on the changes detected in the models
django-admin migrate # synchronize the database state with your current state project models and migrations
django-admin remove_stale_contenttypes # Deletes stale content types (from deleted models) in your database.y.
django-admin runserver <port> # start the development webserver at 127.0.0.1 with the port <port> default 8000
python manage.py runserver # start the development webserver at 127.0.0.1 with the port <port> default 8000
python manage.py runserver 0.0.0.0:<port># start the development webserver at device ip with the port and accessible in local network
django-admin sendtestemail # Sends a test email to the email addresses specified as arguments.
django-admin shell # Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code.
django-admin showmigrations # Shows all available migrations for the current project.

View File

@@ -95,9 +95,3 @@ arr.reduce(callback[, initialValue]) // Apply a function against
arr.reduceRight(callback[, initialValue]) // Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value.
arr.some(callback[, initialValue]) // Returns true if at least one element in this array satisfies the provided testing function.
arr.values() // Returns a new Array Iterator object that contains the values for each index in the array.
// String methods
String.charAt(index) // Returns the character at the specified index in a string.
String.indexOf(character) // Returns the index of the first occurrence of a specified value in a string.
String.substring(starting_index, ending_index) // Returns a new string that is a subset of the original string.
String.substring(starting_index) // Returns a substring from starting index to last index of string.

View File

@@ -21,7 +21,6 @@ cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux
ip r # Display ip of the server
lsof -i :9000 # List process running on port 9000
kill -9 $(lsof -t -i:PORT) # Kill the process running on whichever port specified
journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service