简体   繁体   English

我可以使用django在Windows上使用相同的os.path访问PC上的文件夹吗?

[英]can i use django to access folders on my pc using same os.path for windows?

I have a python algorithm that access a huge database in my laptop. 我有一个python算法,可以访问笔记本电脑中的大型数据库。 I want to create a web server to work with it. 我想创建一个Web服务器来使用它。 can I use django with the folder paths I have used ? 可以将django与已使用的文件夹路径一起使用吗? like how do I communicate with it ? 喜欢如何与之交流? I want to get an image from web application and get it sent to my laptop and run algorithm on it then send result back to the webserver. 我想从Web应用程序中获取图像,并将其发送到我的笔记本电脑并在其上运行算法,然后将结果发送回Web服务器。 would that still be possible without me changing my algorithm paths? 如果不更改我的算法路径,这仍然可能吗? like I use os.path to access my database folder, would I still be able to do what with django or shall I learn something else? 就像我使用os.path来访问数据库文件夹一样,我是否仍然可以使用django进行操作,还是应该学习其他内容? I wanted to try django as it runs in python and I can learn it easy. 我想尝试django,因为它在python中运行,我可以轻松地学习它。

I have found out that django works fine with os.path and no problems. 我发现django在os.path上工作正常,没有问题。 actually if you are programming with python then django is a great choice for server work. 实际上,如果您使用python进行编程,那么django是服务器工作的绝佳选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM