如何使Web应用程序看起来像桌面应用程序?(How to make web applications look exactly like desktop applications? [closed])
我想知道是否有一个确定的解决方案,用于构建看起来像桌面应用程序的Web应用程序,以及用于Windows的公司用户。 我认为GUI桌面视角。
任何人都可以帮助我吗? 我用PHP。
我在开发一个适用于银行的应用程序的小组,它必须看起来与应用程序完全相同,因此出于安全原因,用户甚至不会注意到它是基于Web的应用程序(由银行持有人通知)。
我们曾尝试使用Java Applet,但由于应用程序非常庞大,因此加载时间过长。
I was wondering if there is a definitive solution for building web applications that looks like desktop applications, for corporative users that are used to windows. I MEAN THE GUI DESKTOP PERSPECTIVE.
Can anyone help me with that? I use PHP.
I am in a group developing an application that will work for a bank, and that must look exactly like an application so the users do not even notice it is a web based one for security reasons (informed by the bank holder).
We have tried to use Java Applet, but it took just too much time to load, as the application is very big.
原文:https://stackoverflow.com/questions/19383517
最满意答案
不是直接的解决方案,但经过一些研究和与django-pipeline的制造商聊天后,似乎Yui-Compressor无论如何被弃用并被Yuglify取代。
因此最好保留django settings.py,只需安装Yuglify即可。
sudo apt-get install npm (switch your virtualenv's environment) npm install yuglify
settings.py只需要更改一行:
PIPELINE_YUI_BINARY = '/vc/{your-project-env}/site/{your-project}/node_modules/yuglify/bin/yuglify'
多数民众赞成,它的确有效。
更新:
在最新的
django-pipeline
你不能再将YUI二进制文件设置为Yuglify。 您已明确声明yuglify二进制文件。 但是否则没有变化:PIPELINE_YUGLIFY_BINARY = "/vc/{yourproject-env}/node_modules/yuglify/bin/yuglify"
Not a direct solution but after some research and chat with the maker of django-pipeline it seems that Yui-Compressor is deprecated anyway and replaced by Yuglify.
Hence its best to keep the django settings.py as it is and simply install Yuglify instead.
sudo apt-get install npm (switch your virtualenv's environment) npm install yuglify
The settings.py needs to change only one line:
PIPELINE_YUI_BINARY = '/vc/{your-project-env}/site/{your-project}/node_modules/yuglify/bin/yuglify'
Thats it and it works.
UPDATE:
In the latest
django-pipeline
You can't set the YUI binary to Yuglify anymore. You have explicitely declare the yuglify binary. But otherwise nothing changes:PIPELINE_YUGLIFY_BINARY = "/vc/{yourproject-env}/node_modules/yuglify/bin/yuglify"
相关问答
更多-
如果我正确理解你的问题,你担心的是在运行collectstatic ,你的STATIC_ROOT目录中有foo.2d32ed.js , foo.4bhf45.js , foo.09d9fg.js STATIC_ROOT文件。 如果是这样,那么这不是PyReact或django-pipeline的问题; 这是因为您正在使用缓存存储后端(即您的STATICFILES_STORAGE设置)。 附加到文件名的字符串是文件内容的散列,有效地类似于静态文件的版本。 原因是浏览器上的缓存破坏。 使用文件名作为文件内容的功 ...
-
您正在从django(通过django-pipeline)但从Web服务器提供静态文件。 然后.htaccess指令没有效果。 You are serving static files from django (through django-pipeline) but from web server. Then .htaccess directives have no effect.
-
你是否设置了静态文件: STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' 如是 : 你的js文件最终是空的吗? '/Applications/yuicompressor-2.4.7/build/yuicompress'是一个可执行脚本吗? Did you setup staticfiles with : STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' ...
-
该错误并不完全与Pipeline相关,而是PipelineCachedStorage扩展的Django的CachedStaticFilesStorage 。 缓存的存储将在您的css文件中查找文件引用,并将url('asset-link')和@ @import 'resource-link'替换为附加了md5散列的版本的适当链接。 这会将url('img/glyphicons-halflings.png')转换为url('img/glyphicons-halflings.
.png') 。 因此, ... -
不是直接的解决方案,但经过一些研究和与django-pipeline的制造商聊天后,似乎Yui-Compressor无论如何被弃用并被Yuglify取代。 因此最好保留django settings.py,只需安装Yuglify即可。 sudo apt-get install npm (switch your virtualenv's environment) npm install yuglify settings.py只需要更改一行: PIPELINE_YUI_BINARY = '/vc/{your- ...
-
对于每个人来说,与同样的问题作斗争。 只需删除'PIPELINE_ENABLED': True,远离django-pipeline配置。 在此之后,django-pipeline将在dev模式下为每个请求重新编译静态。 在部署之前,只需运行collectstatic并设置DEBUG=False ,就像在文档中提到的那样。 在此管道将停止为每个请求重新编译文件之后,在模板中加载缩小的资产,您将能够使用任何第三方代理服务器(如NGINX)从STATIC_ROOT提供静态。 For everyone, fight ...
-
Django虚拟环境(Django virtual environment)[2022-09-10]
目录的位置并不重要 - 唯一重要的是每次要处理项目时都要激活虚拟环境。 我个人更喜欢将项目目录放在虚拟env目录中,但这不是必需的。 一个警告:不要将虚拟环境放在项目目录中。 这可能会导致测试发现和git出现问题。 It doesn't matter where the directory is - the only important thing is that you activate the virtual environment every time you want to work on the ... -
Django流水线无效的语法(Django-pipeline invalid syntax)[2021-08-23]
显然,这个错误是在pip3中安装期货回报的结果。 只需卸载pip3中的期货套餐即可。 Apparently, the error is the result of installing futures backport in pip3. Simply uninstall futures packages in your pip3. -
Django-pipeline无法访问文件。(Django-pipeline is not been able to access a file. Access Denied Error)[2022-03-01]
去掉 STATIC_PATH + 来自source_filenames和output_filename 我怀疑你添加的原因是由于./manage.py collectstatic没有在你的js/app目录中产生输出(这就是导致我混淆的原因)。 要在settings.py设置中修复此问题 PIPELINE_ENABLED = True # pipeline > 1.3 #PIPELINE = True # pipeline < 1.3 STATIC_ROOT = os.path.join(BASE_DI ... -
将settings.DEBUG为False以使用压缩文件。 或者将settings.PIPELINE_ENABLED为True 。 根据Usage - django-pipeline ,检查的设置只是PIPELINE ,但在查看版本1.3.15的源代码后,您会发现该设置实际上是PIPELINE_ENABLED : templatetags将输出源文件名或压缩文件名,具体取决于PIPELINE设置,如果未指定PIPELINE设置, 源文件将在DEBUG模式下使用 ,压缩文件将在非DEBUG模式下使用。 Set ...