Execute o Servidor de Desenvolvimento com runserver
Inicie localhost:8000 e veja a página do foguete
Execute o Servidor de Desenvolvimento com runserver é uma aula grátis de Django Academy no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Django Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Django Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
Start the Dev Server
Django includes a lightweight development server. The runserver command launches your app locally so you can see it in a browser. 🚀
python manage.py runserverVisit localhost:8000
By default the server listens on localhost:8000. Open that address in your browser to reach your running project.
The Rocket Page
A fresh project greets you with a friendly rocket page. Seeing it means your install and project are working correctly. 🎉
Auto Reload on Save
The server watches your files and restarts on changes. This auto-reload means you rarely have to stop and start it manually.
Change the Port
Port 8000 busy? Pass a different number to runserver. The new port lets you run several projects side by side.
python manage.py runserver 8080Bind to All Interfaces
To reach the server from another device, bind to 0.0.0.0. Now your phone on the same network can load the page.
python manage.py runserver 0.0.0.0:8000Stop the Server
Done for now? Press Ctrl+C in the terminal to stop the server cleanly and return to your shell.
Read the Console Output
The terminal logs every request with its status code, like a 200 for success. This live log is your first debugging tool.
The Migrations Warning
On first run you may see an unapplied migrations warning. It is harmless now and just reminds you to set up the database soon.
Development Only
This server is for coding, not real traffic. In production you swap to a production server like Gunicorn, which you will meet later.
Run It From the Right Folder
Always launch runserver from the folder containing manage.py. Run it elsewhere and Django cannot find your project.
Quick Check
Let's confirm how runserver behaves.
Recap
You launched runserver, saw the rocket page, changed ports, and learned it is for development only. Your first app is live locally! 🎉
Perguntas Frequentes
A aula “Execute o Servidor de Desenvolvimento com runserver” é grátis?
Sim — o texto completo de “Execute o Servidor de Desenvolvimento com runserver” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Django Academy, atualize para CoddyKit PRO. O curso de Django Academy inclui 4 aulas no total.
O que vou aprender em “Execute o Servidor de Desenvolvimento com runserver”?
Inicie localhost:8000 e veja a página do foguete Você pratica Django Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar Django Academy?
Nenhuma experiência prévia é necessária. Django Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.
Quanto tempo leva a aula “Execute o Servidor de Desenvolvimento com runserver”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de Django Academy?
Sim. Cada aula de Django Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- Ambientes Virtuais com venv
- pip install django e Fixação de Versões
- django-admin startproject Explicado
- Execute o Servidor de Desenvolvimento com runserver