This is a Django-based web application that serves as a health catalog for medications and diseases. Users can browse the list of medications and diseases, see detailed information for each, and search using filters.
- List medications
- Medication details, including diseases it can treat
- List diseases
- Disease details, including medications for treatment
- Search medications and diseases using
django-filters
- Pagination for easier navigation
- Python 3.x
- Django 3.x
- SQLite (default Django database)
- django-filters for search capabilities
- Python 3.x
- Pip
- Virtualenv (optional but recommended)
-
Clone the repository:
git clone https://github.com/kaluzhskaia/knowledge_base.git
-
Navigate to the project directory:
cd knowledge_base
-
Create a virtual environment (optional):
virtualenv venv
Activate the virtual environment:
-
On Windows:
.\\venv\\Scripts\\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install the requirements:
pip install -r requirements.txt
-
Run the migrations:
python manage.py migrate
-
Load the data into the database:
python manage.py load_health_data your_json_file.json
-
Start the development server:
python manage.py runserver
The application should be available at
http://127.0.0.1:8000/
.
- Navigate to
/medications/
to view a list of medications. You can use the search bar to filter the medications based on their name or description. - Navigate to
/diseases/
to view a list of diseases. Use the search bar to filter the diseases by name. - Pagination controls are available at the top and the bottom of medication and disease lists.

