I had to change the first line in the *'Dockerfile'* to: *FROM python:3.9* ...because it was trying to use *Python 3.11* and caused a build break with *'greenlet'* and the failure when the *c_app* tries to use 'psycopg2'. Hope this helps in case someone else has the same issue I had. It all worked after citing to use *Python 3.9*.
Got an error related to greenlet on docker-compose build. Fixed by changing greenlet version to 2.0.a2 on requirements.txt. Not sure it broke something but the docker-compose build command worked.
I ran into another error with psycopg. Like the previous one, it was because of the python version (3.11) on the app container. So i changed the first line of the Dockerfile to "FROM python:3.8.10"
Glad you enjoyed it! I have just made a new FastAPI course. Happy for you to have it, just email me I will link you it for free. helpdesk@veryacademy.com
Thank you for making this a more complete tutorial. I find it a little annoying when tutorials give you the basic information you can find on the documentation, but don't take it the step further to make it into an actual production-level app. There's a lack of truly "end-to-end" type tutorials.
Hey there. Yeah, I have fallen foul of that. I will be making bigger efforts in future tutorials to point people to other sources, and to ensure they know where the source of the tutorial should it be similar to the documentation. I like to think I try and compliment the documentation. I think part of the issue is that the documentation doesn't always provide clarity to cater for those at different levels of their development. Surveying the tutorial channels/courses over the last year, there is very little or no actual production-level development tutorials or courses. It is no surprise really. The varied skillset as an individual needed to do this would probably mean they are already getting paid an excellent wage. Why would you make code tutorials when you can make more money from funny cats right! It will take a few iterations, but my goal is to get an end to end Django app out there - this is what the ecommerce development is all about. It is just a mammoth amount of time needed.
Ha Ha!!! I had forgotten the env vars for pgadmin... I was going along and ran the 'up' command and it threw an error. Took me a hot second to realize I never added the environment variables for it. Funny enough... I had paused the video to troubleshoot it and work through everything, then sure enough... you hit the same error code. Kind of put a smile on my face. Love the content!
I've been trying to understand how to dev inside a live Docker Container and suddenly at 50m after you fixed the error on startup of the API for the first time I understood!!!!
@@veryacademy I think I just figured out how to attach to a running container with vscode to use the debugger but a clear video on this would be super useful to many.
Thanks. Appreciate the video and end-to-end tutorial :-) What could enhance this great video further, is before diving into the walk through in part 3 to set-up the main components and packages in a few slides and explain their purposes and how they interact. We get introduced to them on the fly and I found it hard to digest in one go. I guess one can rewatch this section a few times to get it but if you would make this little shortcut, I think it would bring this great video to GOLD standard :-) Keep up the good work and valuable content!
Hey, thank you - in a week or two I will make a video about it all. No surprises here, I would like to help testing the ecommerce project so that we can get it fully tested ready to add more advanced content. Just need to set it all up.
For you M1 mac users that get a problem when trying to migrate your db with the "docker-compose run app alembic revision --autogenerate -m "New Migration", you can try what i found to work. The error text: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) SCRAM authentication requires libpq version 10 or above So to fix that open the Dockerfile and change python version to 3.11 = FROM python:3.11 Then after RUN pip3 install --upgrade pip ..You add the following 2 lines: RUN apt update -y && apt install -y build-essential libpq-dev RUN pip3 install psycopg2-binary --no-binary psycopg2-binary Hope this help!
Hey Zander, really cool video !! Do you plan to make a series about fastapi? Like some kind of complete app like the ones you do in Django? Thanks for your videos man, they are really good!
2022 update > if you get an error about postgres 14 vs 13 change the postgres image to image: postgres:13.7-alpine3.16, remove the already built images and build it again. That should solve the issue.
Hi Zander. Your Django ecommerce series is great. I think it'll be perfect to recreate your ecommerce series using FastAPI to create APIs instead of Django for APIs. FastAPI is faster and API first package. So, we can enjoy faster API calls for large scale systems. What do you say?
I have plans to do more FastAPI tutorials and courses. I am at the minute building an SQLAlchemy Course which features FastAPI and Flask. The plan is at the minute is to finish that then roll out the last parts of the djChat. With that done I will do a FastAPI fapiChat, replicate the project with other tools. I then after or before need to pump out the Django Mastery which will be a 100+ hour course. There is just so much to do. With the ecommerce work, I want to build something much more indepth which includes deeper design, testing phases to make it more realistic, want people to feel they are actually doing a real project. Needless to say, there is much work to do done.
@@veryacademy Thank you so much for the reply. Also, I think with the Django e-commerce work, to make that playlist more complete, adding Payment integration tutorial to the existing DB design would make it pave the way for someone to go ahead and create frontend by themselves. I'm thinking to create a product out of your tutorials of Django series v2. Is that in your plan, Zander?
I got this error when i docker-compose up (FAILED: No config file 'alembic.ini' found, or file has no '[alembic]' section), what i need to do to fix it, i tried everything but still doesnt work
I also faced the same issue. But I didn't see the error when I finished the tutorial. My advise: skip the demo part and debug along as you follow the tutorial.
Thanks Santosh - I am working on version 2 of the ecommerce store with the mindset that I will roll it out with Django templates > React/Next.js > GraphQL > Fast API. It is partly reason I started rolling out these introductory tutorials 👍
Think of fast api as a tool, in order to use tools you need to understand in this case Python / databases. Typically you would apply for Python roles and fastapi might be a tool you use in the job. There won’t be as many jobs for a specific tools such as fastapi
@@veryacademy I loved it, although I had to skip the initial portion (Docker), I learned a new technology. One question tho, are you planning to make a series or only some videos on this topic ?
As a backend engineer, docker is most important and confusing for beginners. You made it look really easy!! Thank you!
17 mins in and I already know I found the most comprehensive video about this.
Thanks
I had to change the first line in the *'Dockerfile'* to: *FROM python:3.9*
...because it was trying to use *Python 3.11* and caused a build break with *'greenlet'* and the failure when the *c_app* tries to use 'psycopg2'. Hope this helps in case someone else has the same issue I had. It all worked after citing to use *Python 3.9*.
Thanks man
Thanks for saving me man! I was troubleshooting for quite some time and finally this worked for me!
Thanks, man a year later this reply is still useful.
Does it work with psycopg2-binary?
Got an error related to greenlet on docker-compose build.
Fixed by changing greenlet version to 2.0.a2 on requirements.txt. Not sure it broke something but the docker-compose build command worked.
I ran into another error with psycopg. Like the previous one, it was because of the python version (3.11) on the app container. So i changed the first line of the Dockerfile to "FROM python:3.8.10"
Thanks a lot bro, I faced the same error.
You are a true saviour to junior devs trying to get through the python eco-system! You're my inspiration Zander!!
Hi Dhruv, too kind! 👍
Great video! Very helpful overview and great explanations of the details. It's the most thorough (and practical) I've come across. Thanks!
Glad you enjoyed it! I have just made a new FastAPI course. Happy for you to have it, just email me I will link you it for free. helpdesk@veryacademy.com
Thank you for making this a more complete tutorial. I find it a little annoying when tutorials give you the basic information you can find on the documentation, but don't take it the step further to make it into an actual production-level app. There's a lack of truly "end-to-end" type tutorials.
Hey there. Yeah, I have fallen foul of that.
I will be making bigger efforts in future tutorials to point people to other sources, and to ensure they know where the source of the tutorial should it be similar to the documentation. I like to think I try and compliment the documentation. I think part of the issue is that the documentation doesn't always provide clarity to cater for those at different levels of their development.
Surveying the tutorial channels/courses over the last year, there is very little or no actual production-level development tutorials or courses. It is no surprise really. The varied skillset as an individual needed to do this would probably mean they are already getting paid an excellent wage. Why would you make code tutorials when you can make more money from funny cats right!
It will take a few iterations, but my goal is to get an end to end Django app out there - this is what the ecommerce development is all about. It is just a mammoth amount of time needed.
Ha Ha!!! I had forgotten the env vars for pgadmin... I was going along and ran the 'up' command and it threw an error. Took me a hot second to realize I never added the environment variables for it. Funny enough... I had paused the video to troubleshoot it and work through everything, then sure enough... you hit the same error code. Kind of put a smile on my face.
Love the content!
50:05 -- Database models
this tutorial is seriously underrated. Very useful information! Thanks
Glad it was helpful!
Excellent video! Making little mistakes is absolutely fantastic. The debugging process is so valuable!
I've been trying to understand how to dev inside a live Docker Container and suddenly at 50m after you fixed the error on startup of the API for the first time I understood!!!!
Totally agree!
@@veryacademy I think I just figured out how to attach to a running container with vscode to use the debugger but a clear video on this would be super useful to many.
Very very informative video , crystal clear and straight to the point ,Thank your very much for your efforts , Keep the Fast API videos coming.
After your Django REST API tutorial, I was looking forward to this. Thank you so much
Glad it was helpful!
Thank you! You explain really calm and sequently 🙏
Absolutely brilliant tutorial. Few and far between to see architecture like this weaved together and used effectively. Well done!
That's great. Watched a lot of videos and that's what I needed.
Thanks. Appreciate the video and end-to-end tutorial :-)
What could enhance this great video further, is before diving into the walk through in part 3 to set-up the main components and packages in a few slides and explain their purposes and how they interact. We get introduced to them on the fly and I found it hard to digest in one go. I guess one can rewatch this section a few times to get it but if you would make this little shortcut, I think it would bring this great video to GOLD standard :-)
Keep up the good work and valuable content!
Ayyyy FastAPI let's gooo!
Thank you !!
This is what I was looking for :)
You are welcome!
amazing subscribed...keep on continue fastapi sir. Loved it from nepal :)take care
Thank you so much 😀
So much to learn. Thank you for making this video.
Thanks a lot for this tutorial, this made my day :)
Best all around tutorial 🤓
Thanks for fulfilling my request 😁
Slowly working through a list here. Its a bit random sometimes. Hope it is useful!
Sir what about the open source project you mentioned once, wanna be helping in Django project so you have more time to record🙏
Hey, thank you - in a week or two I will make a video about it all. No surprises here, I would like to help testing the ecommerce project so that we can get it fully tested ready to add more advanced content. Just need to set it all up.
@@veryacademy Alright Sir..
Waiting 🙏
Thanks for the feedback
I'm learning Django Rest Framework and it's taking a great toll on me.
I hope this one is much simpler something like node and express.
Just keep at it - it will slowly all sink in.
Amazing job, will promote this channel to everyone.
👍
For you M1 mac users that get a problem when trying to migrate your db with the "docker-compose run app alembic revision --autogenerate -m "New Migration", you can try what i found to work.
The error text: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) SCRAM authentication requires libpq version 10 or above
So to fix that open the Dockerfile and change python version to 3.11 = FROM python:3.11
Then after RUN pip3 install --upgrade pip ..You add the following 2 lines:
RUN apt update -y && apt install -y build-essential libpq-dev
RUN pip3 install psycopg2-binary --no-binary psycopg2-binary
Hope this help!
Thanks a lot pro for this tutorials 🙂🙂🙂
Nice tutorial, Bro!
This was very helpful, great stuff
Glad to hear it!
Thank you for your work, one is very explanation for beginning.
You are welcome!
one word ...
LEGEND!
Keep in touch...
Hey Zander, really cool video !! Do you plan to make a series about fastapi? Like some kind of complete app like the ones you do in Django? Thanks for your videos man, they are really good!
Thank very much. What a wonderful video.👍
Thank you very much, understand more about Docker.
Thank you for your efforts Sir. You have a new subscriber.
Excellent tutorial.. highly appreciated!
Thanks a lot for your work! Very helpful content with a great explanation.
Really great!…, thank you so much for doing so simple!… really appreciated!…
You're very welcome!
If u still getting errors you can remove versions from all the packages in the requirements.txt file
Oh My My, thanks Sir..
Wanted to experiment with some fast API😆
Enjoy
Are you going to make a series or just single video. Anyway great as usual.
No idea, depends if anyone wants it a guess. There is still much to be done with Django of course.
2022 update > if you get an error about postgres 14 vs 13 change the postgres image to image: postgres:13.7-alpine3.16, remove the already built images and build it again. That should solve the issue.
Hi Zander. Your Django ecommerce series is great. I think it'll be perfect to recreate your ecommerce series using FastAPI to create APIs instead of Django for APIs. FastAPI is faster and API first package. So, we can enjoy faster API calls for large scale systems. What do you say?
I have plans to do more FastAPI tutorials and courses. I am at the minute building an SQLAlchemy Course which features FastAPI and Flask. The plan is at the minute is to finish that then roll out the last parts of the djChat. With that done I will do a FastAPI fapiChat, replicate the project with other tools. I then after or before need to pump out the Django Mastery which will be a 100+ hour course. There is just so much to do. With the ecommerce work, I want to build something much more indepth which includes deeper design, testing phases to make it more realistic, want people to feel they are actually doing a real project. Needless to say, there is much work to do done.
@@veryacademy Thank you so much for the reply. Also, I think with the Django e-commerce work, to make that playlist more complete, adding Payment integration tutorial to the existing DB design would make it pave the way for someone to go ahead and create frontend by themselves. I'm thinking to create a product out of your tutorials of Django series v2. Is that in your plan, Zander?
Thanks for this sir!
Awesome 👍
Thanks 🤗
It seems that we cannot access the database if we run it locally :/. I would appreciate any help on this issue.
Wow, just wow!
Is there a N+1 problem in Fastapi just like Django?
I was having issue with update/put method, any help?
What color scheme is that in VSCode? Does anyone know? Pretty please
I need update and delete methods for this? Can someone help me with this
I got this error when i docker-compose up (FAILED: No config file 'alembic.ini' found, or file has no '[alembic]' section), what i need to do to fix it, i tried everything but still doesnt work
Facing this today too😢
I also faced the same issue. But I didn't see the error when I finished the tutorial.
My advise: skip the demo part and debug along as you follow the tutorial.
Can you make an E-commerce project in fast API?
thank you for making these videos
Thanks Santosh - I am working on version 2 of the ecommerce store with the mindset that I will roll it out with Django templates > React/Next.js > GraphQL > Fast API. It is partly reason I started rolling out these introductory tutorials 👍
i tried using the python alpine version but it did not work .. any ideas why ?
Hi, sorry not at the computer, but, I did address this I think in the later tutorial you will find a docker file using alpine
For job opportunity can i bet on fastapi?
Think of fast api as a tool, in order to use tools you need to understand in this case Python / databases. Typically you would apply for Python roles and fastapi might be a tool you use in the job. There won’t be as many jobs for a specific tools such as fastapi
@@veryacademy understood thanks for the reply bro
can we also add a streamlit course to connect to this API Web Framework! It will be so great!
first of all thanks for this video and please tell me this theme name
Owl is the name of the theme
@@veryacademy thanks for your reply
Looks like I have a long video to watch today 😁.
Hope you enjoyed it!
@@veryacademy I loved it, although I had to skip the initial portion (Docker), I learned a new technology.
One question tho, are you planning to make a series or only some videos on this topic ?
@@justacasualdeveloper Am just building another one at this minute with GraphQL
@@veryacademy oh wow, I'm looking forward to watching it. 😁
so interesting
Can It replace of django?
API wise, yeah definitely.
God's and Angel's bless and protect you always.
Xander My Man Please Start a Course about Creating telegram Robots
Its a bit out there for now, but I will consider it in the future. At the moment, I am focused on Django.
thanks god, not an indian tutorial!
Lol😂