Skip to content

Instantly share code, notes, and snippets.

@erayerdin
Created January 30, 2016 13:08
Show Gist options
  • Save erayerdin/4c195d0d4db03e07b7df to your computer and use it in GitHub Desktop.
Save erayerdin/4c195d0d4db03e07b7df to your computer and use it in GitHub Desktop.
Brackets Snippets for Rapid Django Development
- 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