An online encyclopedia powered by the Python Django framework.
Wiki-Info is a project that aims to provide an online encyclopedia using the Python Django framework. It offers various features such as viewing available article entries, searching for specific entries, creating new entries, and editing existing entries. Additionally, users can explore random pages for an element of surprise.
For a detailed description of the assignment, you can refer to the CS50's OpenCourseWare page.
- Django
- JavaScript
- HTML
- TailwindCSS
Visiting /wiki/TITLE
, where TITLE
is the title of an encyclopedia entry, displays the content of that specific entry.
The homepage shows a list of all available encyclopedia pages. Users can click on any entry to access its corresponding page.
Users can create new encyclopedia entries. They can input the content in Markdown format using a textarea.
Each entry page provides a link to edit the content of that entry. Clicking the link takes the user to a page where they can modify the Markdown content.
Users can explore a randomly selected encyclopedia entry by clicking the "Random Page" option.
Markdown content in each entry is converted to HTML before being displayed. This conversion is performed using the python-markdown2
package, which can be installed via pip3 install markdown2
.
To run the project locally, follow these steps:
- Clone the repository and navigate to the project directory.
- Install the required packages (Django):
pip install -r requirements.txt
- Launch the app locally:
python manage.py runserver
Feel free to modify and adapt the above instructions based on your specific setup and requirements.