---
# System prepended metadata

title: 'Interview Challenge: Django Backend and Frontend'

---

# Interview Challenge: Django Backend and Frontend

## Overview

Your task is to create a Django backend that fetches and stores port data, and then to create a frontend to display this data.

## Backend Challenge

### Step 1: Set Up Django Model

Create a new Django model in your project to represent Ports. This model should be created in the polls app and must store the following fields:

- id (object key)
- name
- code
- country

### Step 2: Parse and Store Data

Parse the data from the link and store it in your database.

Fetch the data from the following link: [ports.json](https://raw.githubusercontent.com/marchah/sea-ports/master/lib/ports.json)


### Step 3: Create URLs and API

Set up your API to provide the port data.


## Frontend Challenge

### Step 1: Display Data

Fetch the port data from your backend API and display it in a table format.

### Step 2: Style the Table

Enhance the appearance of your table by properly formatting headers and rows.

### Demo

Once you've completed the tasks, you will be expected to demo your solution.


### Bonuses

- Set up the Django Admin panel or a similar interface to manage the port data.
- Implement column sorting for your table.
- Add filter options.
- Incorporate a search functionality.




---

Best of luck! Remember, the goal is to see your problem-solving skills and coding abilities. It's okay to ask questions and clarify your doubts.