Comments (6)
建议尝试使用nginx( for windows)发布,静态文件、页面、接口需在同一端口下发布,或许可以尝试使用代理方式实现(可能会非常麻烦,不建议尝试)
from stockvisualization.
其实比较麻烦在windows系统下,uwsgi安装不了
from stockvisualization.
没有在windows上尝试过,不过runserver也可以配合nginx运行,本地调试可以达到一样的效果。再不济可以使用wsl搭建完整的环境进行部署。
from stockvisualization.
server {
listen 80;
server_name 当前域名;
location /templates {
root /项目目录/StockVisualization/;
index index.html;
}
location /static {
alias /项目目录/StockVisualization/static/;
}
location / {
proxy_pass http://127.0.0.1:8000;
}
}
nginx用这个配置,把静态资源映用nginx跑起来,代理下接口就可以启动了,大佬,现在除了首页,其他的页面都还有问题,我看页面文件是有的,是里面的逻辑还没写完吗
from stockvisualization.
是的,有时间可能会把坑填上
from stockvisualization.
linux docker版本有么?
from stockvisualization.
Related Issues (10)
- 有个错误,请问怎么回事 HOT 2
- python3 manage.py collectstatic出错 HOT 1
- 能做成前后端分离的吗? HOT 3
- Unknown command: 'refresh_data' HOT 3
- python manage.py refresh_data doesn't work HOT 1
- 大佬求助!项目启动后为什么404呀? HOT 4
- NaN了... HOT 1
- 大佬有个问题解决不了 可以联系一下嘛 有偿 HOT 1
- 哥,你的token都在代码里了,这么无私吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stockvisualization.