![]() ![]() Once Django install completes you can check installed version by using django-admin –version command:Īs a next step we just create new Django project using django-admin startproject testsite command (in this case “testsite” is a project name, which you can adjust according to your needs):Ĭreating Django project and listing project folder contents Once installation completes, you can check installed Python version ( python3.7 –version command) and further on create virtual environment by issuing the following sequence of commands:īelow you can find a screenshot showing these steps:Ĭhecking Python version and creating virtual environment Installing required Python3.7 dependencies We now need to install Python 3.7 along with required dependencies as shown below: ![]() For that we connect to MySQL server using sudo mysql -u root -p command (using default root name with blanc password), and then execute the following SQL statement:ĪLTER USER IDENTIFIED WITH mysql_native_password BY can replace with whatever you find easier or more secure □ Here is a screenshot demonstrating these steps: To install MySQL Workbench, you can use sudo apt-get install -y mysql-workbench command:Īs a next step we will set MySQL user password. Optionally you may want to install MySQL Workbench, if you prefer GUI way of managing your MySQL instance and databases. Let’s start?įirst of all, we need to install MySQL issuing sudo apt-get install -y mysql-server command as shown below: After installing Django + MySQL we will configure our Django project to use MySQL database. I will be covering entire process of getting Django + MySQL installed and configured in this article, but for more detailed steps and additional information you may refer to my previous posts on installation of AMP stack (covers MySQL and Workbench) and Django. In this one, we will see how we can configure Django application to use MySQL database instead of default SQLite database option, used by default after Django installation. how to perform basic Django development environment installation. In my previous article I covered basics of Django installation for development environment, i.e. StarWind Virtual Tape Library (VTL) OEM.
0 Comments
Leave a Reply. |