-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from jdeanwallace/django-ses
Add django-ses and stuff.
- Loading branch information
Showing
13 changed files
with
182 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ venv | |
data/**/* | ||
!data/**/.gitignore | ||
fly.toml | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ __pycache__/ | |
*.log | ||
.DS_Store | ||
node_modules/ | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="scroll-smooth"> | ||
{% block html %} | ||
<head> | ||
{% block head %} | ||
<title>{% block title %}{% endblock title %}</title> | ||
{% block meta %} | ||
{% endblock meta %} | ||
{% endblock head %} | ||
</head> | ||
<body> | ||
{% block body %} | ||
{% endblock body %} | ||
</body> | ||
{% endblock html %} | ||
</html> | ||
{% extends 'site/layouts/stacked.html' %} | ||
{% load static %} | ||
{% block title %}Example{% endblock title %} | ||
{% block meta %} | ||
{% include 'site/partials/meta.html' %} | ||
{% endblock meta %} | ||
{% block nav %} | ||
<div class="flex flex-col h-full"> | ||
<div class="px-4 my-2 flex gap-2 items-center"> | ||
<label class="cursor-pointer p-2 hover:bg-slate-200 rounded-md" for="nav-toggle"> | ||
<svg class="w-8 h-8" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path> | ||
</svg> | ||
</label> | ||
<a class="flex items-center gap-1 p-2 rounded-md" href="{% url 'site:home' %}"> | ||
<img class="w-8 h-8" src="{% static 'site/img/logo.svg' %}" alt="logo"/> | ||
<span class="text-2xl font-semibold">Example</span> | ||
</a> | ||
</div> | ||
<ul class="px-4 flex flex-col"> | ||
<li><a class="block p-2 hover:bg-slate-200 rounded-md" href="#how-it-works" onclick="document.getElementById('nav-toggle').click();">How it works</a></li> | ||
<li><a class="block p-2 hover:bg-slate-200 rounded-md" href="#pricing" onclick="document.getElementById('nav-toggle').click();">Pricing</a></li> | ||
<li><a class="block p-2 hover:bg-slate-200 rounded-md" href="#questions" onclick="document.getElementById('nav-toggle').click();">Questions</a></li> | ||
</ul> | ||
</div> | ||
{% endblock nav %} | ||
{% block header %} | ||
<div class="max-w-7xl mx-auto px-4 my-2 flex gap-2 items-center"> | ||
<label class="md:hidden cursor-pointer p-2 hover:bg-slate-200 rounded-md" for="nav-toggle"> | ||
<svg class="w-8 h-8" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"></path> | ||
</svg> | ||
</label> | ||
<a class="flex items-center gap-1 p-2 rounded-md" href="{% url 'site:home' %}"> | ||
<img class="w-8 h-8" src="{% static 'site/img/logo.svg' %}" alt="logo"/> | ||
<span class="text-2xl font-semibold">Example</span> | ||
</a> | ||
<ul class="max-md:hidden flex gap-4 items-center"> | ||
<li><a class="hover:underline" href="#how-it-works">How it works</a></li> | ||
<li><a class="hover:underline" href="#pricing">Pricing</a></li> | ||
<li><a class="hover:underline" href="#questions">Questions</a></li> | ||
</ul> | ||
</div> | ||
{% endblock header %} | ||
{% block footer %} | ||
<div class="max-w-7xl mx-auto px-4 my-12"> | ||
<p class="text-center text-gray-500"> | ||
© {% now 'Y' %} Example. All rights reserved. | ||
</p> | ||
</div> | ||
{% endblock footer %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="scroll-smooth"> | ||
{% block html %} | ||
<head> | ||
{% block head %} | ||
<title>{% block title %}{% endblock title %}</title> | ||
{% block meta %} | ||
{% endblock meta %} | ||
{% endblock head %} | ||
</head> | ||
<body> | ||
{% block body %} | ||
{% endblock body %} | ||
</body> | ||
{% endblock html %} | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,16 @@ | |
|
||
ALLOWED_HOSTS = [ | ||
"example.fly.dev", | ||
"example.com", | ||
] | ||
|
||
EMAIL_BACKEND = "django_ses.SESBackend" | ||
|
||
AWS_SES_ACCESS_KEY_ID = os.environ.get("AWS_SES_ACCESS_KEY_ID", "") | ||
AWS_SES_SECRET_ACCESS_KEY = os.environ.get("AWS_SES_SECRET_ACCESS_KEY", "") | ||
AWS_SES_REGION_NAME = os.environ.get("AWS_SES_REGION_NAME", "") | ||
AWS_SES_REGION_ENDPOINT = os.environ.get("AWS_SES_REGION_ENDPOINT", "") | ||
|
||
SERVER_EMAIL = "Example Server <[email protected]>" | ||
DEFAULT_FROM_EMAIL = "Admin from Example <[email protected]>" | ||
ADMINS = [("Admin", "[email protected]")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ celery | |
ipython | ||
gunicorn | ||
whitenoise | ||
django-ses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters