Dilan Croos
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
To get a local copy up and running follow these simple steps.
Python 3.11.6^
-
install pip
$ python3 -m pip install pip
-
Clone the repo
$ git clone git@github.com:dilancroos/django_chat.git
-
Change to the working directory
$ cd django_chat
- Check Usage to create a virtual environment
-
Create a virtual environment .venv
$ python3 -m venv .venv
-
Enter the virtual environment .venv
$ source .venv/bin/activate
-
Install PIP packages
$ pip install -r requirements.txt
-
Rename envtemp to .env
- Add your Llama Api key to .env file
- If you dont have one visit llama-api.com to creat an API key
-
Migrate DB
$ python manage.py migrate
$ python manage.py makemigrations
again
$ python manage.py migrate
-
Create Super User
$ python manage.py createsuperuser
- enter username, email, password
-
Run Server
$ python manage.py runserver
-
Chat
- Login to Admin Portal,
-
logging in to https://127.0.0.1:8000/admin using the credentials you created.
-
Create chat group,
- Click on Chat groups > ADD CHAT GROUPS + > create a chat group called "ai-chat".
-
Create user "botty" by,
-
Click on Users > ADD USER + > create a user named "botty"
-
Add an email address
-
Save
-
Profiles > botty > Choose File --> select file on ./media/avatars/botty.png
-
Dilan Croos - antondilan.crooswarnakulasuriya@cri-paris.org.com
Project Link: https://github.com/dilancroos/django_chat
- Django chat template by Andreas Jud