Logo Lanfrica

alsongard/django-swahili-pot-hub

Créateur:
als
Hôte:
django practise and development swahili-pot-hub # Swahili-Pot Hub Django ## Description This project is a Django web application based on the official Django tutorial. It demonstrates the basics of Django by building a simple polling app where users can view questions, select choices, and vote. ## Features - **Questions**: Each question has a text and a publication date. - **Choices**: Each question has multiple choices. Each choice has: - A reference to its question - Choice text - Vote count - **Voting**: Users can vote for their preferred choice on each question. - **Results**: After voting, users can see the results for each question. ## Getting Started To start using the application: **Step 1:** Clone the repository ```bash git clone github.com ``` **Step 2:** Change into the project directory ```bash cd django-swahili-pot-hub cd djangotutorial ``` **Step 3:** (Optional) Create and activate a virtual environment ```bash python3 -m venv venv source venv/bin/activate ``` **Step 4:** Install dependencies ```bash pip install -r requirements.txt ``` **Step 5:** Apply migrations ```bash python3 manage.py migrate ``` **Step 6:** Run the development server ```bash python3 manage.py runserver ``` ## About This project is a learning resource and a starting point for building Django web applications. It follows the structure and logic of the Django polls tutorial, focusing on questions, choices, and voting functionality.