With the virtual environment activated and your project directory selected as the current directory, enter the following command in your command-line tool:
(env)$ python manage.py shell
By executing the preceding command, you will enter an interactive Python shell, configured for your Django project, where you can play around with the code, inspect the classes, try out methods, or execute scripts on the fly. In this recipe, we will go over the most important functions that you need to know in order to work with the Django shell.