Coder Social home page Coder Social logo

django-atom's Introduction

Django Support for Atom

Install

$ apm install django-atom

Release Notes

0.1.0

0.2.0

  • Support for django forms
  • Snippets for class based views

0.2.2

  • Fixed bug in django shortcuts color syntax
  • Color syntax in settings constants

0.2.3

  • Color syntax in html templates

0.2.4

  • Fixed bugs in template syntax color
  • Working with Skeletons is easier
  • Add utils Snippets

Django Template Snippets

Abbreviation Tag
autoescape {% autoescape %} {% autoescape %}
block {% block %} {% endblock %}
blocktrans {% blocktrans with as %} {% endblocktrans %}
comment {% comment %} {% endcomment %}
csrf {% csrf_token %}
cycle {% cycle as %}
debug {% debug %}
else {% else %}
empty {% empty %}
extends {% extends "" %}
filter {% filter %} {% endfilter %}
firstof {% firstof %}
for {% for in %} {% endfor %}
fore {% for in %} {% empty %} {% endfor %}
if {% if %} {% endif %}
ifchanged {% ifchanged %} {% endifchanged %}
ife {% if %} {% else %} {% endif %}
ifelse {% if %} {% else %} {% endif %}
ifeq {% ifequal %} {% endifequal %}
ifequal {% ifequal %} {% endifequal %}
ifnotequal {% ifnotequal %} {% endifnotequal %}
include {% include %}
load {% load %}
now {% now "" %}
regroup {% regroup by as %}
spaceless {% spaceless %} {% endspaceless %}
ssi {% ssi %}
static {% static %}
super {% block.super %}
templatetag {% templatetag %}
trans {% trans %}
url {% url %}
verbatim {% verbatim %} {% endverbatim %}
widthratio {% widthratio %}
with {% with as %} {% endwith %}

Model fields Snippets

Abbreviation Tag
mauto models.AutoField()
mbigint models.BigIntegerField()
mbool models.BooleanField()
mchar models.CharField()
mcoseint models.CommaSeparatedIntegerField()
mdate models.DateField()
mdatetime models.DateTimeField()
mdecimal models.DecimalField()
memail models.EmailField()
mfile models.FileField()
mfilepath models.FilePathField()
mfloat models.FloatField()
mimg models.ImageField()
mint models.IntegerField()
mip models.IPAddressField()
mnullbool models.NullBooleanField()
mphone models.PhoneNumberField()
mposint models.PositiveIntegerField()
mpossmallin models.PositiveSmallIntegerField()
mslug models.SlugField()
msmallint models.SmallIntegerFiled()
mtext models.TextField()
mtime models.TimeField()
murl models.URLField()
musstate models.USStateField()
mxml models.XMLField()
fk models.ForeignKey()
m2m models.ManyToManyField()
o2o models.OneToOneField()

Form fields Snippets

Abbreviation Tag
fchar forms.CharField()
fchoice forms.ChoiceField()
fcombo forms.ComboField()
fdate forms.DateField()
fdatetime forms.DateTime()
fdecimal forms.DecimalField()
femail forms.EmailField()
ffile forms.FileField()
ffilepath forms.FilePathField()
ffloat forms.FloatField()
fimg forms.ImageField()
fint forms.IntegerField()
fip forms.IPAddressField()
fmochoice forms.ModelChoiceField()
fmomuchoice forms.ModelMultipleChoiceField()
fmuchoice forms.MultipleChoiceField()
fmuval forms.MultipleValueField()
fnullbool forms.NullBooleanField()
fregex forms.RegexField()
fslug forms.SlugField()
fsdatetime forms.SplitDateTime()
ftime forms.TimeField()
ftchoice forms.TypedChoiceField()
ftmuchoice forms.TypedMultipleChoiceField()
furl forms.URLField()

Skeleton Snippets

Abbreviation Content
form Form Skeleton
fview Function View Skeleton
model Model Skeleton
modelform ModelForm Skeleton

Class Based Views Snippets

Abbreviation Content
createview CreateView Skeleton
deleteview DeleteView View Skeleton
detailview DetailView Skeleton
listview ListView Skeleton
templateview TemplateView Skeleton
updateview UpdateView Skeleton
cbview Class Based View Skeleton

Util Snippets

Abbreviation Content
init __init__(self, *args, **kwargs)
ipdb ipdb.set_trace()
pdb pdb.set_trace()
sendmail mail.send_mail()
traceback TemplateView Skeleton
updateview traceback.print_exc()
url URL structure
var {{ }}

License

MIT © Mauricio Ivan

django-atom's People

Contributors

kavdev avatar greengremlin avatar wonderbeyond avatar

Watchers

James Cloos avatar Xoel Lopez Barata avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.