Lekhan is a versatile Django-based blogging application that enables users to create, manage, and share their blog posts, comment on others' posts, like and unlike posts, edit their profiles, and more. It provides a robust platform for bloggers to interact and engage with their audience. This README.md file provides detailed instructions on setting up and using the Lekhan application.
- User authentication (registration, login, logout).
- Blog post creation, editing, and deletion.
- Commenting on blog posts.
- Liking and unliking blog posts.
- User profile creation and editing.
- Categorization of blog posts.
- Authorization control for blog post editing and deletion.
To run Lekhan locally, you need to have Python, pip, and Django installed on your system. Follow these steps to get started:
-
Clone the repository:
git clone https://github.com/auscode/Blogging.git
-
Change your working directory to the project folder:
cd Blogging
-
Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install the project dependencies from
requirements.txt
:pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Create a superuser (admin) account:
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Access the Lekhan application in your browser at
http://localhost:8000/
.
-
Log in with your superuser account to access the admin panel at
http://localhost:8000/admin/
. Here, you can manage users, blog posts, categories, and other site settings. -
To create a new blog post, navigate to the homepage and click on the "Create Post" button.
-
Users can register and log in to start interacting with the application, including creating their own profile, commenting on blog posts, liking/unliking posts, and more.
If you would like to contribute to Lekhan, please follow these steps:
-
Fork the repository on GitHub.
-
Clone your forked repository to your local machine.
-
Create a new branch for your feature or bug fix.
-
Make your changes and test thoroughly.
-
Commit your changes and push them to your GitHub repository.
-
Create a pull request to the original repository.
If you have any questions or need further assistance, feel free to reach out to the project maintainers:
- Email: [email protected]
We hope you find Lekhan useful for your blogging needs! Happy blogging!