# 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](/files/FyDwRti2662ZbPiwrcFO)

### 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](/files/5WaV1882uhwgTS6zeY0P)

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.consuldemocracy.org/tech_docs/features/local_census.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
