This project leverages Django to set up a blog that automatically generates a post after a specified period using OpenAI's ChatGPT.
- Python 3.6 or higher
-
Clone the repository
git clone https://github.com/GastoneCanessa/auto_blog.git cd auto_blog
-
Create a virtual environment
python3 -m venv env source env/bin/activate # On Windows, use
env\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Setup .env file
OPENAI_KEY=your_openai_key SECRET_KEY=your_secret_key_for_django
-
Run the project
#Start the asynchronous server with Daphne: daphne project.asgi:application
redis-server
celery -A project beat --loglevel=info
celery -A project worker --loglevel=info