Django application that integrates with OpenAI to generate content with the help of assistants.
- User Authentication: Supports standard user registration, login, logout, and password management.
- Dynamic Content Management: Admin interface for managing content, users, and site settings.
- RESTful API: Provides a RESTful API for interacting with the application data programmatically.
- Responsive Design: Utilizes Bootstrap for a responsive design that adapts to various screen sizes.
- Blog Module: Includes a blog module with categories, tags, and a commenting system.
- Search Functionality: Integrated search functionality for finding content within the site.
- Security Features: Implements Django's built-in security features to protect against XSS, CSRF, SQL Injection, and more.
Follow these steps to set up a development environment for this Django project:
- Python 3.8 or higher
- pip (Python package manager)
- Virtualenv (optional but recommended for creating isolated Python environments)
- Clone the Repository
git clone https://github.com/bamr87/barodybroject.git
cd barodybroject
- Create a Virtual Environment (Optional)
- For Unix/Linux/Mac:
python3 -m venv venv
source venv/bin/activate
- For Windows:
python -m venv venv
.\venv\Scripts\activate
- Install Dependencies
With your virtual environment activated, install the project dependencies:
pip install -r requirements.txt
- Set Up Environment Variables
Create a .env
file in the project root directory and add your environment-specific variables. For example:
DEBUG=True
SECRET_KEY=your_secret_key
DATABASE_URL=sqlite:///db.sqlite3
- Database Migrations
Apply the database migrations to set up your database schema:
python manage.py migrate
- Create Superuser (Optional)
To access the Django admin, create a superuser account:
python manage.py createsuperuser
- Run the Development Server
Start the Django development server:
python manage.py runserver
Your project should now be running at http://localhost:8000.
After installation, you can run the project locally using:
python manage.py runserver
Visit http://localhost:8000 in your web browser to view the application.