Skip to content

Instantly share code, notes, and snippets.

View chriskavanagh's full-sized avatar

Chris Kavanagh chriskavanagh

  • Home Office
  • Roanoke, VA - U.S.A.
View GitHub Profile
import React, { Component } from "react";
import {
Button,
Form,
FormGroup,
Input,
Col,
Container,
Label
} from "reactstrap";
@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');
:root {
--background:rgb(204, 190, 190);
font-size: 16px;
font-family: Georgia,Times,Times New Roman,serif;
background-color: #ffffff;
}
* {
import { Component, OnInit } from '@angular/core';
import { ElementRef, Renderer2 } from '@angular/core';
@Component({
selector: 'app-fancy-form',
templateUrl: './fancy-form.component.html',
styleUrls: ['./fancy-form.component.css']
})
export class FancyFormComponent implements OnInit {
@chriskavanagh
chriskavanagh / email_token.py
Created November 15, 2016 08:07
Django send_mail with token and uuid.
def send_email(request):
User = get_user_model()
if request.method == 'POST':
form = EmailTestForm(request.POST)
if form.is_valid():
email = form.cleaned_data['email']
user = User.objects.get(email=email)
to_email = form.cleaned_data['email'] # cd['email']
subject = 'email test'
from_email = settings.EMAIL_HOST_USER