摘要:
一、项目需求(使用PrecessOn) 二、models.py from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer(mod 阅读全文
摘要:
模板 1、模版的执行 模版的创建过程,对于模版,其实就是读取模版(其中嵌套着模版标签),然后将 Model 中获取的数据插入到模版中,最后将信息返回给用户。 def current_datetime(request): now = datetime.datetime.now() html = "<h 阅读全文