/CentOS_settings

Setting CentOS up for Django

Creative Commons Zero v1.0 UniversalCC0-1.0

CentOS Enviroment Setup

Setting CentOS up for Django

Repositories needed

Enable repositories: AppStream, epel-playground

[foo@bar:~]# dnf config-manager --set-enabled AppStream epel-playground

Install SQL packages

install mariadb-server

[foo@bar:~]# dnf install mariadb-server

start the mysql server and set a root password

[foo@bar:~]# systemctl restart mariadb
[foo@bar:~]# mysql_secure_installation

To set a root password for MariaDB, if there's no password yet

[foo@bar:~]# systemctl restart mariadb
[foo@bar:~]# mysqladmin -u root password "NEWPASSWORD"

Create database 'renodb'

[foo@bar:~]# mysql -u root -p root
MariaDB [(none)]> create database renodb;
MariaDB [(none)]> exit;

Install django

[foo@bar:~]# dnf install python3-django -y

install connector

[foo@bar:~]# dnf install mariadb-connector-c-devel

install mysqlclient

[foo@bar:~]# pip3 install mysqlclient

Install pycharm

install snapd

[foo@bar:~]# dnf install snapd
[foo@bar:~]# systemctl enable --now snapd.socket
[foo@bar:~]# ln -s /var/lib/snapd/snap /snap

install pycharm-CE

[foo@bar:~]# snap install pycharm-community --classic