This project is a simplified version of Quora, where users can post questions, answer questions, and interact with other users' content.
- Python (3.6 or higher)
- Django
- Django Forms (used for user registration and login)
- Your preferred database (e.g., SQLite, PostgreSQL)
-
Clone the repository:
git clone https://github.com/Pallavi-Pandey/Quora-App.git
-
Navigate to the project directory:
cd quora_project
-
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
-
-
Install the project dependencies:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
The project should now be accessible at http://localhost:8000/ in your web browser.
- Visit the registration page at
/register/
. - Fill in the registration form with a username, password, and confirmation.
- Click the "Register" button to create your account.
- Visit the login page at
/login/
. - Enter your registered username and password.
- Click the "Login" button to access your account.
- Log in to your account.
- Visit the homepage.
- Click the "Ask a Question" button.
- Fill in the question form and click "Ask Question."
- Log in to your account.
- Click on a question you want to answer.
- Scroll down to the answer form.
- Fill in your answer and click "Answer."
- Click the "Logout" link in the navigation bar.
quora_app/
- Django app directory containing views, models, templates, and forms.templates/
- HTML templates for the project.static/
- Static files (CSS, JavaScript, etc.).quora_project/
- Project-level settings and configuration.manage.py
- Django management script.requirements.txt
- List of project dependencies.
- Django - Web framework
- HTML/CSS - Front-end presentation
- Python - Programming language
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch to your fork.
- Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.