A catalog of opinionated Django code snippets to use with the live template functionality of Jetbrain IDEs.
Learn more about live templates here: https://www.jetbrains.com/help/pycharm/using-live-templates.html
- Download the Django snippets.xml file. (Right click + Save as...)
- Move the file to the
templates
folder of your IDE
Windows
C:\Users\{username}\.PyCharm{version}\config\templates
macOS
~/Library/Application Support/JetBrains/PyCharm{version}/templates
Linux
~/.config/JetBrains/PyCharm{version}/templates
- Restart your IDE
- See the Live templates documentation for more information on the different templates.
- The templates are opinionated and are aimed to work with a specific project structure. Feel free to fork this repo and adapt the templates to your needs.