Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
from django.shortcuts import render, get_object_or_404, reverse, redirect | |
from django.contrib.auth.decorators import login_required | |
from django.contrib import messages | |
from .forms import MakePaymentForm, OrderForm | |
from .models import OrderLineItem | |
from django.conf import settings | |
from django.utils import timezone | |
from tour_store.models import Destinations | |
import stripe |
let likesGiven = 0; | |
setInterval(() => { | |
let heart = document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9'), | |
arrow = document.querySelector('.coreSpriteRightPaginationArrow'); | |
if (heart[1]) { | |
heart = heart[1].parentElement; | |
likesGiven++, heart.click(); | |
} | |
arrow.click(); | |
console.log(`You've liked ${likesGiven} post(s)!`); |