Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (67 sloc) 2.02 KB
<?xml version='1.0' encoding='utf-8'?>
<snippets language="python">
<!-- Models -->
<snippet>
<tag>user</tag>
<description>Authentication</description>
<text><![CDATA[from django.contrib.auth.models import User]]></text>
</snippet>
<snippet>
<tag>permission</tag>
<description>Permissions</description>
<text><![CDATA[from django.contrib.auth.models import Permission]]></text>
</snippet>
<snippet>
<tag>models</tag>
<description>Import Models</description>
<text><![CDATA[from django.db import models]]></text>
</snippet>
<!-- Forms -->
<snippet>
<tag>forms</tag>
<description>Django Forms</description>
<text><![CDATA[from django import forms]]></text>
</snippet>
<snippet>
<tag>modelforms</tag>
<description>Model Forms</description>
<text><![CDATA[from django.forms import ModelForm]]></text>
</snippet>
<!-- URLs -->
<snippet>
<tag>reverse</tag>
<description>Reverse URL</description>
<text><![CDATA[from django.core.urlresolvers import reverse]]></text>
</snippet>
<snippet>
<tag>urlparse</tag>
<description>Reverse URL</description>
<text><![CDATA[from urlparse import urlparse]]></text>
</snippet>
<!-- HTTP -->
<snippet>
<tag>redirect</tag>
<description>HTTP Redirect</description>
<text><![CDATA[from django.http import HttpResponseRedirect]]></text>
</snippet>
<snippet>
<tag>http404</tag>
<description>HTTP Redirect</description>
<text><![CDATA[from django.http import Http404]]></text>
</snippet>
<snippet>
<tag>render</tag>
<description>Render</description>
<text><![CDATA[from django.shortcuts import render]]></text>
</snippet>
<snippet>
<tag>http404</tag>
<description>HTTP Redirect</description>
<text><![CDATA[from django.http import Http404]]></text>
</snippet>
<snippet>
<tag>response</tag>
<description>HTTP Response</description>
<text><![CDATA[from django.http import HttpResponse]]></text>
</snippet>
</snippets>
You can’t perform that action at this time.