├── backend ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-310.pyc │ │ └── 0001_initial.cpython-310.pyc │ └── 0001_initial.py ├── tests.py ├── admin.py ├── __pycache__ │ ├── admin.cpython-310.pyc │ ├── apps.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── __init__.cpython-310.pyc ├── urls.py ├── apps.py ├── models.py └── views.py ├── asyncproject ├── __init__.py ├── __pycache__ │ ├── urls.cpython-310.pyc │ ├── wsgi.cpython-310.pyc │ ├── __init__.cpython-310.pyc │ └── settings.cpython-310.pyc ├── urls.py ├── asgi.py ├── wsgi.py └── settings.py ├── db.sqlite3 ├── requirements.txt ├── README.md ├── templates └── index.html ├── manage.py └── LICENSE /backend/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /asyncproject/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /backend/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | asgiref==3.5.2 2 | click==7.1.2 3 | Django==3.2.3 4 | h11==0.12.0 5 | pytz==2022.4 6 | sqlparse==0.4.3 7 | uvicorn==0.13.4 8 | -------------------------------------------------------------------------------- /backend/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /backend/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /backend/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /backend/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /backend/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /backend/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /asyncproject/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/asyncproject/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /asyncproject/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/asyncproject/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /asyncproject/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/asyncproject/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /asyncproject/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/asyncproject/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /backend/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .views import * 3 | 4 | app_name = "backend" 5 | 6 | urlpatterns = [ 7 | path("", home, name="home") 8 | ] -------------------------------------------------------------------------------- /backend/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /backend/migrations/__pycache__/0001_initial.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/python019/async-django-email/HEAD/backend/migrations/__pycache__/0001_initial.cpython-310.pyc -------------------------------------------------------------------------------- /backend/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class BackendConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'backend' 7 | -------------------------------------------------------------------------------- /asyncproject/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path, include 3 | 4 | urlpatterns = [ 5 | path('admin/', admin.site.urls), 6 | path('', include("backend.urls")) 7 | ] 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ASYNC DJANGO EMAIL BACKEND 2 | 3 | async site built with Django (SUBUX) 4 | 5 | License: MIT 6 | 7 | OS: Ubuntu 22.04 8 | 9 | ## Settings 10 | 11 | - pip install -r requirements.txt 12 | 13 | -------------------------------------------------------------------------------- /asyncproject/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for asyncproject project. 3 | 4 | It exposes the ASGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.asgi import get_asgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'asyncproject.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /asyncproject/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for asyncproject project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'asyncproject.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /backend/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | class Subscriber(models.Model): 4 | email = models.EmailField(unique=True) 5 | subscriped_at = models.DateTimeField(auto_now_add=True) 6 | 7 | def __str__(self): 8 | return self.email 9 | 10 | class Article(models.Model): 11 | title = models.CharField(max_length=200) 12 | description = models.TextField() 13 | created_at = models.DateTimeField(auto_now_add=True) 14 | 15 | def __str__(self): 16 | return self.title -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |