Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
## views.py | |
import tempfile | |
import os | |
import commands | |
import cgi | |
from django import http | |
from django.views.decorators.csrf import csrf_exempt | |
from django.shortcuts import render |
class UserUpdateView(AuthenticatorViewMixin, UpdateView): | |
model = User | |
template_name = 'manager/authenticator/user_list.html' | |
def get_form_class(self): | |
return modelformset_factory(User, extra=0) | |
def get_form_kwargs(self): | |
kwargs = super(UserUpdateView, self).get_form_kwargs() | |
kwargs['queryset'] = kwargs['instance'] |
#This is a little example of how to make a PUT request (see http://microformats.org/wiki/rest/urls ) | |
#To a API written with tastypie (https://github.com/toastdriven/django-tastypie ) | |
# import the standard JSON parser | |
import json | |
# import the REST library (from http://code.google.com/p/python-rest-client/) | |
from restful_lib import Connection | |
#site url | |
base_url = "http://IP/api/v1" |