Created
January 30, 2016 13:08
-
-
Save erayerdin/4c195d0d4db03e07b7df to your computer and use it in GitHub Desktop.
Brackets Snippets for Rapid Django Development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- trigger: block | |
description: Django Block | |
scope: html | |
mTime: 1452968392677 | |
text: | | |
{% block ${1:block_name} %} | |
${2} | |
{% endblock %} | |
- trigger: trans | |
description: Django Translation | |
scope: html | |
mTime: 1453979385032 | |
text: | | |
{% trans "${1}" as ${2:var} %}${3} | |
- trigger: response | |
description: Response for Django. | |
scope: python | |
mTime: 1453036573234 | |
text: | | |
response = HttpResponse(${1:data}, content_type=${2:content_type}) | |
response.status_code = ${3:status_code} | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment