Skip to main content

gea

Gestión de Expedientes de Agrimensores.

gea es una aplicación web basada en Django para gestionar expedientes de agrimensores. Hasta ahora sólo fue usada en la provincia de Santa Fe, Argentina.

Requisitos previos

Instalación

$ pip install gea

Se instalan también los requirements como Django y nested-admin. Si además quiere utilizar PostgreSQL para la Base de Datos, deberá instalar manualmente psycopg2.

$ pip install psycopg2

Puesta en marcha

Crear proyecto Django

$ django-admin startproject estudio

Editar settings.py del proyecto Django:

$ # dentro de "estudio"
$ vim estudio/settings.py
  • Agregar gea y nested_admin a las INSTALLED_APPS:
INSTALLED_APPS = (
    ...
    'gea.apps.GeaConfig',
    'nested_admin',
)
  • Se pueden acomodar el Idioma y la TimeZone
LANGUAGE_CODE = 'es-AR'
TIME_ZONE = 'America/Argentina/Buenos_Aires'

Para utilizar PostgreSQL (opcional)

  • Opcionalmente, configurar la Base de Datos para utilizar PostgreSQL, de otro modo, Django usa SQLite3 por defecto. Editar settings.py.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'gea',
        'USER': '<postgresql-user>',
        'PASSWORD': '<postgresql-password>', # be creative
        'HOST': 'localhost',
    }
}

con esta opción se debe crear la BD, con el comando createdb de PostgreSQL

$ createdb gea

Editar urls.py del proyecto Django:

$ # dentro de "estudio"
$ vim estudio/urls.py
  • Importar las vistas de gea y agregar las urls de las aplicaciones que instalamos:
from django.conf.urls import include, path


urlpatterns = [
    ...
    path('gea/', include('gea.urls')),
    path('_nested_admin/', include('nested_admin.urls')),
]

Base de datos y Superusuario

$ # dentro de "estudio"
$ python manage.py makemigrations gea
$ python manage.py migrate
$ python manage.py createsuperuser

makemigrations y migrate ponen a punto la base de datos, createsuperuser instala el sistema de autenticación de Django, Django's auth system, con lo cual, pedirá usuario, mail y contraseña, por ejemplo: admin y Af7Dr2ujW. Con estos datos ingresaremos después a la interfaz de administración.

Archivos estáticos (css, img, js)

Por último, algo muy importante: los archivos de estilo, imágenes y scripts que usará nuestra nueva aplicación.

Editar settings.py agregando la siguiente linea:

STATIC_ROOT = './static/'

Y ejecutar:

$ # dentro de "estudio"
$ python manage.py collectstatic

¡LISTO... Ahora podemos probar cómo quedó nuestra django-app!

$ # dentro de "estudio"
$ python manage.py runserver

e ingresamos a http://127.0.0.1:8000/gea/... con los datos del superusuario que creamos antes.

LICENCIA

MIT

Metadata

Release files for gea 0.2.52

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gea 0.2.52
File Size Uploaded Provenance
gea-0.2.52.tar.gz 207.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gea 0.2.52
File Interpreter ABI Platform
gea-0.2.52-py3-none-any.whl Python 3 none any Details

Total release size: 428.6 kB

Release files / gea-0.2.52.tar.gz

Download URL gea-0.2.52.tar.gz
Size 207.7 kB
Tags Source
SHA-256 checksum
How to use checksums
397c322fdd2e507943cd66b1ca501a9520a270aea58df73529d28068990848c8
BLAKE2b-256 checksum
How to use checksums
a265eeabd88e9cb9d9f5c289ff61672645528ae1f38a67df9ae55e54dd09916c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Linux/5.10.23-1-lts

Release files / gea-0.2.52-py3-none-any.whl

Download URL gea-0.2.52-py3-none-any.whl
Size 220.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2a8695dd6f17962147229345a26b38e02b685032922f1a2cbb79bf3cb23e52c
BLAKE2b-256 checksum
How to use checksums
49df96f4ba73cc04d56478f021c3607cad174f97df643ffb17ef73a1d8f6008f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Linux/5.10.23-1-lts

Security for gea 0.2.52

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.52 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page