Comments (6)
@royzhao1978 我只是演示了如何结合,并没有什么项目呀
from django-with-vuejs.
Where is you 'dist' folder?
from django-with-vuejs.
@Xmas118 just run npm run build
in frontend directory
from django-with-vuejs.
TEMPLATES.DIRS 's value is dist path So must execute 'run build' every time to see the results?
from django-with-vuejs.
@Xmas118 you can execute run dev
to see the results,if you want exchange data with django, you can use the full path like http://127.0.0.1:8000/query
just like this below:
if (process.env.NODE_ENV === 'production') {
base = '';
} else {
base = 'http://localhost:8000';
}
from django-with-vuejs.
i'll try. thx
from django-with-vuejs.
Related Issues (17)
- 按照教程设置了,但是提示找不到静态文件怎么办。 HOT 1
- 有没有更加复一点的项目代码? HOT 2
- how to handle django login page from vuejs ? HOT 2
- 請教下下目錄問題 HOT 2
- 啥反应也没有.. 浏览器也没报错 HOT 3
- backend HOT 1
- python: can't open file 'manage': [Errno 2] No such file or directory HOT 3
- 代码和知乎专栏里的代码不一样,以哪个为准? HOT 3
- where is the vuejs part
- 跨域问题 HOT 1
- django的model如何应用? HOT 1
- 设置 STATICFILED_DIRS 仍然找不到静态文件 HOT 1
- npm run build 出错 HOT 1
- 请问用这种方式搭建的环境如何创建上传文件表单与django交互。 HOT 5
- <div id="app">不会自动注入 HOT 2
- Cannot find module 'D:\code\vue\django-with-vuejs\my_project\frontend\build\build.js' 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 django-with-vuejs.