Pretty Printed
Pretty Printed
  • 452
  • 14 769 823
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
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
Intro to Flask-Admin
zhlédnutí 17KPřed rokem
Intro to Flask-Admin
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
How to Use Async SQLAlchemy in FastAPI
zhlédnutí 29KPřed rokem
How to Use Async SQLAlchemy in FastAPI
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)

Komentáře

  • @Alldeveloper2356
    @Alldeveloper2356 Před 3 dny

    Are you hosting the website on github?

  • @Tobias-og
    @Tobias-og Před 4 dny

    Thank you 👍🏿

  • @mhasadi78
    @mhasadi78 Před 4 dny

    Extremely helpful content.

  • @_letsBug
    @_letsBug Před 5 dny

    Thankyou soo much

  • @amanye
    @amanye Před 6 dny

    Thank you man.

  • @mychalculpepper2920

    brother this is unbelievably clutch

  • @yanickt6765
    @yanickt6765 Před 8 dny

    It helped me debug my Flask code where I didn't really know how to manage the audio. Thank you for this tutorial 🤓

  • @sebastianquiroga7657

    Thank you!

  • @TheNgweles
    @TheNgweles Před 9 dny

    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

  • @jeffersonmiguel6790
    @jeffersonmiguel6790 Před 10 dny

    I have an error when trying to perform db migrate, a utf-8 encoding error is occurring, I am unable to resolve it.

  • @hamadrehman853
    @hamadrehman853 Před 12 dny

    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.

  • @drac8854
    @drac8854 Před 13 dny

    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.

  • @bedros1337
    @bedros1337 Před 14 dny

    a great and a clear explaination

  • @dodokwak
    @dodokwak Před 14 dny

    Awesome. Thx

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Před 15 dny

    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.

  • @avinashdudala9490
    @avinashdudala9490 Před 16 dny

    Hi this code not working on New Outlook app can you send me any other approach that works on New Outlook app

  • @LegionLeague
    @LegionLeague Před 16 dny

    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.

    • @prettyprinted
      @prettyprinted Před 16 dny

      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.

    • @hamadrehman853
      @hamadrehman853 Před 12 dny

      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.

  • @frameff9073
    @frameff9073 Před 16 dny

    good

  • @drac8854
    @drac8854 Před 17 dny

    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.

  • @VenomRaiders
    @VenomRaiders Před 17 dny

    The legend himself back at it🎉🎉 Some Quick questions, How long have you been programming? Do you use python as your main language?

    • @prettyprinted
      @prettyprinted Před 16 dny

      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!

    • @VenomRaiders
      @VenomRaiders Před 16 dny

      @@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

  • @anony88
    @anony88 Před 17 dny

    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.

  • @Navid__mr
    @Navid__mr Před 19 dny

    thanks man

  • @user-zr8yi8ji6g
    @user-zr8yi8ji6g Před 21 dnem

    It was useful

  • @mawkuri5496
    @mawkuri5496 Před 21 dnem

    how about flet + django + django-ninja?

  • @kaankako
    @kaankako Před 22 dny

    saved my 2 hours thank you

  • @bivensrk
    @bivensrk Před 24 dny

    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.

  • @user-el1jb4gj9s
    @user-el1jb4gj9s Před 24 dny

    Классно!

  • @vattoxonfire1278
    @vattoxonfire1278 Před 26 dny

    How to style it ?

  • @jamiewise2489
    @jamiewise2489 Před 27 dny

    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?

  • @gagansingh3481
    @gagansingh3481 Před 27 dny

    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

  • @TomislavMiletic
    @TomislavMiletic Před 27 dny

    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?

  • @user-gl7we9il3n
    @user-gl7we9il3n Před 28 dny

    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

  • @lucassilvano3940
    @lucassilvano3940 Před 29 dny

    You are awesome. Tks from Brasil

  • @ismaelkf
    @ismaelkf Před měsícem

    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

  • @legion_prex3650
    @legion_prex3650 Před měsícem

    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.

  • @default_youtube_profile
    @default_youtube_profile Před měsícem

    aiomysql extension for sqlalchemy does not have async_sessionmaker! what should I use?

  • @moments_with_frds
    @moments_with_frds Před měsícem

    Nice explanation

  • @爱吃香菜
    @爱吃香菜 Před měsícem

    This is what i need.Thanks!

  • @eduardsanchez6962
    @eduardsanchez6962 Před měsícem

    I'm getting this error i look on internet i can't get it fixed ModuleNotFoundError: No module named 'elasticsearch.helpers'

  • @user-ui2md1ln7f
    @user-ui2md1ln7f Před měsícem

    Could you please share the link of second part of this project

  • @Alex-Ibby
    @Alex-Ibby Před měsícem

    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

  • @pococonut609
    @pococonut609 Před měsícem

    Thanks <3

  • @HelenoDucato
    @HelenoDucato Před měsícem

    thanks bro, it helped alot

  • @user-xf7tc7zu7c
    @user-xf7tc7zu7c Před měsícem

    That was really great , PROUDLY NEW SUBSCRIBER.

  • @wimvangeyt3866
    @wimvangeyt3866 Před měsícem

    Again very clear and easy to follow.

  • @wimvangeyt3866
    @wimvangeyt3866 Před měsícem

    This is also very interesting, becaus some people are very sensitive to the way dates and cifers are depicted.

  • @wimvangeyt3866
    @wimvangeyt3866 Před měsícem

    Are all your video's about code like that?? Wow thats clear and easy to follow. Great video.

  • @ElieTAILLARD
    @ElieTAILLARD Před měsícem

    Is it possible to start the project without docker ?

  • @DrMildayan
    @DrMildayan Před měsícem

    Yes please to react + django ninja

    • @prettyprinted
      @prettyprinted Před měsícem

      I'll see what I can do. thanks for watching!

  • @patriotlightning7791
    @patriotlightning7791 Před měsícem

    Welcome back mate! been following your videos discreetly! 😃