results.html: Displays the results of the calculator. base.html: Base HTML file that is extended by the other HTML files. crop_calculator.html: The HTML file that contains the crop calculator form. calculations.py: The Python file that contains the logic for the calculator. forms.py: The Python file that contains the Django form for the calculator. crops_list.py: A Python file that contains data about the crops and livestock.
To use the calculator, follow these steps:Open the crop_calculator.html file in a web browser. Enter the required information in the form, including the number of people, acreage, daily calorie intake, daily protein intake, and dry and wet season lengths. Select the desired crops and livestock from the checkbox lists. Click the "Calculate" button to view the results. The results page will display the selected crops and livestock and the required acreage, calories, and protein for each.
The project was built using the following technologies:Python Django HTML CSS Contributing If you would like to contribute to the project, please fork the repository and create a pull request with your changes.
This project was inspired by the work of non-profits in Africa that are working to create sustainable farms to feed the population.This project is designed to help non-profits in Africa to implement a sustainable farm to feed the population. The project is currently a work in progress.
To run this project, you need to have Python 3 and Django 3 installed on your system. To install and run the project, follow these steps:Clone the repository to your local machine. Create a virtual environment for the project: python3 -m venv env. Activate the virtual environment: source env/bin/activate. Install the project dependencies: pip install -r requirements.txt. Migrate the database: python manage.py migrate. Run the development server: python manage.py runserver.
To use the project, follow these steps:Open a web browser and go to http://localhost:8000/calculations/. Enter the number of people, acreage, calories per day, protein per day, dry season length, and wet season length. Select the crops and livestock that you want to include. Click the "Calculate" button. The results page will display the acres required, calories, and protein for each selected crop and livestock.
This project is open to contributions. If you would like to contribute, please fork the repository, make your changes, and submit a pull request. This project is licensed under the MIT License.Name: Marcio Cavalcante de Azevedo Email: [email protected] LinkedIn: [www.linkedin.com/in/marcioazevedohub ](https://www.linkedin.com/in/marcioazevedohub