The Repository consist of the Web Application Using Django that can take User inputs And Stores in Database
Prerequisite for the Project
- Python:- Python latest Version Can be downloaded using the Link
- PyCharm:- Pycharm is the platform that Used to run the Python Files That Can Be Downloaded using Link
- Django Module:- To work with Django you need to install Django module which is installed by using command
$\color{blue}{pip\ install\ django}$ which can be enter in command prompt - Data Base:- Django inbuilt Enabled with Sqllite we can cange the database to MySQL, PostgreSql etc..,
- HTML,CSS:- You need to Create the form with HTML(Hyper Text Markup Language), CSS(Cascading Style Sheet) that can take the input from the user.
- Virtual Environment:- You need to create virtual environment that can can setup all the required environment like python etc..,
Platform | Download link/command |
---|---|
Python | Link |
Pycharm | Link |
MySQl | Link |
Django | pip install django |
MySQL Connector for Python | pip install mysql-connector-python |
- After downloading the repository and Extract all Files in the zip folder to your local computer.
- Open PyCharm: Launch PyCharm from your applications or start menu.
- Open Existing Project: If you have PyCharm open but no project is currently open, you'll see a welcome screen. Click on "Open" and navigate to the directory where your Django project is located. Select the root directory of your Django project and click "OK". If PyCharm is already open with a project, you can click on "File" -> "Open" and follow the same process.
- Set Up Interpreter: PyCharm may prompt you to configure a Python interpreter for the project. Ensure that you select the correct Python interpreter that you want to use for your Django project. You can create a new virtual environment or use an existing one.
- Wait for Indexing: PyCharm will index your project files, which may take some time depending on the size of your project.
- Open Terminal: Once the project is loaded, you can open the terminal within PyCharm by clicking on "View" -> "Tool Windows" -> "Terminal".
- Run Server: In the terminal, navigate to the directory where your manage.py file is located and run the Django development server using the command python manage.py runserver.
- Access Django Admin: Open a web browser and navigate to the address provided by the Django development server (typically http://localhost:8000/). You should see your Django project running. If you have set up Django admin, you can access it at http://localhost:8000/admin/.
- Here Is the Step by Step Video link to Setup the project-- Link
After Running Project you will get the output with the link to access the Project which looks like
In this page you will get two buttons one for data entry and another for data retrival
if you press data entry button you will get HTML Form that have the feilds like name,age,email,DOB(Date Of Birth) all are the mandatory feilds.
Output of the data which is data retrival page looks like
The Database consist of the Feilds of id which autoincriment with the data and it is a PrimaryKey, Name is a text Feild datatybe will be varchar, Email is a text Feild datatybe will be varchar, Age it is a integer Feild, Date of Birth it is a Date Feild.
Let's Look at the Schema of The Database
Field | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|
ID | int | NO | PRI | NULL | auto_increment |
Name | varchar(255) | NO | NULL | ||
varchar(255) | NO | NULL | |||
Age | int | NO | NULL | ||
DateOfBirth | date | NO | NULL |
Here is the demo link of the project ----> Link