Django - How To Change Runserver Port

Опубликовано: 23 Октябрь 2024
на канале: codevev
2,979
67

#Django #Python #Shorts
By default, Django's runserver development server starts on port 8000. But what if that port is already taken by another application? Are we screwed?
Of course, not! All we need to do is specify the port after `runserver` in `python manage.py runserver` command.
Pro tip: you can even specify the IP address!

-------------------------------------------------------------------------------------
Links:
Blog: https://evgenyurubkov.com
Twitter:   / evgenyurubkov  
Instagram:   / evgenyurubkov  
Youtube:    / @codevev