An open API service indexing awesome lists of open source software.

https://github.com/suptarr/python-django-template

Make full use of Django and Python knowledge and its accompanying documentation to create an APIs.
https://github.com/suptarr/python-django-template

bootstrap5 django html5 postgresql python3

Last synced: 4 months ago
JSON representation

Make full use of Django and Python knowledge and its accompanying documentation to create an APIs.

Awesome Lists containing this project

README

          

# Python Django Template

## About The Project

This project was completed as part of `Writing your first Django app` form `Django documentation`. I am tasked to make full use of Django and Python knowledge and its accompanying documentation to create an APIs for polls and vote.

## Technologies

This project was created with:

- Python
- Django
- PostgreSQL

## Installation

### Run Locally

Clone the project

```sh
git clone https://github.com/SupTarr/Python-Django-Template
```

### Set up Python and packages

To install `Python` on your machine go to [Python Download](https://www.python.org/downloads/).

```cmd
py --version
```

To install `virtualenv` via pip

```cmd
py -m pip install --user virtualenv
```

To create a `virtual environment` for your project, open a new command prompt, navigate to the folder where you want to create your project and then enter the following:

```cmd
py -m virtualenv .
```

To activate the environment, run:

```cmd
.\Scripts\activate.bat
```

In the command prompt, ensure your virtual environment is active, and execute the following command:

```cmd
pip install -r requirements.txt
```

### Set up Django and run server locally

Create a `mysite` directory in your current directory.

```cmd
django-admin startproject mysite
```

To create your app, make sure you’re in the same directory as `manage.py` and type this command:

```cmd
py manage.py startapp app_name
```

Verify it’s working with the following command:

```cmd
python manage.py runserver
```