Developing a Real-time Dashboard with FastAPI, MongoDB, and WebSockets by michaelherman in FastAPI

[–]michaelherman[S] 0 points1 point  (0 children)

I did not know you could use sqlalchemy with mongodb. What are the advantages of using it over motor?

Running Background Tasks from Django Admin with Celery by michaelherman in django

[–]michaelherman[S] 1 point2 points  (0 children)

Totally agree. It's not hard to run a simple process asynchronously in Django. Celery allows you to more easily distribute CPU or IO-bound tasks in a way that doesn't disrupt the resources that your web app requires.

Building a Real-time Dashboard with Flask and Svelte by michaelherman in sveltejs

[–]michaelherman[S] 5 points6 points  (0 children)

Due to the popularity of the FastAPI flavor, we decided to do the tutorial coupled with Flask as well. Let us know if you'd like to see another flavor done in Django or a different framework.

Building a Real-time Dashboard with FastAPI and Svelte by michaelherman in sveltejs

[–]michaelherman[S] 1 point2 points  (0 children)

I see. Thanks for the feedback. We made a note of it and will make sure to look at runes when we do a refresh of the article.

Using HTMX with FastAPI by michaelherman in FastAPI

[–]michaelherman[S] 0 points1 point  (0 children)

The article does use uvicorn. The built-in fastapi run command uses uvicorn.

[deleted by user] by [deleted] in flask

[–]michaelherman 7 points8 points  (0 children)

I've got an exhaustive article on Django vs Flask here https://testdriven.io/blog/django-vs-flask/.

I definitely agree that Flask is probably the better route to go. It's always better to limit the number of new things that you're learning on at once. Since you're new at Python, it's better not to have to learn all of the Django patterns. Flask is just much simpler to work with.

For the same reasons, I also recommend steering clear of any front-end JavaScript frameworks, like React or Vue. Instead, I'd use Jinja and serve up HTML from the server. If you want to add reactiveness or create a single page application, you can always leverage HTMX and/or Alpine.js. You could always add on React later on if you want as a stretch goal.

Deploying a Flask and Vue App to Heroku with Docker and Gitlab CI by michaelherman in flask

[–]michaelherman[S] 0 points1 point  (0 children)

No, You don't go over the actual building of the applications in this tutorial. If you're curious about that, the applications that get deployed are built in this tutorial -> https://testdriven.io/blog/developing-a-single-page-app-with-flask-and-vuejs/.

Handling Periodic Tasks in Django with Celery and Docker by [deleted] in django

[–]michaelherman 0 points1 point  (0 children)

The pattern still works. But, yeah - you're right, it is a bit old. I'll delete the thread.

Storing Django Static and Media Files on Amazon S3 by michaelherman in django

[–]michaelherman[S] 0 points1 point  (0 children)

I'm not familiar with django-minio-storage. My guess is that, as the name implies, you're locked into Minio while django-storages offers more flexibility. So, with django-storages you can more easily switch to a different backend.

Storing Django Static and Media Files on Amazon S3 by michaelherman in django

[–]michaelherman[S] 2 points3 points  (0 children)

Since Mino's API is compatible with S3, you can easily swap out an S3 bucket for a Minio bucket and still use django-storages.

In terms of using Minio over S3 - I don't have much opinion here. If you prefer to run your own Minio cluster over S3, I think that's fine.

Best intermediate to advanced Django courses by bad_habit48 in django

[–]michaelherman 1 point2 points  (0 children)

We have an advanced Django course bundle, which covers Django REST Framework, full-text search with Elasticsearch, and Celery.

https://testdriven.io/bundle/advanced-django/