/python-django-app-starter

(WIP) Starter kit to start coding web-AI apps with Python. You can follow the git commit history to learn how to set up the project step-by-step

Primary LanguagePython

python-django-app-starter

Starter kit to start coding web-AI apps with Python and Django in as few steps as possible. (WIP)

Prerequisites

To run this project, you need to have the following installed on your system:

Installation

  1. Clone the repository:
git clone https://github.com/letam/python-django-app-starter.git
  1. Navigate to the project directory:
cd python-django-app-starter.git
  1. Install project dependencies:
python install
  1. Activate the virtual environment:
  • For Windows:

    .venv\Scripts\activate
  • For Mac or Linux:

    . .venv/bin/activate
  1. Start the Django app development server:
python src/manage.py runserver
  1. Visit the website at http://localhost:8000.

  2. Start hacking/building code:

  • To edit backend/server code, edit src/web/views.py. Note that the development server restarts automatically when changes are saved to disk.
  • To edit frontend/web code, edit src/web/templates/index.html. Reload the webpage in the browser to see changes.