- ARCHIVE / TAG ARCHIVE
- Preloading stuff in django’s interactive shell
Django’s shell is a fantastic way to interact with all the components of your django application, eg when testing new functionalities or debugging a nasty error. Sometimes though you end up loading the same variables or importing the same modules every time you run the shell , for example because you are trying out a […]
- Snippet to load stuff quickly in the Django shell
Sometimes you end up testing out things a lot using the handy django shell, but every time you’ve got to repeat the same commands to load all the necessary models, utils etc. etc. In order to do this automatically, I thought you had to modify the django-admin.py file or something like that. Nope! Here’s a […]