V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  twor  ›  全部回复第 30 页 / 共 36 页
回复总数  708
1 ... 22  23  24  25  26  27  28  29  30  31 ... 36  
2018-05-29 13:45:42 +08:00
回复了 alvin666 创建的主题 硬件 千万别用手摸通电硬盘的 PCB 板...
笑出声
last=models.IntegerFields('剩余数量',default=-1)
if self.last == -1 :
----self.last = self.amount

写完,我自己也感觉不好意思
试试
2018-05-22 15:42:24 +08:00
回复了 Alexliu 创建的主题 云计算 奇葩的百度应用引擎 BAE
@yzkos 这个 共享虚拟主机普惠版 可以免费 1 年
@Felldeadbird 我之前搜的关键词不对,没找到,知道楼上的告诉我了

@PerFectTime 陈独秀,你坐下!
@cnnblike 搜半天 搜不到
2018-05-17 14:19:48 +08:00
回复了 marcosteam 创建的主题 Vim 新人的 Vim 之路在代码补全上夭折了...
对于我来说,vim 不是最好用的,但也不难用,ssh + vim 感觉可以 code anywhere by any computer, 很安心但感觉,效率低一点(也许并没有),也就无所谓了
2018-05-14 23:05:40 +08:00
回复了 lalal0410 创建的主题 Python Ubuntu pip 升级到 10.0.1 后的错误
@luzhongqiu 强迫症吧
我看到了升级提示,每次也都是 pip install pip --upgrade
2018-05-14 22:48:25 +08:00
回复了 xiaoshi657 创建的主题 Python 关于 Django+Nginx+uWSGI 部署问题
新手勉强回答一下

socket=外网 ip:端口(使用 nginx 连接时,使用 socket )

-- 也可以 http-socket 吧。 我配置都是用 socket file,感觉上效率更高

http=外网 ip:端口(直接做 web 服务器,使用 http )

-- 直接把 uWSGI 作为 http 服务器,不需要 nginx 了


参考

http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html?highlight=http
2018-05-05 14:50:44 +08:00
回复了 skiy 创建的主题 云计算 阿里云 APP 跟 PC 端 的 ECS 不太一样
我有买过一个 T5, 计费流量,5 年,850 元左右

一些开发都是直接 ssh 上去做的,跑一些半成品蛮好的
2018-04-27 11:50:31 +08:00
回复了 wvc 创建的主题 随想 唉,我竟遇到这么一个极品!
典型的的 交浅言深, 他的本意估计是故意跟你套近乎,但其实关系不到,搞砸了
2018-04-04 16:32:49 +08:00
回复了 ihuzhou 创建的主题 Python 折腾下 django2.0 发现静态文件获取有问题
settings 设置:

STATIC_ROOT = '/var/www/mypat/static'
STATIC_URL = '/static/'
2018-03-16 03:39:06 +08:00
回复了 a1058021348 创建的主题 天黑以后 20180316 午夜俱乐部
最无奈的是除了自己,没有可以发脾气的人
2018-03-12 00:10:41 +08:00
回复了 caomu 创建的主题 天黑以后 20180312 午夜俱乐部
我好想你,不知道怎么办
2018-02-23 11:37:05 +08:00
回复了 TXW 创建的主题 分享创造 AI 垂直领域的内容社区,初创项目,寻找第一批种子用户
2018-02-19 21:10:37 +08:00
回复了 yuzenan888 创建的主题 服务器 为什么 20 以内的端口基本上没人使用?
@yylbfyl 估计 lz 的意思就是‘耍赖皮’,依仗这些注册端口做坏事
2018-02-13 15:41:17 +08:00
回复了 PureWhite 创建的主题 Python Python3 是真的比 Python2 爽多了。。
@SingeeKing 可能没有 get 到你到问题,忽略吧
2018-02-13 15:39:13 +08:00
回复了 PureWhite 创建的主题 Python Python3 是真的比 Python2 爽多了。。
@SingeeKing
If a comment in the first or second line of the Python script matches the regular expression coding[=:]\s*([-\w.]+), this comment is processed as an encoding declaration; the first group of this expression names the encoding of the source code file. The encoding declaration must appear on a line of its own. If it is the second line, the first line must also be a comment-only line.

https://stackoverflow.com/questions/41680533/is-coding-utf-8-also-a-comment-in-python
2018-02-12 23:14:24 +08:00
回复了 woaicheny 创建的主题 Python django 2.0 + xadmin 出现这个 ,求帮组
我测试了一下,并没有出现错误,测试步骤

1. 新建一个 python3.6 环境
2. source env/bin/activate
3. pip install django //安装的是 Django-2.0.2
4. pip install git+git://github.com/sshwsfc/xadmin.git@django2 #看的 github 主页上 2.0 需要这样安装
5. django-admin startproject testpro
6. 修改 testpro/settings.py ,添加三行
···
'xadmin',
'crispy_forms',
'reversion',
···
7. 修改 testpro/urls.py ,如下
···
from django.contrib import admin
from django.urls import path
import xadmin

xadmin.autodiscover()

from xadmin.plugins import xversion
xversion.register_models()

urlpatterns = [
path('xadmin/', xadmin.site.urls),
]
···
8. ./manage.py migrate
9. ./manage.py createsupersuer
10. ./manage.py runserver

运行 ok
https://i.loli.net/2018/02/12/5a81aeacd47a2.png

参考网页:
https://github.com/sshwsfc/xadmin
http://xadmin.readthedocs.io/en/docs-chinese/quickstart.html#id1

我是新手,只能这样用笨办法帮你了 :)
2018-02-12 17:47:23 +08:00
回复了 tianxiacangshen 创建的主题 AdSense adsense 收入截图,终于是要走出去了
大佬,招远程不?求带
1 ... 22  23  24  25  26  27  28  29  30  31 ... 36  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2286 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 12:43 · PVG 20:43 · LAX 05:43 · JFK 08:43
Developed with CodeLauncher
♥ Do have faith in what you're doing.