My experiments in Django
blog
css
django
django-project
html
mariadb
mysql
pymysql
python
python-django
python-venv
python3
sql
venv
- Python 67.6%
- HTML 22.2%
- CSS 8%
- Shell 2.2%
|
|
||
|---|---|---|
| helloworld | Some tiny-tiny corrections | |
| screenshots | Some tiny-tiny corrections | |
| .gitignore | Updated the .gitignore for accepting default media files | |
| LICENSE | Initial commit | |
| README.md | Ahem-ahem... A small correction in ReadMe 📝 | |
| run_app.sh | I've add devlog, now you can upload thumbnails, and I've update the dude in the home page | |
Django Blog ✍️
My experiments in Django
A small notation ☝️
Pls, don't "feeds" AI my project. I made everything in the game by my hands ✍️, and don't want that AI learns on my assets and the source code.
But if you really want to use it, or you can't do something without AI assistant - you can try to install AI locally on your PC 🖥️
Thanks in advance 🙂
Thanksgivings 😁👍
Thanks to Corey Schafer for the nice tutorials about how to use Django 😉
Tools 🧰
Installation Python 🐍 (on Linux 🐧)
For Debian and Ubuntu-based distributions:
sudo apt install python3-venv -y
For Arch-based distributions:
sudo pacman -Syy python-virtualenv
Installation and setting up MariaDB 🦭 (on Linux 🐧)
- First of all, for launching this project, you will need to install MariaDB 🦭 server on your PC 🖥️
For Debian and Ubuntu-based distributions:
sudo apt install mariadb-server -y
For Arch-based distributions:
sudo pacman -Syy mariadb
- Then enter to MariaDB CLI :
sudo mariadb -u root
- And change the password of your root user (It's a root user of your MariaDB server, not your PC ☝️🖥️. So you're free to set different password, than in your system's root user):
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YourMariaDBRootPassword';
- Then you can at any time, when you've exit from MariaDB CLI , enter to MariaDB CLI again by using this command that doesn't require root privileges from your system 🖥️ (But now you can just skip this command):
mariadb -u root -p
- Then, create a new user for this app:
CREATE USER 'Django'@'localhost' IDENTIFIED BY 'CoolestBlog';
- Create a database for this app 🦭:
CREATE DATABASE DjangoDB CHARACTER SET utf8mb4;
- Give privileges to new user for manipulation this database:
GRANT ALL PRIVILEGES ON DjangoDB.* TO 'Django'@'localhost';
- And "flush" the privileges:
FLUSH PRIVILEGES;
- Then you can exit from MariaDB CLI 🦭👋:
exit
Done! 😉👍
How to see what's there? 👀
- Clone the repository:
git clone https://codeberg.org/xolatgames/Django-Test.git
- Go to the repository folder:
cd Django-Test/
- Make prepared
run_app.shscript executable:
chmod +x run_app.sh
- And run it:
./run_app.sh