了解 Eclipse 项目性质和 Web 开发工作流程
我需要用新的 html5 功能编写一些复杂的网页,大量使用 javascript。稍后我将使用它作为 Django 的模板。 有人建议我使用 Eclipse for JavaScript Web Developers,并创建一个“具有 Javascript 性质”的项目。好的,我可以在这个项目中完成整个客户端开发。 问题是:当涉及到服务器编码时,我应该创建 Django 项目并在那里复制模板文件,还是更改项目“nature”(或您如何称呼它)中的某些内容以使项目同时处理 javascript 和 Python 编辑功能?或者也许还有其他好的方法来组织工作?
I need to code some complicated web page with new html5 features, using javascript a lot. Later I will use this as a template for Django.
I was advised to use Eclipse for JavaScript Web Developers, and to create a project «with Javascript nature». Okay, I could do the entire client side development in this project.
The question is: when it comes to server coding, should I just create Django project and copy template files there, or rather change something in the project «nature» (or how you call it) to make project handle both javascript and Python editing features? Or probably, there are another good ways to organise the work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直使用 Eclipse 来进行前端和后端代码的 Django 开发。我通常使用 Aptana PyDev 插件创建具有“django 项目性质”的项目(通常在导入代码后,我会右键单击 django 项目目录,然后从菜单中选择“PyDev > 设置为 Django 项目”。)我不知道你的具体情况,但我从来没有需要显式设置任何东西来让 javascript 文件工作。通常,单击带有 .js 扩展名的文件将打开一个 javascript 编辑器,并提供 javascript 语法突出显示等。如果您安装了 PyDev 插件,也许您只需单击上面提到的“设置为 Django 项目”菜单项即可。我不确定我是否正确理解了您的问题,但 Eclipse 确实允许您在其界面中很好地编辑 javascript 和 Django 代码。希望有帮助,
乔
I use Eclipse all the time for Django development of both front-end and back-end code. I usually create the project with the "django project nature" using the Aptana PyDev plugin (typically after importing my code, I'll right click on the django project directory and choose from the menu "PyDev > Set as Django Project".) I don't know your specific situation, but I've never had to explicitly set anything to get javascript files to work. Typically clicking on a file with a .js extension will open a javascript editor and give me javascript syntax highlighting and such. If you have the PyDev plugin installed, perhaps you can just click the "Set as Django Project" menu item mentioned above. I'm not sure if I'm understanding your question properly, but Eclipse does allow you to edit your javascript and Django code fairly well within it's interface. Hope that helps,
Joe