![Pretty Printed](/img/default-banner.jpg)
- 452
- 14 769 823
Pretty Printed
United States
Registrace 18. 11. 2015
I'm Anthony. I make programming videos to hopefully make some things easier to understand.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
How to Create an Instant Search Bar With Django and HTMX
In this video, I'll show you how to create instant search bars in your Django apps by using HTMX.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/0kS
Github: github.com/prettyprinted
Twitter: pretty_printed
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/0kS
Github: github.com/prettyprinted
Twitter: pretty_printed
zhlédnutí: 1 092
Video
Create APIs in Django - Intro to Django Ninja
zhlédnutí 1,3KPřed měsícem
In this video I'll show you another library for creating APIs in Django called Ninja. Ninja is inspired by FastAPI, so you'll see how the patterns get applied to a Django project. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/SRR Github: github.com/prettyprinted Twitter: twitter....
Building a Speech Transcription App Using Flask and OpenAI
zhlédnutí 1,3KPřed 2 měsíci
In this video, I'll demonstrate a simple speech transcription app to show how to integrate OpenAI APIs with a Flask app. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/ybY Github: github.com/prettyprinted Twitter: pretty_printed
Getting Started With Elasticsearch in Django - Faster Text Search for Your Apps
zhlédnutí 3,3KPřed 3 měsíci
In this video, I demonstrate how to set up Elasticsearch to work with a Django project. Elasticsearch is great to use if there is a lot of text in your database that you want the users to be able to search. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/HrK Github: github.com/pret...
Reading Emails in Python with IMAP Tools
zhlédnutí 2,9KPřed 4 měsíci
In this video I demonstrate how to use the IMAP tools library to connect to your email account read emails. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/J0p Github: github.com/prettyprinted Twitter: pretty_printed
How to Stream OpenAI API Responses in a Flask App
zhlédnutí 5KPřed 5 měsíci
In this video I'll demonstrate how to stream OpenAI API responses in your Flask apps using JavaScript. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/DHW Github: github.com/prettyprinted Twitter: pretty_printed
Creating a Progress Bar for Celery Task Progress in a Flask App
zhlédnutí 2,2KPřed 6 měsíci
In this video I will show you how to implement a progress bar for your Celery tasks that you call from your Flask apps. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/zwU Github: github.com/prettyprinted Twitter: pretty_printed
Getting Started With Django All Auth
zhlédnutí 10KPřed 7 měsíci
In this video I'll show you how to setup Django All Auth and connect Google OAuth to it so your users can login with their Google accounts. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/Pqo Github: github.com/prettyprinted Twitter: pretty_printed
Multipart Uploads Directly to S3 With Uppy
zhlédnutí 1,3KPřed 8 měsíci
In this video I continue where I left off in the previous video and add multipart uploads directly to an S3 bucket. Multipart uploads will ensure that large files upload faster and more reliably. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/Tv8 Uppy: uppy.io/ Twitter: twitter.co...
How to Upload Files Directly From Frontend to S3 Using Flask and Uppy
zhlédnutí 1,2KPřed 9 měsíci
In this video I will show you a JavaScript library that allows you to easily upload files directly to AWS S3. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/fca Uppy: uppy.io/ Twitter: pretty_printed Github: github.com/prettyprinted
Easiest Way to Send Emails in Flask
zhlédnutí 4,6KPřed 10 měsíci
In this video I show you how to use Flask-Mailman to send emails in your Flask apps. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/aGz Twitter: pretty_printed Github: github.com/prettyprinted
Getting Started With Django Celery Beat
zhlédnutí 11KPřed 11 měsíci
In this video I talk about how to integrate Django Celery Beat into an existing Django Celery project. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/DVC Twitter: pretty_printed Github: github.com/prettyprinted
How to Dynamically Add Schedules to Celery Beat
zhlédnutí 4,3KPřed 11 měsíci
In this video, I'll talk about to dynamically add schedules to Celery Beat using Celery Redbeat. I'll use Flask as the framework to demonstrate this example, but you can use this approach in any framework. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/18L Watch the other Celery v...
How to Deploy a Flask and Celery App to Render
zhlédnutí 4,2KPřed 11 měsíci
In this video I'll show you how to deploy a Flask app that uses Celery on Render. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/99O Twitter: pretty_printed Github: github.com/prettyprinted
Intro to Django Tenants - Create a Separate Database Schema for Each User
zhlédnutí 17KPřed rokem
In this video I'll show you how get started with Django Tenants. This Django app allows you to create a separate database schema for each user. So each user will own data that doesn't get mixed in with data from other users. Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching Get the code here: prettyprinted.com/l/dpm Twitt...
Use This New AI Tool to Help With Your Python Projects
zhlédnutí 2KPřed rokem
Use This New AI Tool to Help With Your Python Projects
How to Write SQLAlchemy 2.0-Style Queries in Flask-SQLAlchemy
zhlédnutí 4,9KPřed rokem
How to Write SQLAlchemy 2.0-Style Queries in Flask-SQLAlchemy
How to Create an Instant Search Bar With Flask and HTMX
zhlédnutí 19KPřed rokem
How to Create an Instant Search Bar With Flask and HTMX
Free MySQL Course For Python Developers
zhlédnutí 1,1KPřed rokem
Free MySQL Course For Python Developers
How to Deploy a Flask App to a Linux Server with a Domain Name
zhlédnutí 25KPřed rokem
How to Deploy a Flask App to a Linux Server with a Domain Name
How to Deploy a Django App and Postgres Database to Render
zhlédnutí 33KPřed rokem
How to Deploy a Django App and Postgres Database to Render
JSON Web Token Authentication in Flask-RESTX
zhlédnutí 7KPřed rokem
JSON Web Token Authentication in Flask-RESTX
Create a Dependent Select Field in Django With HTMX
zhlédnutí 18KPřed rokem
Create a Dependent Select Field in Django With HTMX
How to Easily Create REST APIs with Flask-RESTX
zhlédnutí 31KPřed rokem
How to Easily Create REST APIs with Flask-RESTX
Create a Dependent Select Field With Flask-WTF and HTMX
zhlédnutí 8KPřed rokem
Create a Dependent Select Field With Flask-WTF and HTMX
How to Schedule Tasks in the Future With Celery
zhlédnutí 15KPřed rokem
How to Schedule Tasks in the Future With Celery
The Simplest Login System in Flask: HTTP Basic Auth
zhlédnutí 6KPřed rokem
The Simplest Login System in Flask: HTTP Basic Auth
Creating a Chat App With Flask-SocketIO (2023)
zhlédnutí 29KPřed rokem
Creating a Chat App With Flask-SocketIO (2023)
Are you hosting the website on github?
Thank you 👍🏿
Extremely helpful content.
Thankyou soo much
Thank you man.
brother this is unbelievably clutch
It helped me debug my Flask code where I didn't really know how to manage the audio. Thank you for this tutorial 🤓
Thank you!
This was very helpful. Just a note for others, if you are running on Windows, you might have an issue with the worker receiving the task but not actually running it. One way around this is to install gevent in your virtual environment and adding "-P gevent" to the celery worker call
I have an error when trying to perform db migrate, a utf-8 encoding error is occurring, I am unable to resolve it.
This video is gold. You deserve a lot more subscribers man. Try starting a podcast or releasing some shorts to gain more momentum. I'm not even saying this just for you, so many more people can be educated with such high quality content if you push further.
Can I do a video request? Can you make a video of a flask application with kafka. Where 1 route is creating data and 2 routes are using that data and data needs to be saved in database. (Additional) if 2nd route of reading data can update it.
a great and a clear explaination
Awesome. Thx
Another simple but awesome tutorial Anthony💪. Thanks to remind me how to properly use `Q` class👌. Is it possible to convert a Django project to installation form, I mean like programs from `.exe` or `.deb` files? Forasmuch i have a computer in my work (Windows 11) without the internet access and i'm going to write a program to make my work easier and more efficient.
Hi this code not working on New Outlook app can you send me any other approach that works on New Outlook app
Despite how great and informative the tutorial is I have a bone to pick with these types of HTMX tutorials in the context of a Django project. Correct me if I'm wrong, Anthony, but this is not how you would do it in a template of a real Django project, right? Mostly due to `extends` functionality. We would always extend base.html (or similarly named) file in a template. So when you hx-target a div with a specific id, doesn't it mess up the whole layout of the page? Don't we have to use a librarly like django-htmx to check for `if request.htmx` condition in the view and then render the partial? Please tell me that I am a complete idiot if I confused myself here, I don't mind, I'm still learning.
Extending a base template is useful so all your pages have a similar layout, and it's probably a good idea on normal pages, but it's not necessary on partial templates. When it comes to hx-target, you can target anything anywhere the template; you don't' need to target something that will break the page unless that's your intention. And finally, for libraries like django-htmx, I'm sure they offer some patterns and convenience features that are useful when using HTMX, but it's not at all necessary to use django-htmx or anything similar. Don't worry about this stuff being confusing though. There's a lot to learn so if the style of using templates in Django works for you now, continue with it.
I believe all of the extends magic happens server side and since HTMX does have some JS but its hidden behind the special attributes it still executes client side. The only thing HTMX changes is where you would previously return a JSON you can return your result as a formatted HTML doc and it will take care of the rest.
good
Thanks!
Hehe, i was just doing htxm and flask 😂 Quick think i learn If i do request.json in a route. Then its header would switch to application/json. Why i was doing request.json Because i was trying to use hx-vals i thought these would be different from hx-params But turns out that they are just same.
The legend himself back at it🎉🎉 Some Quick questions, How long have you been programming? Do you use python as your main language?
About 20 years. And yeah, I use Python as my main language. I've pretty much forgotten everything but Python and JavaScript, which is a shame, but that's what my business is focused on. Thanks for watching!
@@prettyprinted That's a lot of years of experience. I would love to get in contact for some mentoring. I hope we can schedule something. I'll check your website
I made a twitter clone with Flask and HTMX and its pretty awesome. Friend system, like system, etc.. Recent and 'for you' feed algorithms. I put a lot of work into the For You feed to promote viral content, newer content, and content from people you follow with less likes. It has a really nice dark theme. The feed endlessly scrolls. You can switch between pages on the left nav bar (profile, etc) and switch back to the feed with htmx. I started working on a groups system but gave up 🤣 it got overwhelming working on it alone. Also, comments for posts was not implemented yet.
thanks man
It was useful
how about flet + django + django-ninja?
saved my 2 hours thank you
At the risk of being ignored, how does one set a task to expire? I'm trying to test a thing I know will not work and want it to expire once it fails.
Классно!
How to style it ?
Very helpful video! I have found that when I stream output, the translation from markdown to HTML is sometimes applied incorrectly on list items (especially nested and ordered ones). I think that this could be due to some chunks lacking the full context needed for the HTML tags to be applied correctly. Do you have any ideas/ways to approach handling this?
After created url :127.0.0.1 with 8080 port i have to add /predictive api ? age= , weight=, km = to the url how we create it . whenever i will change the age =23 , weight =90, km=12345 i will see my predective value
Thank you, this is great, yes please make more django ninja videos. You have mentioned React, but could do the same with Vue or Nuxt?
thank you so much bro Its pretty hard to get how flask works with it's contexts and flask app extensions. You've helped me a lot Also need to say that celery_init_app function in flask docs changed and now you don't need write app.set_default() in __init__.py. It's already in celery_init_app function
You are awesome. Tks from Brasil
August 8th.. its been 2 hours I still receive this error no matter what I do: ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split' ==> Exited with status 1
great vid! May i ask, what is the tokenURL exactly for? oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") its not written in the docs and people in tutorials always say, just put it there. I believe, nobody knows, what it means. Its just for the open api scheme and swagger ui, i think.
aiomysql extension for sqlalchemy does not have async_sessionmaker! what should I use?
Nice explanation
This is what i need.Thanks!
I'm getting this error i look on internet i can't get it fixed ModuleNotFoundError: No module named 'elasticsearch.helpers'
Could you please share the link of second part of this project
Any chance you could do a flask tutorial with a live transcription that displays as you speak? Deepgram has a Python sdk, but I’m finding it impossible to figure out sockets for flask
Thanks <3
thanks bro, it helped alot
That was really great , PROUDLY NEW SUBSCRIBER.
Again very clear and easy to follow.
This is also very interesting, becaus some people are very sensitive to the way dates and cifers are depicted.
Are all your video's about code like that?? Wow thats clear and easy to follow. Great video.
Is it possible to start the project without docker ?
Yes please to react + django ninja
I'll see what I can do. thanks for watching!
Welcome back mate! been following your videos discreetly! 😃