-
ZSH
sudo apt install zsh -y
Aqui estão os dados de referência para deploy de uma aplicação Django, de acordo com as aulas do meu curso de Django na Udemy.
Como vamos usar um servidor na nuvem (cloud server), é interessante que você utilize algum serviço gratuito para isso. Recomendo a Google Cloud Platform.
https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
____REPLACE_ME_WITH_YOUR_OWN_DOMAIN____
= Replace with your domain__PROJECT_FOLDER__
= Replace with the path to the folder for the project__STATIC_FOLDER_PATH__
= Replace with the path to the folder for static files__MEDIA_FOLDER_PATH__
= Replace with the path to the folder for media files__SOCKET_NAME__
= Replace with your unix socket name
https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/
____REPLACE_ME_WITH_YOUR_OWN_DOMAIN____
= Replace with your domain__PROJECT_FOLDER__
= Replace with the path to the folder for the project__STATIC_FOLDER_PATH__
= Replace with the path to the folder for static files__MEDIA_FOLDER_PATH__
= Replace with the path to the folder for media files__SOCKET_NAME__
= Replace with your unix socket name
O macOs roda sobre Darwin OS (kernel XNU), que é um sistema UNIX-like. Então, todos os comandos abaixo também funcionam normalmente no MacOS. Recomendo utilizar o gerenciador de pacotes homebrew caso necessário instalar algo. Se quiser o mesmo terminal que eu (ZSH com Oh My ZSH), utilize este vídeo para configurar https://youtu.be/bs1-Wxb_KIc
No Windows é possível utilizar o wsl2 e instalar uma versão do linux para acompanhar. Eu fiz alguns vídeos para você usar o Linux no Windows.
Observação: estou usando o Python 3.10.
O que é Type Annotation? São partes do código usadas para indicar tipos de dados em locais como: variáveis, parâmetros e retornos de funções e métodos. Em Python isso é usado para documentação e ajuda com auto completar dos editores, visto que a linguagem não impede a execução do código mesmo se as anotações estiverem incorretas.