Python Project Interview Questions

Posted By freeproject on March 19, 2018
  • What are the technologies, have you used for developing the project ?
  • I have used Python, Django and MySQL for developing this project. Frontend desing structure has been developed in HTML, CSS and JavaScript and business logic has been implemented in Python and Django. I have used MySQL database for storing all the information.
  • What is the frontend of the project ?
  • Python is the frontend language of the project
  • Which framework, you have used with python ?
  • I have used Django Web Framework with python.
  • What is the backend or database of the project ?
  • I have used MySQL database for this project.
  • How you have connected the MySQL server from Python and Django ?
  • I have used MySQL Connector for connecting the database with Python.
  • Write down the database connection.
  • DATABASES = {
    	'default': {
    		'ENGINE': 'mysql.connector.django',
    		'NAME': 'car_rental_system',
    		'USER':'root',
    		'PASSWORD':'',
    		'HOST':'',
    		'PORT':''
    	}
    }
    		
  • Steps to Install Softwares
  • Step 1: Uninstall all MySQL Softwares and Python Software from Control Panel if you have.
    Step 2: Install Python 2.7.9 in C Drive
    Step 3: Install XAMP Server in C Drive
    Step 4: Set Path for "c:/python27" and "c:/python27/Scripts" folder in enviroment variables
    • Right click on "My PC" or "My Computer" and click on properties.
    • Click on "Advanced System Settings" link, it will be available on your left sidebar
    • Click on "Advanced" tab.
    • Click on "Enviroment Variables" button
    • In System Variables click on "Path"
    • In "Variable Value" enter ";C:/pytho27; C:/pytho27/Scripts"
      Note: Dont forget to add semicolon (;) at beginning
    • Click on "Ok" and exit from it.
    Step 5: Open CMD (Command Terminal)
    Step 6: Check Python version : Command = python --version (It must show you python 2.7.9)
    Step 7: Install Django 1.11 : Command = pip install django == 1.11
    Step 8 : Open XAMP Control Panel and start Apahce and MySQL
    Step 9 : Import database : Open the URL http://127.0.0.1/phpmyadmin and click on create database and create the database with same name as the sql file, it will be available into your extracted folder
    Step 10 : Choose the database from left sidepanel
    Step 11 : Click on Import and choose the sql file from extracted project folder
    Step 12 : Click on Go, all the tables will be imported into the database.
  • Show me the running process of the project. (For normal project)
  • Step 1 : Start XAMP or WAMP Server
    Step 2 : Open CMD
    Step 3 : Go inside your project "cd C:/PROJECT_NAME"
    Step 4 : Run the command "python manage.py runserver"
    Step 5 : Open any web browser and open the URL : http://127.0.0.1:8000
  • What are the software requirements for running your project ?
  • Python Version 2.7
    Django Version 1.11
    MySQL Version 5
    WAMP or XAMP server for MySQL