Geopocos
Projeto apresentado na Live de Python do Canal Geocast Brasil.
Install / Use
/learn @marcellobenigno/GeopocosREADME
GEOPOÇOS - 🌵 GeoDjango Unchained 🌵
Projeto apresentado na Live de Python do Canal Geocast Brasil

A live foi apresentada em duas sessões:
Live 1:
Apresentada no dia 10/10/2019 e abordou parcialmente o conteúdo (até o ponto 6), está disponível em:

ÍNDICE DA APRESENTAÇÃO:
- APRESENTAÇÃO Live 1: 7:00
- INSTALAÇÃO Live 1: 9:44
- HELLO WORLD Live 1: 45:57
- USANDO O BOOTSTRAP COM HERANÇA DE TEMPLATES Live 1: 1:04:14
- NOSSO PRIMEIRO MAPA
- MODELS Live 1: 1:18:47
- ADICIONANDO OS POÇOS NO MAPA Live 1: 1:38:07
Live 2:
Apresentada no dia 24/10/2019, está disponível em:

:warning: Nessa ultima live tivemos alguns problemas computacionais, o gerou atraso na apresentação dos conteúdos propostos. A partir do minúto 30:00 começamos, enfim, a trabalhar com o que havíamos proposto :);
ÍNDICE DA APRESENTAÇÃO:
- REVISÃO LIVE ANTERIOR Live 2: 30:00
- MODELS - ogrinspect Live 2: 37:08
- CARREGANDO OS DADOS À BASE DE DADOS Live 2: 43:00
- ADMIN Live 2: 50:27
- ADJANGO-LEAFLET Live 2: 1:00:38
- VIEW Live 2: 1:12:00
- TEMPLATE Live 2: 1:39:00
- MAPA Live 2: 1:42:00
- CRIANDO O MAPA DE INTENSIDADE DE PONTOS (HEATMAP) Live 2: 1:56:00
- DUVIDAS E COMENTÁRIOS Live 2 2:30:00
REQUISITOS
- Python 3+ (de preferência o Python 3.7.4)
- PostgreSQL >= 10
- PostGIS >= 2.5.0
- GDAL, no linux instale com:
apt-get install python-gdal. Se for mac umbrew install gdalé suficiente.
CONFIGURAÇÕES DO BANCO DE DADOS ESPACIAIS
É necessário criar um banco PostgreSQL e habilitar a extensão espacial PostGIS, no terminal, faça:
createdb geopocos
psql geopocos
CREATE EXTENSION postgis;
\d
COMO DESENVOLVER?
- Clone o repositório;
- Crie um virtualenv com Python 3.7.4;
- Ative o virtualenv;
- Instale as dependências do ambiente de desenvolvimento;
- Crie o banco de dados espacial como foi descrito acima.
git clone https://github.com/marcellobenigno/geopocos.git
cd geopocos
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
- Renomeie o arquivo
env-samplepara.env:
mv env-sample .env
- Preencha as informações do
.enve rode os seguintes comandos:
python manage.py makemigrations
python manage.py migrate
- Adicione os registros nas duas tabelas:
python manage.py loaddata poco
python manage.py loaddata municipio
- Rode o
runserver...
python manage.py runserver
...e verifique se o mapa abaixo é exibido no link mapa:

Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
109.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
349.7kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
