# Local Census

This feature is designed for installations with limited resources that cannot configure and customize their census connection remotely, so we offer them a solution to use a local census instead. For this purpose, administrators are provided with a way to manage the local census database through the administration panel under **Settings > Local census**.

## Managing the local census

Administrators can manage this census in two different ways:

* **Manually**: adding one citizen at a time through a form.
* **Automatically**: through an importation process.

### Manually

Administrators can create a record by clicking the *Create new local census record* button, which appears in the top right corner of the page. This will take us to a new page where we can fill in the following form and create the new record:

![Form to create a record by filling in the document type, document number, date of birth and postal code](https://2843722802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd9LWVG9gklmB6Mj632co%2Fuploads%2Fgit-blob-d38ce2a33753b7a9682b99d17ca1b7f694c76920%2Fadd-local-census-record-en.png?alt=media)

### Automatically

Administrators can import multiple records through a CSV file by clicking the *Import CSV* button, which appears in the top right corner of the page. This will take us to a new page where we can attach a CSV file to create the new records:

![Page to import new records via csv](https://2843722802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd9LWVG9gklmB6Mj632co%2Fuploads%2Fgit-blob-f8b414f5ce4e826f73f73336e8a9216819daeccf%2Fadd-local-census-records-csv-en.png?alt=media)

## Features

* Search by document number: Since the local census could contain a lot of records, we have added a search feature to allow administrators to find existing records by document number.
* Avoid the introduction of duplicated records: A model validation has been added that does not allow adding records that share the same *number* and *type* of document.
