View es-cheat-sheet.txt
Elasticsearch info:
Elasticsearch Domain Name: es-domain
Number of nodes: 2
Disk space per node: 20 GB
Cluster type: Public but closed to my IP address
My IP address: 216.40.74.186
Domain name: es-domain
Cluster Endpoint: search-es-domain-dsbyregycjpium6ks4prehgjwy.us-west-2.es.amazonaws.com
View gist:21d2e65479eda849ca41
{
"Version": "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Action" : [
"catalog-admin:*",
"servicecatalog:*",
"cloudformation:GetTemplateSummary",
"cloudformation:ValidateTemplate,",
View gist:6e6d2952f4afab8b4fb8
x"],"turkishmalware":["analytics"],"pimpmywindow":["adse","adse2","fbquadradot","fbquadradofeeds","fb336f"],"tinynetwork":["faUnit1","_GPLITA_0","FACommonScript","FATransitionalScript","arxcastchrome"],"ice_ix":["jsess_script","wait_div"],"superfish":["superfish-script"],"guncelle_bepush_yokexe":["agenim","tistis"],"whitesmoke":["CLSCRIPT_7B4841EF_DAF5_4cb0_BC6F_0FB7A7C0CC7C_communicationDiv","CLSCRIPT_communicationDiv"]}, {"user_space_scripts":["__addEventListener"],"indo_friend":["penetrasi","addfriend"],"cereal":["cereziAl"],"arkadaslari":["arkadaslari_al"],"arkadas":["RandomArkadas"],"yorum":["yorum_yap"]}, {"pagerage":["leftCol"]}, {}, {});}); onloadRegister_DEPRECATED(function (){window.presenceRequests = require("m_0_9");});
View views.py
from models import Post, Comment
from django.shortcuts import render
def posts(request):
posts = Post.objects.all()
return render(request, 'blog/posts.html', locals())
def post(request, id):
posts = Post.objects.all()
post = Post.objects.get(id=id) #Aqui eu tenho o objeto post, com todos os seus atributos