简体   繁体   English

在创建Django模板之前,应将psd文件转换为html吗?

[英]Should psd files be converted to html before creating Django templates?

To convert from a good design (PSD files) to a good looking web site, it seems an effective approach is to use a PSD to HTML service. 要从一个好的设计(PSD文件)转换为一个美观的网站,似乎一种有效的方法是使用PSD到HTML服务。

For a Django site (which mine is), you typically need a bunch of templates to dynamically define many parts of the web pages. 对于Django站点(属于我的站点),通常需要一堆模板来动态定义网页的许多部分。

It seems to me that converting PSD to HTML is a different skill to coding up Django templates, which are closely linked to the rest of the Django application. 在我看来,将PSD转换为HTML是对Django模板进行编码的另一项技巧,这些模板与Django应用程序的其余部分紧密相关。 And while there may be developers who are very skilled in both skills, the number is probably small. 虽然可能有一些开发人员在两种技能上都非常熟练,但是人数可能很少。 But there are many quality PSD to HTML services, and a reasonable number of Django contract developers. 但是,HTML服务有许多高质量的PSD,并且有相当数量的Django合同开发人员。

My question: For best results, should I split the tasks, and get the PSD to HTML done first, and then pass the HTML files to the Django developer? 我的问题:为了获得最佳结果,我是否应该拆分任务,先将PSD转换为HTML,然后再将HTML文件传递给Django开发人员? Or is that likely to be a waste of time & money? 还是很可能浪费时间和金钱? Should I just pass the PSD files to the Django developer and hope he/she has the necessary HTML/CSS skills? 我是否应该将PSD文件传递给Django开发人员,并希望他/她具备必要的HTML / CSS技能?

(ps. Have looked thru Django & Django-templates + HTML. Question not found.) (ps。通过Django和Django模板+ HTML查找。未找到问题。)

Honestly - get someone to do it manually. 老实说-找人手动做。 Those automatic psd to html generators either works based on tables (create aLOT of code and alot of hard to read code) or based on divs, which means ALOT of absolutely positioned elements. 那些自动PSD为HTML基于表发电机要么作品(创建的代码和硬很多读取代码很多)或基于div的,这意味着绝对定位元素的ALOT。 Thats what my experience tells anyway. 无论如何,这就是我的经验。 Neither of those cases really produces quality, fluid, reusable code. 这些情况都没有真正产生高质量,流畅,可重用的代码。

You need someone who does not necessarily know django (cause backend framework is irrelevenat to psd to html/css skills), but rather someone who is (very) good with html(5) and css(3). 您需要一个不一定了解django的人(因为后端框架对psd的html / css技能不满意),而是一个对HTML(5)和CSS(3)很好的人。

Also - converting PSD to HTML/CSS is not a simple task, unless your PSD design features all necessary elements. 同样,将PSD转换为HTML / CSS并非易事,除非您的PSD设计具有所有必要的元素。 I mean all - like link in content area may be with one design, link in some other area usually has different design, do links in lists have different design compared to links in (other) content? 我的意思是所有的 - 在内容领域类似的链接可能是一个设计环节在其它一些地区通常有不同的设计,做的相比(其他)内容链接列表中的链接有不同的设计? Does your design feature all possible form elements design? 您的设计是否包含所有可能的表单元素设计? Does your psd feature all necessary/possible elements in most areas? 您的psd在大多数区域都具有所有必要/可能的元素吗? If yes, then converting your design to css/html is pretty easy task. 如果是,那么将您的设计转换为css / html是非常容易的任务。 If not, then you probably need to keep tab open and use your html wizards services any time you find out that design for element X is missing because your django form.as_ul or form.as_table prints out form in a way that your html guy did not think of. 如果不是这样,那么当您发现缺少元素X的设计时,您可能需要保持打开选项卡并使用html向导服务,因为django form.as_ul或form.as_table会以html家伙那样的方式打印出表单没想到。

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

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