https://github.com/engineervix/blog-post--django-markdown-powered-emails
This is a contrived Django project created as part of a blog post
https://github.com/engineervix/blog-post--django-markdown-powered-emails
Last synced: 12 months ago
JSON representation
This is a contrived Django project created as part of a blog post
- Host: GitHub
- URL: https://github.com/engineervix/blog-post--django-markdown-powered-emails
- Owner: engineervix
- License: bsd-3-clause
- Created: 2024-03-23T07:42:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T22:35:33.000Z (over 1 year ago)
- Last Synced: 2024-12-06T20:57:03.501Z (over 1 year ago)
- Language: Python
- Homepage: https://blog.victor.co.zm/markdown-powered-emails-in-django
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markdown-powered emails in Django
> An example Django application to illustrate the concept. See blog post [here](https://blog.victor.co.zm/markdown-powered-emails-in-django)
[](https://github.com/engineervix/blog-post--django-markdown-powered-emails/actions/workflows/main.yml)
[](https://www.python.org/downloads/release/python-3120/)
[](https://nodejs.org/en/blog/release/v20.0.0)
[](https://github.com/psf/black)
[](https://conventionalcommits.org)
## First things first
I recommend you test this with **Python 3.12**, because that's what I used for this particular project. However, it _should_ hopefully work with lower Python versions such us 3.10 and 3.11. You can use [pyenv](https://github.com/pyenv/pyenv) to install multiple python versions on your machine.
You'll also need **Node.js 20** on your machine. You can use tools such as [nvm](https://github.com/nvm-sh/nvm), [volta](https://volta.sh/), etc. to simplify managing Node.js versions on your machine.
1. In your [**virtual environment**](https://realpython.com/python-virtual-environments-a-primer/), install Python dependencies
```bash
pip install -r requirements.txt
```
2. Install Node.js dependencies
```bash
npm install
```
## Getting Started
- Apply database migrations
```bash
./manage.py migrate
```
- Create a `superuser`
```bash
./manage.py createsuperuser
```
- Create some test events
```bash
./manage.py create_events
```
- Simultaneously run the Django development server and the [MailDev](https://github.com/maildev/maildev) SMTP Server
```bash
honcho start
```
You can access the dev server at . As indicated above, this project uses [MailDev](https://github.com/maildev/maildev) for viewing and testing emails generated during development. The MailDev server is accessible at .
When you register for an event, you should receive an email.
---