I am a software engineer hailing from Uganda 🇺🇬, actively producing instructional programming videos. My aspiration is to educate millions on coding principles through the content I create. I kindly seek assistance in realizing this goal.
Thanks, the comments also helped Y'all should not forget to install redis on ur machine and enable the service, the default port is 6739 so after enabling the service u are good to go.
I was getting error as Object of type datetime is not JSON serializable in refresh route. I fixed it by changing the expiry in create_access_token like this: expiry_datetime = datetime.now() + (expiry if expiry is not None else timedelta(minutes=60)) In the payload I used 'expiry': expiry_datetime.isoformat(),
This is awesome, thank you! Again SqlAlchemy 2 Pydantic 2 and Fastapi. Better that paid udemy courses. So you create crud.db to use as a shortcut? I didn't really understand that part. What if there was one more model, like User? Can you please share how would we connect the object to a logged in user? And now i guess the next video to watch would be the one with the SQLModel, correct?
Ssali, after watching your SQLAlchemy 2.0 ORM Crash Course, i am a bit lost as to the difference between this video and "Building a REST API with FastAPI, Async SQLAlchemy, and PostgreSQL". Can you please advice? Thank you
I realised that these guys only give the basics if you are looking for the whole thing you cant find that , thats why i never pay for any course. but thanks .
According to you, is SqlModel more relevant for production environnement than SqlAlchemy ? Is FastAPI resilient on large project on production or we must go for Django Rest Framework for that... Since SQLModel/FastAPI doesn't have version 1.0 yet and there are a lot to do
hi jonathan I've a problem, I can't connect my db with fastapi the CLI rerurn me this msg : "home/b2pic/Desktop/bookly/src/__init__.py:10: RuntimeWarning: coroutine 'initdb' was never awaited initdb()/" can you or anyone help me to fix it please
There is a bug somewhere with validating the integrity of the token. When I tamper with the token like delete some characters, it logs an error, but the request still goes through.
I usually don't comment but this Tuto is just amazing! You covered pretty much all the topics from basic to advance. Thanks for your work. I was able to build an API for my front-end app! You definitely earned one sub
Hey guys, Thanks for watching. This was requested to be part of the FastAPI Beyond CRUD series. I unfortunately did not add it. So I wanted to get live and do this explaining web sockets
Good work. I really like that you show example of structure as this becomes important in real world projects. lol, I was afraid of the length of 12hrs, but you have held my attention. Thanks.
@@SsaliJonathan Finally finished the whole tutorial. Riveting, and useful. Thanks for all your work. I have one error left "in _load_backend_mixin version = _bcrypt.__about__.__version__"... but so far the error doesn't make any difference, but if you know what this is, please let me know.
Yeah that looks good but what to do if Program and Course models are in different files? (as they should be) let's assume I have different folders for Course files(crud, models, schemas etc.) and Program files (same). If I simply import them into each other, I get circular import error, but at the same time I can't just "not import" course into program or vice versa, because those models depend on each other. What should I do then? (to both not have all models in the same file and still have relationship between them)
There few ideas I want to share: 1. create model_relations file in main directory, import every model there and add relationship fields using inheritance (sort of "central file" for models) 2. simply use Mapped[list[uuid.UUID]] (I use uuid for id) instead of Mapped[list[Program]] and need for importing different models disappears, but this one feels kinda wrong
@@SsaliJonathan didn't understand how the answer is related sorry problem here is that when I import course.models.Course to program.models.Program (and vice versa) I get circular import error. I want to get rid of this error, even tho I still need to use them. I decided to just write relationships without Mapped[] class because it's just for typechecking during compilation and doesn't really affect the program. for example: parent_program = relationship('CourseModel', back_populates='child_courses')