Cleanup secrets management, pre-run checks.

This commit is contained in:
Philip Sargent
2020-06-20 15:43:28 +01:00
parent b35a0b0d26
commit e697466557
25 changed files with 334 additions and 1018 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2020-06-16 23:22
# Generated by Django 1.11.29 on 2020-06-20 14:27
from __future__ import unicode_literals
from django.conf import settings
@@ -185,7 +185,7 @@ class Migration(migrations.Migration):
('non_public', models.BooleanField(default=False)),
('date', models.DateField()),
('title', models.CharField(max_length=200)),
('cave_slug', models.SlugField()),
('cave_slug', models.SlugField(blank=True, null=True)),
('place', models.CharField(blank=True, help_text="Only use this if you haven't chosen a cave", max_length=100, null=True)),
('text', models.TextField()),
('slug', models.SlugField()),

View File

@@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-06-19 14:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='logbookentry',
name='cave_slug',
field=models.SlugField(blank=True),
),
]

View File

@@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-06-19 14:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20200619_1511'),
]
operations = [
migrations.AlterField(
model_name='logbookentry',
name='cave_slug',
field=models.SlugField(blank=True, null=True),
),
]

View File

@@ -86,6 +86,7 @@ def surveyscansingle(request, path, file):
#return render_to_response('survexscansfolder.html', { 'survexscansfolder':survexscansfolder, 'settings': settings })
def expofilessingle(request, filepath):
# defaults to content_type="text/pain" needs fixing for PDFs
fn=urllib.parse.unquote(filepath)
return HttpResponse(content=open(settings.EXPOFILES+fn,"rb"))