Skip to content

Django web app to maintain a municipal monuments register

License

Notifications You must be signed in to change notification settings

rkucmierowski/Final_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeGEZ

This is my final project for Python course in Coders Lab IT School.

The freeGEZ app is used to maintain a municipal register of historical monuments (gminna ewidencja zabytków).

In accordance with Polish law, developing municipal records of historical monuments is the duty of local government:

The head of the commune, mayor or president of the city shall keep the commune inventory of monuments in the form of address cards of immovable monuments located in the commune (Act of 23 July 2003 on the protection and guardianship of monuments).

Features

  • basic CRUD operations for entities representing the address cards of immovable monuments
  • exporting records to PDF

Prerequisites

Before getting started, please make sure you have installed Python 3.5+ and PostgreSQL.

Installing

To run the application please follow these steps:

  1. Clone this repo to your local machine.

  2. Create and activate a virtual environment:

    virtualenv -p python3 venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create a new PostgreSQL database and add the credentials to ".env" file using this pattern:

    DATABASE_URL=psql://<username>:<password>@<host>:<port>/<database>
  5. Obtain a secret key from MiniWebTool and also add to ".env" file:

    SECRET_KEY=<obtained_secret_key>
  6. Apply the migrations, create a superuser, and run the server:

    python manage.py migrate
    python manage.py createsuperuser
    python manage.py runserver

Built With

  • Django-environ – Used to store config in environment variables

  • Django Widget Tweaks – Used to tweak the form field rendering in templates, not in python-level form definitions

  • Font Awesome – An iconic font with CSS toolkit

  • WeasyPrint – A visual rendering engine for HTML and CSS that can export to PDF

  • Zeep – A Python SOAP client

  • TERYT ws1 – A web service that allows access to data from Polish National Official Register of the Territorial Division of the Country (TERYT).

Screenshots

List of records:

Form:

Details view:

Export to PDF:

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE v3.0 - see the LICENSE file for details

About

Django web app to maintain a municipal monuments register

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published