Posts

Django CRUD Operations

Image
 Django CRUD (Create Read Update Delete) Example To create a Django application that performs CRUD operations, follow the following steps. 1. Create a Project $ django-admin startproject crudexample   Django crud example Create a Project 2. Create an App $ python3 manage.py startapp employee   Django crud example Create an App 3. Project Structure Initially, our project looks like this: Django crud example Project Structure 4. Database Setup Create a database djangodb in mysql, and configure into the settings.py file of django project. See the example. // settings.py DATABASES = {       'default': {           'ENGINE': 'django.db.backends.mysql',           'NAME': 'djangodb',           'USER':'root',           'PASSWORD':'mysql',           'HOST':'localhost',         ...

IMPORTANCE OF EDUCATION

Image
    Importance of Education  FEW INTERESTING QUESTION BEFORE WE START.  1. What Importance of Education ? 2. Do You think that the education is important ?  3. Why Education is Important ?  4. Why should we Eduacte ?  5. Why Education is important for all in world ?  Some Interesting Factor About Eduaction and Literacy Given Below. :)  Introduction - As we know That world celebrates International Literacy Day On  8 September was declared as the International Literacy Day by UNESCO in its 14th General Conference which was held on October 26, 1966.  1. Literacy Ratio in INDIA According to the 2011 census data, India is home to about 121 languages out of which 22 are Scheduled languages.  Here are some facts and figures on languages spoken in India: 1. As per the 2011 census data, 43.63 per cent population in India speaks Hindi. 2. After Hindi, Bengali is the second most spoken language and Marathi is the third most spoken languag...

One mind blowing question!!!

Image
QUESTION DESCRIPTION THERE IS ONE FARMER WHO HAS 'X' NUMBER OF FLOWERS. SITUATION:  (GIVEN IN IMAGE) THERE IS THREE RIVERS  AND THREE TEMPLES. 1ST COMES RIVER:1 THEN TEMPLE:1  THEN RIVER:2 THEN TEMPLE:2 THEN  RIVER:3 THEN TEMPLE:3 CONDITIONS: 1. THE FARMER CROSS EVERY RIVER AND GO TO EVERY TEMPLE. 2.WHEN FARMER CROSSES RIVER, THE NUMBER OF FLOWERS WILL BE DOUBLE. THIS HAPPENS WITH ALL RIVERS.  3.THE FARMER PUTS 'Y' NUMBER OF FLOWERS TO EVERY TEMPLE. 4.AFTER PUTTING FLOWERS TO THE LAST TEMPLE, THE FARMER HAS NO FLOWER REMAINING. FIND  THE NUMBERS OF FLOWERS(X) AT STARTING. FIND NUMBERS OF FLOWERS(Y) WHICH HE PUTS IN EVERY TEMPLE. GIVE THE ANSWERS IN COMMENT SECTION. THE ANSWER WILL BE IN NEXT POST WITH EXPLANATION. TILL USE YOUR MIND AND FIND ANSWER!!

Steps to Setup Django in your PC with example.

Image
  Django Setup Step-1 . Make folder named "Admin panel" . open cmd  in "Admin panel" folder. Note: you can choose any  name for your folder. Step-2 . Write following command in cmd: “python –m venv myvenv” Step-3 . Write second command: “myvenv\scripts\activate” Step-4 . Write third command: “pip install django” (note-connect your pc with  internet then run above command) Step-5 . Write fourth command: “Django-admin s   Startproject  project . ” You can see the following  folders are being made in  folder ‘Admin panel’ : Folders: myenv, project File: manage.py Step-6 . 5 th command: “python manage.py  startapp app” You can see ‘app’ folder  being made in ‘ Admin  panel ’ folder . Step-7 . 6 th command: “code .”    (note : 1 space is between  ‘code’ and ‘.’) This command will open  ‘vs-code’ app if it is  installed  in your pc. (if vs-code not installed in your pc t...

Common Interview Questions and Answers

Image
How to Answer the Most Common Interview Questions [+ Sample Answers] ·          Tell me something about yourself. ·          How did you hear about this position? ·          Why did you decide to apply for this position? ·          What are your biggest strengths? ·          What are your biggest weaknesses? ·          What do you know about this company/organization? ·          Why should we hire you? ·          What are your salary requirements? ·          Do you have any questions for us? ·          What are you looking for from a new position? ·    ...