final touches, paypal button, spelling errors, donate & twitter links, etc
This commit is contained in:
1 parent
7c32f4759b
commit
f2ed7fc9d3
4698 files changed
+67509
No files matched your search
@@ -0,0 +1,7 @@
|
||||
from django import forms
|
||||
from .models import Subscribers, MailMessage
|
||||
|
||||
class SubscribersForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Subscribers
|
||||
fields = ['email', ]
|
||||
@@ -0,0 +1,11 @@
|
||||
# Powerball
|
||||
1 23 * * 1,3,6
|
||||
|
||||
# Mega Mil
|
||||
0 23 * * 2,5
|
||||
|
||||
# Lotto America
|
||||
31 22 * * 3,6
|
||||
|
||||
# D3, D4, C25 (Every day but sunday 7:00)
|
||||
0 19 * * 1,2,3,4,5,6
|
||||
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 4.0 on 2022-06-11 02:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='MailMessage',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('subject', models.CharField(max_length=100)),
|
||||
('body', models.TextField(null=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Subscribers',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('email', models.EmailField(max_length=254)),
|
||||
('date', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 4.0 on 2022-06-11 02:22
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('lottopy', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='mailmessage',
|
||||
options={'verbose_name': 'Emails to send', 'verbose_name_plural': 'Emails to send'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mailmessage',
|
||||
name='attachment',
|
||||
field=models.FileField(blank=True, default=None, null=True, upload_to=''),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mailmessage',
|
||||
name='send_it',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mailmessage',
|
||||
name='users',
|
||||
field=models.ManyToManyField(to='lottopy.Subscribers'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 4.0 on 2022-06-11 02:26
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('lottopy', '0002_alter_mailmessage_options_mailmessage_attachment_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='subscribers',
|
||||
options={'verbose_name_plural': 'Subscribers'},
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user