
# Tech Cone Django Readme
## Overview

This API handles the interface between trainer clients and the central server of the distributed trainer. This API handles the transfer of information concerning training iterations, training weights, and encrypted training data. 

### How to run
To run and view the django site do the following from the TechConeSite directory:
```
> python3 (or python) -m venv .venv
> source/bin/activate .venv
> pip install django
> cd to the /DjangoTechCone directory
> python manage.py runserver
```


---
### Base

The base url that has endpoints returning views for all basic pages on the site.

#### `GET /`

Returns a view of the home page

#### `GET /cone`

Returns a view of the home page

#### `GET /about`

Returns a view of the home page
#### `GET /contact`

Returns a view of the home page

### User

User model endpoints relate to the creation of, authentication of, and deauthentication of site users.

---

#### `POST /users/login`

This endpoint sends login fields of username and password through a django user login form, logs in the user, and redirects the user to the home page after logging in.

#### `POST /users/register`
This endpoint sends login fields of username and password through a django user register form, register and logs in the user, and redirects the user to the home page after logging in.

#### `POST /users/logout`
This endpoint sends a logout request and deauthenticates the current user and redirects them to the home page.

---


## Changelog

| Version | Date      | Changes              |
| ------- | --------- | -------------------- |
| `0.0.1` | 2026-4-17 | Refactored to Django |