I tried to find out about the code used by python beginners
I checked because it is necessary to install pillow to upload images to the blog. A python library that is still under development (openCV for more advanced things) Various processing such as image color conversion and trimming can be performed
pip Used when installing a package. It feels like pip install ##
static_URL The code at the bottom of project name / setting.py. The following URL is easy to understand https://qiita.com/saira/items/a1c565c4a2eace268a07
os.path() Module for using various functions that depend on os File and directory operations are possible os.path.join can join paths and filenames MEDIA_ROOT = os.path.join (BASE_DIR,'media') joins BASE_DIR and media os.path.dirname () returns the specified path minus the filename https://codor.co.jp/django/about-basedir
project folder name ┗ project name ┗ app name
ImageFields Variables for handling image files in model
Recommended Posts