This is a Django-based blogging platform that allows users to register, create, and manage blog posts.
- User authentication (login/register/logout)
- Create, update, and delete blog posts
- User profiles and account management
- Admin panel for managing content
- Python 3.x
- pip (Python package manager)
- Virtual environment (recommended)
- Clone the repository:
git clone https://github.com/pariyaaf/blog-django.git cd blog-django-main
- Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
- Apply migrations:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
- Access the application at
http://127.0.0.1:8000/
- Log in or register to create and manage blog posts.
- Use the Django admin panel at
http://127.0.0.1:8000/admin/
for content management.
blog-django-main/
│── .gitignore
│── requirements.txt
│── manage.py
│── pariya_blog/
│ ├── accounts/
│ │ ├── models.py
│ │ ├── views.py
│ │ ├── urls.py
│ ├── blog/
│ │ ├── models.py
│ │ ├── views.py
│ │ ├── urls.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py