Django Cheat Sheet

Install Django Verify Django Installation List all installed python modules / packages Create new django project Run Django Project Create New App manage.py help MySql Database connection open db shell with default connection MySql Database Connection Troubleshoot in Windows OSDownload whl package which is compatible with your python versionhttps://www.lfd.uci.edu/~gohlke/pythonlibs/Find: mysqlclient To check whether python is […]

Hello World django

Here are simple steps to create hello world web application in python using django framework Step 1: Install virtual environment and create virtual environment for your project pip install virtualenvwrapper-win mkvirtualenv myproject pip install virtualenv virtualenv name_to_your_env name_to_your_env\Scripts\activate After activation  $ django-admin.py startproject HelloWorld $ cd HelloWorld $ ls HelloWorld manage.py $ python manage.py runserver Validating […]

Experienced Interview Question

PHP What Is a Persistent Cookie and how it is different from Temporary cookie? How To Get the Uploaded File Information in the Receiving Script? What is the difference between mysql_fetch_object and mysql_fetch_array? How can we encrypt the username and password using PHP? why we use ceil() and floor() function in PHP? what is otput […]