码迷,mamicode.com
首页 >  
搜索关键字:views    ( 4259个结果
django + jQuery AJAX初试
经过反复的测试,终于在django+jQuery AJAX成功返回服务器数据,本次测试在/static/test/test.txt test.txt: txt = {'1':'re','2':'qqq','3':'www','4':'rere'} views: def test(request):
分类:Web程序   时间:2016-01-29 19:46:40    阅读次数:140
django若干问题
1、使用post方式 在views.py里要出发post请求的函数前加入@csrf_exempt ,之前要引入from django.views.decorators.csrf import csrf_exempt 参考: http://www.cnblogs.com/dasydong/p/4427
分类:其他好文   时间:2016-01-29 12:24:22    阅读次数:102
手机图片上传编辑器
使用cropper、jqueryUpload插件、Jquery、src-dataurl-canvas-blob文件。 @{ ViewBag.Title = "设置封面"; Layout = "~/Views/Shared/_Layout.cshtml"; } @section css { <styl
分类:移动开发   时间:2016-01-29 11:42:34    阅读次数:455
Django学习笔记(三)
在polls/urls.py文件中键入如下代码:polls/urls.pyfromdjango.conf.urlsimporturlfrom.importviewsurlpatterns=[url(r‘^$‘,views.index,name=‘index‘),]下一步,让主URLconf可以链接到polls.urls模块。在mysite/urls.py中插入一个include():mysite/urls.pyfromdjango.conf.ur..
分类:其他好文   时间:2016-01-28 19:27:25    阅读次数:206
sybaseIQ重命名列名
Warning! You must change appropriately the definition of any dependent object (procedures, functions, and views) on an object being renamed by sp_iqre...
分类:数据库   时间:2016-01-28 12:31:41    阅读次数:268
ExtJS让被遮盖的窗体显示在最前面以及解决Ext.MessageBox提示框被TabPanel覆盖的方法【转】
ExtJS让被遮盖的窗体显示在最前面以及解决Ext.MessageBox提示框被TabPanel覆盖的方法 本文由arthinking发表于5年前 | Javascript | 暂无评论 | 被围观 14,752 views+ 一、如何让ExtJS的弹出提示信息框Ext.MessageBox或者创建
分类:Windows程序   时间:2016-01-27 17:12:15    阅读次数:226
[轉]Android Libraries 介紹 - Butter knife
原文地址Butter Knife 簡介Butter Knife - Field and method binding for Android views。助你簡化程式碼,方便閱讀。使用方法開發 andriod app 的時候,一定有寫過類似的 code: class ExampleActi...
分类:移动开发   时间:2016-01-26 15:08:12    阅读次数:154
django app下url包含到全局设置
为了分而治之,目录结构如下:1,mysite/ ├──db.sqlite3 ├──manage.py ├──mysite │├──__init__.py │├──settings.py │├──urls.py │└──wsgi.py ├──polls │├──admin.py │├──models.py │├──urls.py │└──views.py └──templates └──a..
分类:移动开发   时间:2016-01-26 01:52:37    阅读次数:183
python27+django1.9创建app的视图及实现动态页面
一、简易静态视图views文件里写:from django.http import HttpResponsedef hello(request): return HttpResponse("Hello world")主目录的urls文件里写from start.views import hel...
分类:移动开发   时间:2016-01-24 14:09:50    阅读次数:181
BackBone.js入门教程
废话不说,直入正题。Backbone.js是什么Backbone.js提供了一套web开发框架,通过Models进行key-value绑定及自定义事件处理,通过Collections提供一套丰富的API用于枚举功能,通过Views来进行事件处理及现有的Application通过RESTful JSO...
分类:Web程序   时间:2016-01-22 21:13:46    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!