摘要:        
项目的: 应用的:    阅读全文
posted @ 2018-05-05 23:56
梦中琴歌
阅读(174)
评论(0)
推荐(0)
        
            
        
        
摘要:        
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from django.shortcuts import render from django.shortcuts import redirect from django.shortcuts import HttpResponse from h...    阅读全文
posted @ 2018-05-05 23:54
梦中琴歌
阅读(336)
评论(0)
推荐(0)
        
            
        
        
摘要:        
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models class UserType(models.Model): caption = models.CharField(max_length=32) class User(models.Model): ...    阅读全文
posted @ 2018-05-05 23:49
梦中琴歌
阅读(245)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1、路由系统 /index/ -> 函数或类.as_view() /detail/(\d+) -> 函数(参数) 或 类.as_view()(参数) /detail/(?P\d+) -> 函数(参数) 或 类.as_view()(参数) /detail/ -> include("app01.urls") /...    阅读全文
posted @ 2018-05-05 23:38
梦中琴歌
阅读(168)
评论(0)
推荐(0)
        
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号