Added Let's Encrypt API
This commit is contained in:
1 parent
2ef5c3aafc
commit
ccdb7bad62
9 files changed
+169
-8
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('quiz', '0003_auto_20150520_1113'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='LetsEncryptChallenge',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('challenge', models.CharField(max_length=128)),
|
||||
('response', models.CharField(max_length=128)),
|
||||
('expiry_date', models.DateTimeField()),
|
||||
],
|
||||
options={
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
||||
+6
-1
@@ -17,4 +17,9 @@ class Answer(models.Model):
|
||||
unique_together = ('user', 'question')
|
||||
|
||||
def __str__(self):
|
||||
return self.question + ": " + self.string
|
||||
return self.question + ": " + self.string
|
||||
|
||||
class LetsEncryptChallenge(models.Model):
|
||||
challenge = models.CharField(max_length=128)
|
||||
response = models.CharField(max_length=128)
|
||||
expiry_date = models.DateTimeField()
|
||||
@@ -1,3 +0,0 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -1,3 +0,0 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in new issue
Block a user