- Django 2 Web Development Cookbook
- Jake Kronika Aidas Bendoraitis
- 76字
- 2021-06-10 19:31:29
How to do it...
Use the following structure in a Python file that you create. Starting with the first line in the file, put the imports categorized in sections, as follows:
# System libraries
import os
import re
from datetime import datetime
# Third-party libraries
import boto
from PIL import Image
# Django modules
from django.db import models
from django.conf import settings
# Django apps
from cms.models import Page
# Current-app modules
from . import app_settings