From 841c2d396cdb977a1c94cd0131f9e9ed642a9721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 7 Jan 2022 09:29:37 -0300 Subject: [PATCH] =?UTF-8?q?Track=20do=20processo=20de=20migra=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MIGRACAO.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 MIGRACAO.md diff --git a/MIGRACAO.md b/MIGRACAO.md new file mode 100644 index 0000000..0292ad9 --- /dev/null +++ b/MIGRACAO.md @@ -0,0 +1,48 @@ +NOTAS PARA MIGRAÇÃO PARA DJANGO 4.0 +=================================== + +Para montar o ambiente +---------------------- + +* Clonar o sigi em sua máquina: + `$ git clone git@github.com:interlegis/sigi.git` +* Entrar no diretório e mudar para o branch master: + `$ cd sigi` + `$ git checkout --track origin/master` +* Criar o ambiente virtual: + `$ mkdir env` + `$ virtualenv -p python3 env/sigi` +* Instalar os requirements: + `$ source env/sigi/bin/activate` + `$ pip install --upgrade pip` + `$ pip install -r requirements/dev-reuirements.txt` + +Pronto! Tá instalado! + +Para executar o SIGI: +--------------------- +``` +$ cd sigi +$ source env/sigi/bin/activate +$ ./manage.py runserver +``` +**No browser use o endereço 127.0.0.1:8000/admin** + +Macro-tarefas: +-------------- + +* [x] Definir ambiente python 3 e django 4.0 +* [ ] Migração dos APPS, nesta sequência: + * [x] servidores + * [x] contatos + * [ ] casas + * [ ] convenios + * [ ] parlamentares + * [ ] eventos + * [ ] servicos + * [ ] ocorrencias + * [ ] whois + * [ ] financeiro + * [ ] inventario + * [ ] metas +* [ ] Definição de um novo tema *bootstrapado* para o admin