This is a simple blog website built with Django. Users can create an account, log in, and log out, as well as view all blog posts.
-
User Authentication
- Sign Up: Users can create a new account.
- Log In: Users can log into their account.
- Log Out: Users can log out from their session.
-
Blog Posts
- Display all blog posts on the homepage for easy access and browsing.
- Backend: Django
- Frontend: HTML, CSS, JavaScript
- Database: SQLite (default Django database for development)
-
Clone the repository:
git clone https://github.com/asiq-dev/django-blog.git
-
Navigate into the project directory:
cd django-blog
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations to set up the database:
python manage.py migrate
-
Create a superuser (for admin access):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
-
Open the website in your browser: Visit
http://127.0.0.1:8000/
to see the blog website in action.
- Sign Up: Register a new account by navigating to the Sign-Up page.
- Log In: Log in to the website with your credentials.
- Log Out: Safely log out from your account.
- View Blog Posts: Browse all available blog posts on the homepage.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.