博客
关于我
tornado企业级开发项目搭建
阅读量:127 次
发布时间:2019-02-26

本文共 1349 字,大约阅读时间需要 4 分钟。

?? PyCharm ????? Django ??

???? PyCharm ????? Django ??

? PyCharm ??????? Django ???????????? PyCharm ????????? File > New Project??? Python > Django ??????????????????????PyCharm ??????????????????

????????????????????

?????????????????????????? requirements.txt ????????????????????

pip freeze > requirements.txt

???????????????????????????????????????????

???? PyCharm ??????

?? PyCharm ? File > Sync ??????????????????????????????? SSH ??????????????????????

?????????

?????????????????????????

pip install -r requirements.txt

?????????? python manage.py migrate ????????

?????????????

??????????????????????????

.??? project/?   ??? __init__.py?   ??? settings.py?   ??? urls.py?   ??? wsgi.py?   ??? __version__.py??? app/?   ??? __init__.py?   ??? models/?   ?   ??? __init__.py?   ?   ??? fields.py?   ??? views.py?   ??? urls.py??? static/?   ??? main.css??? public/    ??? index.html

????????????????????????????????

?????????????

????????????????? Django ? view ? template ?????

from django.shortcuts import renderdef login(request):    if request.method == 'POST':        username = request.POST['username']        password = request.POST['password']        if username == 'admin' and password == 'admin':            return render(request, 'success.html')    return render(request, 'login.html')

????

????????????????????????????????????

转载地址:http://jtvf.baihongyu.com/

你可能感兴趣的文章
Netty工作笔记0060---Tcp长连接和短连接_Http长连接和短连接_UDP长连接和短连接
查看>>
Netty工作笔记0077---handler链调用机制实例4
查看>>
Netty工作笔记0084---通过自定义协议解决粘包拆包问题2
查看>>
Netty常见组件二
查看>>
netty底层源码探究:启动流程;EventLoop中的selector、线程、任务队列;监听处理accept、read事件流程;
查看>>
Netty核心模块组件
查看>>
Netty框架的服务端开发中创建EventLoopGroup对象时线程数量源码解析
查看>>
Netty源码—2.Reactor线程模型一
查看>>
Netty源码—4.客户端接入流程一
查看>>
Netty源码—4.客户端接入流程二
查看>>
Netty源码—5.Pipeline和Handler一
查看>>
Netty源码—6.ByteBuf原理二
查看>>
Netty源码—7.ByteBuf原理三
查看>>
Netty源码—7.ByteBuf原理四
查看>>
Netty源码—8.编解码原理二
查看>>
Netty源码解读
查看>>
Netty的Socket编程详解-搭建服务端与客户端并进行数据传输
查看>>
Netty相关
查看>>
Network Dissection:Quantifying Interpretability of Deep Visual Representations(深层视觉表征的量化解释)
查看>>
Network Sniffer and Connection Analyzer
查看>>