https://github.com/barisertugrul/djangoblog
https://github.com/barisertugrul/djangoblog
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/barisertugrul/djangoblog
- Owner: barisertugrul
- Created: 2025-02-19T20:08:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-25T18:28:47.000Z (11 months ago)
- Last Synced: 2025-07-01T16:11:12.801Z (6 months ago)
- Language: Python
- Size: 5.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Blog Project
This Django project is a web application where you can create and manage blog posts.
## Requirements
- Python 3.8 or higher
- pip (Python package manager)
## Setup
### 1. Clone the Project
```bash
git clone https://github.com/barisertugrul/djangoBlog.git
cd djangoBlog
```
### 2. Create and Activate a Virtual Environment
For Windows:
```bash
python -m venv venv
venv\Scripts\activate
```
For Linux/macOS:
```bash
python3 -m venv venv
source venv/bin/activate
```
### 3. Install Required Packages
```bash
pip install -r requirements.txt
```
If `requirements.txt` is not available, manually install the following packages:
```bash
pip install django
pip install django-crispy-forms
pip install crispy-bootstrap5
pip install django-ckeditor
pip install Pillow
pip install django-cleanup
```
### 4. Create Necessary Folders
```bash
mkdir static
mkdir media
mkdir staticfiles
```
### 5. Database Operations
```bash
python manage.py makemigrations
python manage.py migrate
```
### 6. Collect Static Files
```bash
python manage.py collectstatic
```
### 7. Create a Superuser
```bash
python manage.py createsuperuser
```
### 8. Run the Project
```bash
python manage.py runserver
```
Visit `http://127.0.0.1:8000` in your browser to view the project.
## Important Notes
- Before deploying to production, change `DEBUG = True` in `settings.py` to `False`.
- Keep the `SECRET_KEY` secure.
- Use a secure database in the production environment.
## Folder Structure
```
project_folder/
│
├── static/ # Static files (CSS, JS, images)
├── media/ # User uploads
├── staticfiles/ # Collected static files
├── templates/ # HTML templates
└── venv/ # Virtual environment
```