- First you need valid
Gmail
Account - edX installed on your local system in docker
- Go to
devstack.py
located atlms/env/
andcms/env
. - Find the
EMAIL_BACKEND
flag and change it to'django.core.mail.backends.smtp.EmailBackend
- Add few more flags:
Things you will need before getting started:
Next steps:
git clone git://github.com/mhoofman/wordpress-heroku.git
-- Database recreation | |
DROP DATABASE IF EXISTS skytrax; | |
CREATE DATABASE skytrax; | |
USE skytrax; | |
--Tables recreation | |
DROP TABLE IF EXISTS public.airline; | |
DROP TABLE IF EXISTS public.airport; | |
DROP TABLE IF EXISTS public.lounge; | |
DROP TABLE IF EXISTS public.seat; |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
import os | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
def show_arg(): | |
req = requests.get(sys.argv[1]) |
import re | |
import logging | |
import requests | |
from bs4 import BeautifulSoup | |
from collections import deque | |
from urllib.parse import urlsplit | |
from urllib.parse import urlparse | |
LOGGER = logging.getLogger(__name__) |
{ | |
component: AppComponent, | |
path: '', | |
canActivate: [LoggedInGuard], | |
loadChildren: () => import('./homepage/homepage.module').then(m => m.HomepageModule) | |
}, |
-- Schema recreation | |
create schema if not exists skytrax; |
--Tables recreation | |
DROP TABLE IF EXISTS skytrax.airline; | |
DROP TABLE IF EXISTS skytrax.airport; | |
DROP TABLE IF EXISTS skytrax.lounge; | |
DROP TABLE IF EXISTS skytrax.seat; | |
CREATE TABLE IF NOT EXISTS skytrax.airline( | |
airline_name VARCHAR(100) DEFAULT 'Unknown', | |
link VARCHAR(100) DEFAULT 'Unknown', | |
title VARCHAR(150) DEFAULT 'Unknown', |
COPY skytrax.airline | |
FROM 's3://redshift-data-movement/airline.csv' | |
CREDENTIALS 'aws_access_key_id=XXXXXXXXXX;aws_secret_access_key=XXXXXXXXXX' | |
FORMAT as csv | |
IGNOREHEADER 1 | |
TRUNCATECOLUMNS; |