A simple Django application demonstrating basic math functions
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
A quick Django project demonstrating the basic math functions of addition, subtraction, multiplication, and division.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
To Start a new Django app perform the following steps
-
Install the latest version of Python, as of this writing version 3.11.1 was installed and used to code this project.
-
Create a top-level folder to hold your project.
-
Change into that directory. Once in the directory create a new python virtual environment with the following command:
python3 -m venv venv source venv/bin/activate
-
At a minimum you will need Django and openai
pip install Django openai
-
Use the command to start the django project
django-admin startproject codebot .
-
Use the command to start a new django app
python manage.py startapp website
-
Register the app in settings.py
-
Run the django project using the command
python manage.py runserver
If you want to skip the steps above you can go ahead and clone this repo, and use my code as a starter.
-
Clone the repo
git clone https://github.com/drobb2020/codebot.git
-
Install the required packages
pip install -r requirements.txt
Add, subtract, multiply, or divide the two numbers show on the screen. Click submit and see if you got the answer right.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @davidrobb2 - drobb2011@gmail.com
Project Link: https://github.com/drobb2020/math-flash-cards
I want to thank John Elder of Codemy.com for creating this course. Check out all of his courses at codemy.com.