Quick tip: Windows users, you dont have to type full word "python" in terminal, "py" or "py3" / "py2" (if you have multiple versions installed) is enough. A bit shorter, than before, still faster than full word 😅. P. S. Great tutorials Dennis, always appreciate it. 👍🏽
For how great things like FastAPI, Flask, ExpressJS, etc are, I keep coming back to Django because of just how easy it is to get things up and running so quickly
Probably the best way for connecting Django to a DB is using Docker (both in production and development level) but this is also such a nice way👌🏾🔥 Thanks Dennis✨
@@MartinoxxHD i live in iran, so i can’t use AWS😁 i use Docker in VPS servers and it’s great but i heard that AWS is a great way to use and deploy Django Apps👌🏾
When deploying on any platform, let's say Heroku, we get a connection limit with Postgres, about 20 for free plan and upto 120 for paid. So how do we deal with this connection limit on a real project because upto 120 connection is way too less if you have high traffic. A tutorial/explanation will be highly appreciated on it, as to how to scale Django+Postgres app !
Hey Dennis, Can you create a video on how to host your django aap on railway from start to end with everything we need just like you did on django 3.0 crash course with heroku? I'm bit confuse if we need AWS with railway. I already watched your video about moving app from heroku to railway. But I request you to create one with everything (Railway, postgres and etc). Please. THank you.
my django project which was hosted on heroku and AWS S3 wont work anymore when moved to Railway as the DATABASE_URL is still linked via Heroku which has been disabled. How do I link the database URL to railway, I have tried everything!
Hey Dennis, Im already using django+postgres for a while, and now Im struggling to handle timezones. Basically I always send to postgres, via django ORM, a timestamp with timezone awareness (-03:00), but postgres automatically saves it with timezone (+00:00), which leads my code to incorrectly calculate usage time for my users. Im "solving" it by adding again the timezone awareness when requesting this info, but it seems not right. Do you happen to face this issue too? How is the best way to handle this problem?
What do when in production like hosting on some other websites like Vercel, Netlify etc.? What to do when the password is available in the source code.
Great tutorial. I am using Postgres, what is the upside of this, because as of now, I run my django app in a linux virtual machine using nginx, and installed postgres there. Will I be better of using another host for my postgres? Thanks and you really helped a lot!
Bro you are literally posting the exact stuff that I need. Lol I used postgres in the past for Ruby on Rails and I was wondering if I could do it for Django cuz it's really similar.
Hey, I tried to deploy my web app to vercel but I'm getting this error: Error: pg_config executable not found. It then directed me to install the package psycopg2-binary, which I did but I'm still getting the same error.
Could someone help me clarify a question? I've successfully deployed my Django App on Railway using SQLite. Now, let's say a user makes a post request that updates the database. Will these changes be reflected in my GitHub repository? In other words, if I make a new push to my GitHub repo and Railway re-deploys, will it recognize that the existing database file is already up to date and avoid replacing it with the outdated one from GitHub?
Changes to the database will only be reflected temporarily but will not remain, meaning, you may see changes in your database but it will not update your files in github. You will want to use a production level database like postgres
You need to have a LAMP stack or XAMMP (for Windows PC) then make your server IP static and then configure your router to direct all port 80 or 8000 request to the machine :)
please make a video about django signals oversimplified class based view, generic drf signals channels for new comers these are most confusing part of django, I think
Don't forget to check out my Complete Django course: dub.sh/JNH6EeA
Please create a tutorial on Django channels and websockets
Yesss. Everyone needs to thumbs up this request.
He has already does.
Agree.
Денис, пожалуйста 🙏🏻
Quick tip: Windows users, you dont have to type full word "python" in terminal, "py" or "py3" / "py2" (if you have multiple versions installed) is enough. A bit shorter, than before, still faster than full word 😅.
P. S. Great tutorials Dennis, always appreciate it. 👍🏽
For how great things like FastAPI, Flask, ExpressJS, etc are, I keep coming back to Django because of just how easy it is to get things up and running so quickly
Probably the best way for connecting Django to a DB is using Docker (both in production and development level) but this is also such a nice way👌🏾🔥
Thanks Dennis✨
what about an RDS instance in AWS?
@@MartinoxxHD i live in iran, so i can’t use AWS😁
i use Docker in VPS servers and it’s great
but i heard that AWS is a great way to use and deploy Django Apps👌🏾
1 year later steel the best method TNX man
Wow, thank you so much for this video. Railway is much more faster to setup than AWS. Thanks again Dennis. 💙
Wow, so clean and fast. Please make a video on how to host a DRF project
When deploying on any platform, let's say Heroku, we get a connection limit with Postgres, about 20 for free plan and upto 120 for paid.
So how do we deal with this connection limit on a real project because upto 120 connection is way too less if you have high traffic.
A tutorial/explanation will be highly appreciated on it, as to how to scale Django+Postgres app !
short and concise. Love it, straight to the objective.
watching this on the same day u made this....july 19...cheers
Hey Dennis,
Can you create a video on how to host your django aap on railway from start to end with everything we need just like you did on django 3.0 crash course with heroku? I'm bit confuse if we need AWS with railway. I already watched your video about moving app from heroku to railway. But I request you to create one with everything (Railway, postgres and etc). Please.
THank you.
Thanks Dennis for this video...really helpful
Damn, this was quick. Bookmarking this video for future needs.
hey Dennis what about if you want to schedule a command
Really you are super ! ,I solved my problem with your method ,Big thanks !
tip for mac: I had trouble pip installing psycog2, so I did pip install postgres and it worked
im getting the same error
It love the rail way, It really works
Very helpfull thanks
Make another video for this concept like payment part
This has been helpful, thank you.
Wow that is awesooooome! Thank you!
Thanks Dennis
I would like if u can show us how to create django restframework/fastapi multi tenant app and react
Dennis, Thanks for this video, really help.. Please, can you make a video on how to Dockerize a django project and why to do it.. Thanks
my django project which was hosted on heroku and AWS S3 wont work anymore when moved to Railway as the DATABASE_URL is still linked via Heroku which has been disabled. How do I link the database URL to railway, I have tried everything!
Awesome, it worked great. Thanks!
thanks bro, so so superfast
Hey Dennis, Im already using django+postgres for a while, and now Im struggling to handle timezones. Basically I always send to postgres, via django ORM, a timestamp with timezone awareness (-03:00), but postgres automatically saves it with timezone (+00:00), which leads my code to incorrectly calculate usage time for my users. Im "solving" it by adding again the timezone awareness when requesting this info, but it seems not right. Do you happen to face this issue too? How is the best way to handle this problem?
solution close your vs and open it again it will work
why that extra comma though?
What do when in production like hosting on some other websites like Vercel, Netlify etc.? What to do when the password is available in the source code.
Great tutorial. I am using Postgres, what is the upside of this, because as of now, I run my django app in a linux virtual machine using nginx, and installed postgres there. Will I be better of using another host for my postgres? Thanks and you really helped a lot!
Amazing! I did this but I can't seem to connect it to my heroku app even with the variables. Please help
A very easy to follow tut! Thank you, Dennis
Wow, that was amazing!
That was amazing tutorial.
01:38 Install psycopg2
02:56 Settings | Change database name
Hey Mr. Dennis does Railway host Static Files??
after migrating to postgress does it have old data that was stored in db.sqlite??
Bro you are literally posting the exact stuff that I need. Lol I used postgres in the past for Ruby on Rails and I was wondering if I could do it for Django cuz it's really similar.
Thnks bro you solved a big prob
If you use local installed postgres, FIRST create base in postgres, for example "my_db" and migrate command is passed!
Thanks for the plug 🔌
Can i link postgresql after worked on project
Hey, I tried to deploy my web app to vercel but I'm getting this error: Error: pg_config executable not found. It then directed me to install the package psycopg2-binary, which I did but I'm still getting the same error.
Was the issue resolved?
saying Hi from Twitter
Hi dennis , can i use railway instead of aws s3 to show images and media file ?
Hi Dennis, is there a reason you didn't use local Postgres?
Thank you, a little tip- it's not going to connect if you don't have a venv..
Can't find how to run python manage.py makemigrations on railway side. How do I?
I need how to connect Django with HDFS, how can I do that ?
Same process with local installed postgres?
Hi! Dennis, there are lots of people that see your videos from Latam, can you speak a little bit slowly? Thanks for your support
Thank you soo much
Could someone help me clarify a question? I've successfully deployed my Django App on Railway using SQLite. Now, let's say a user makes a post request that updates the database. Will these changes be reflected in my GitHub repository? In other words, if I make a new push to my GitHub repo and Railway re-deploys, will it recognize that the existing database file is already up to date and avoid replacing it with the outdated one from GitHub?
Changes to the database will only be reflected temporarily but will not remain, meaning, you may see changes in your database but it will not update your files in github. You will want to use a production level database like postgres
How to use existing database
Awesome video how about to create one for connecting MySQL to a Django app
Thank you
Hi bro, can you please do a project on real-time chat application using Django and Channels.
Thank you do much
Plzz Share.... market of Django...
how to deploy my django project on localhost as company server ; can you help me
You need to have a LAMP stack or XAMMP (for Windows PC) then make your server IP static and then configure your router to direct all port 80 or 8000 request to the machine :)
Sir can u explain django custom user model please 😔
Thanks!!
thanks!
I am having problems to connect my django app to my railway database, is there anyone who can help me with that?
me too, do you resolve it?
me too. the mirgation doesn't create all these tables. Anybody solved it?
Found the solution. I Forogot to safe the file after changing the Database Paramters
Getting this error when I set this up:
502 Bad Gateway
nginx/1.22.1
in 3 minutes?
please make a video about django signals oversimplified
class based view, generic
drf
signals
channels
for new comers these are most confusing part of django, I think
🤏
Thanks so much
thank you
thank you