V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  imkh  ›  全部回复第 2 页 / 共 6 页
回复总数  104
1  2  3  4  5  6  
2016-05-16 11:01:15 +08:00
回复了 liyvhg 创建的主题 深圳 今天深圳地铁 1 号线怎么了?
@CRH 8:15 分才恢复
2016-04-21 01:29:07 +08:00
回复了 Anybfans 创建的主题 Django 请教个 django 的跳转问题。
@Anybfans 你好,请问下,假如用 django ajax 验证用户名和密码都正确后,如何进行登陆操作,跳转到指定页面?
2016-04-20 23:08:36 +08:00
回复了 imkh 创建的主题 Python Django ajax 无法提交数据
@LeoQ 现在是这段代码没生效,不知道为什么
```
$("#signin").click(function(){
$.post('{% url 'user_login' %}',{"username":$("#username").val(),"password":$("#password").val()},function(data){
$("#result").html(data);
});
});
```

```
<form class="form-signin">
<input type="text" id="username" class="form-control" placeholder="Username" name="username" required autofocus>
<input type="password" id="password" class="form-control" placeholder="Password" name="password" required>
<p class="text-error" id="result"></p>
<button class="btn btn-lg btn-primary btn-block" type="button" id="signin">Sign in</button>
</form>
```
2016-04-20 22:34:25 +08:00
回复了 imkh 创建的主题 Python Django ajax 无法提交数据
@jugelizi 看不到请求。。。
2016-04-20 22:34:11 +08:00
回复了 imkh 创建的主题 Python Django ajax 无法提交数据
@LeoQ 已经加了处理代码。
2016-04-18 19:58:28 +08:00
回复了 vJianZhen 创建的主题 Python 被编码问题搞炸了!
笑了,一群说用 Python 3 的都眼瞎了吧?也不看楼主的补充说明
2016-04-16 21:52:21 +08:00
回复了 ytpfxnj 创建的主题 求职 [苏州附近-求职]普通 211 退学生,找个运维方面的工作好难
开眼啊,才知道社会上有你这种人。
2016-04-15 12:03:13 +08:00
回复了 imkh 创建的主题 Django Django 如何修改和删除 Web 的表格中的某条记录?
@hehuozhao 谢谢
@ericFork 是的
原来放在 app (不是 project )下使用 STATIC_ROOT = os.path.join(BASE_DIR, 'static'),才不会部分 css 、 js 文件出现 404 错误
```
blogapp/
├── admin.py
├── form.py
├── __init__.py
├── migrations
│   ├── 0001_initial.py
│   ├── 0002_auto_20160411_1721.py
│   ├── __init__.py
├── models.py
├── static
│   ├── bootstrap
│   │   ├── css
│   │   │   ├── bootstrap.css
│   │   │   ├── bootstrap.css.map
│   │   │   ├── bootstrap.min.css
│   │   │   ├── bootstrap.min.css.map
│   │   │   ├── bootstrap-theme.css
│   │   │   ├── bootstrap-theme.css.map
│   │   │   ├── bootstrap-theme.min.css
│   │   │   ├── bootstrap-theme.min.css.map
│   │   │   ├── todc-bootstrap.css
│   │   │   ├── todc-bootstrap.css.map
│   │   │   ├── todc-bootstrap.min.css
│   │   │   └── todc-bootstrap.min.css.map
│   │   ├── fonts
│   │   │   ├── glyphicons-halflings-regular.eot
│   │   │   ├── glyphicons-halflings-regular.svg
│   │   │   ├── glyphicons-halflings-regular.ttf
│   │   │   ├── glyphicons-halflings-regular.woff
│   │   │   └── glyphicons-halflings-regular.woff2
│   │   ├── img
│   │   │   └── checkmark.png
│   │   └── js
│   │   ├── bootstrap.js
│   │   ├── bootstrap.min.js
│   │   └── npm.js
│   ├── css
│   │   └── dashboard.css
│   └── jquery
│   └── jquery-2.2.3.min.js
├── templates
│   └── blogapp
│   └── index.html
├── tests.py
├── views.py

```

放在 project 下的某个自定义项目(比如 project/static)的话,要使用
```
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)
```
@shenxgan 有没有相关的原理解释文档参考啊?
@shenxgan 这样可以了 谢谢
@lonelinsky 不行哦
@cc7756789 不是
2016-04-05 22:29:15 +08:00
回复了 imkh 创建的主题 Linux shell 脚本一个神奇的字符比较问题
status=$'A\r' 多了个回车符
2016-04-05 22:29:02 +08:00
回复了 imkh 创建的主题 Linux shell 脚本一个神奇的字符比较问题
@curiouslfq 谢谢
2016-04-05 22:28:49 +08:00
回复了 imkh 创建的主题 Linux shell 脚本一个神奇的字符比较问题
@BOYPT 谢谢
2016-03-10 12:14:45 +08:00
回复了 lkjg12313 创建的主题 求职 找一份深圳计算机方面的工作
看你喜欢了计算机这么久,也没见你掌握什么技能。这其实无关学历,只关个人。
2016-02-25 14:22:34 +08:00
回复了 imkh 创建的主题 程序员 有道云笔记这个限制真恶心
@jsonline 你技术最好
2016-02-25 14:01:35 +08:00
回复了 imkh 创建的主题 程序员 有道云笔记这个限制真恶心
@milklee 应该是这样
1  2  3  4  5  6  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3381 人在线   最高记录 6547   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 12:27 · PVG 20:27 · LAX 05:27 · JFK 08:27
Developed with CodeLauncher
♥ Do have faith in what you're doing.