This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"playlists": { | |
"rockerizando": { | |
"name": "Rockerizando", | |
"musics": { | |
"Imagine Dragons": "Radioactive", | |
"George Ezra": "Budapest", | |
"Of Mice Mean": "Broken Generation", | |
"AWOLNATION": "Sail", | |
"Alesana": "Apology" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fantasy-name": "Restaurant fantasy name", | |
"company name": "Restaurant company name", | |
"logo": "Restaurant logo", | |
"CNPJ": "Restaurant CNPJ", | |
"phone": "Restaurant phone", | |
"telephone": "Restaurant telephone", | |
"website": "Restaurant website", | |
"category": [ | |
"Fast Food", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Food.objects.filter(establishment__in=Establishment.objects.filter(fantasy_name='Chiquita Bacana')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% load staticfiles %} | |
{% load widget_tweaks %} | |
{% block container %} | |
{% include "includes/menu.html" %} | |
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from selenium import webdriver | |
def get_itens(): | |
firefox = webdriver.Firefox() | |
firefox.get('https://pt.aliexpress.com/w/wholesale-arduino.html?site=bra&initiative_id=SB_20170108224843&SearchText=arduino&g=y') | |
itens = firefox.find_elements_by_class_name('product') | |
prices = firefox.find_elements_by_class_name('price') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from selenium import webdriver | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.common.keys import Keys | |
firefox = webdriver.Firefox() | |
firefox.get('https://www.facebook.com') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
firefox = webdriver.Firefox() | |
firefox.get('https://www.facebook.com') | |
email = firefox.find_element_by_name('email') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFAULT_APPS = [ | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
] | |
THIRD_PARTY_APPS = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from __future__ import unicode_literals | |
from django.db import models | |
class Record(models.Model): | |
name = models.CharField(max_length=100) | |
class Meta: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
from django.test import TestCase | |
from model_mommy import mommy | |
from django.utils.timezone import datetime | |
from playlist.models import Record, Genre, Band, Music, Playlist |
OlderNewer