Skip to content

Python-Test-Engineer/django-con-eu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoCON Europe 2025

We will go through set up together at the start of the workshop.

Code examples will be able to use either Groq or OpenAI except a few which are for demo purposes only.

You will need an LLM API key.

Groq offers a free tier and uses the same API signature as OpenAI.

Free Tier with Groq: https://console.groq.com/login

Set Up

Create a virtual environment and install requirements:

To run LLMs, copy .env.sample to .env and add your OpenAI key or Groq API key:

  • OPENAI_API_KEY=sk-proj-TQa...
  • GROQ_API_KEY=gsk_ow4T...

Django ChatBot

see README.md in django folder but details are:

*You will need an OpenAI or Groq API key. *

This works with OpenAI Key saved in the .env file.

Rename .env.sample to .env and supply your OpenAI Key.

Usual Django set up - this works with python manage.py runserver with admin/password as credentials.

Go to http://127.0.0.1:8000/admin and login - use admin and password - then go to http://127.0.0.1:8000/ - if not logged in then error occurs in this demo.

The app 'chatbot' with views.py is the example we used of FAQ.

Another chatbot chatbot_app uses HTMX rather than JS - Thanks to Tom Dekan for this and can be found on YouTube https://www.youtube.com/watch?v=Y8GjRrotz6M

http://127.0.0.1:8000/chatbot-app/ to see this app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published