使用Zurb Foundation和django-cms

时间:2022-10-22 09:15:19

I am a newbie web developer, I've installed django-cms and now I'm trying to figure out how to use zurb foundation with it to create frontend that I like. Can you help me with understanding main steps I need to take to do this?

我是一个新手网络开发人员,我已经安装了django-cms,现在我正在试图弄清楚如何使用zurb基础来创建我喜欢的前端。你能帮我理解我需要采取的主要步骤吗?

P.S. I understand that maybe it is a simple question, but I can't find any tutorials about it. If you will help me - I promise to write extensive article about it so that other people wouldn't have problems with that =)

附:我知道也许这是一个简单的问题,但我找不到任何关于它的教程。如果你能帮助我 - 我保证会写一篇关于它的大量文章,以便其他人不会有这个问题=)

2 个解决方案

#1


1  

Step one: Place foundation in the static directory

第一步:将基础置于静态目录中

Step two: import the CSS like you normally would, using the STATIC_URL https://docs.djangoproject.com/en/dev/howto/static-files/

第二步:使用STATIC_URL https://docs.djangoproject.com/en/dev/howto/static-files/,像往常一样导入CSS

Step three: profit

第三步:获利

I am not familiar with django-cms, but if you can locate the base template file the cms is using, it should be as simple as importing foundation using link rel= in that base template, then all your other templates will extend that base and have access to foundation CSS classes.

我不熟悉django-cms,但是如果你能找到cms正在使用的基本模板文件,它应该像在基础模板中使用link rel =导入基础一样简单,那么所有其他模板都将扩展该基础和可以访问基础CSS类。

#2


0  

I could be wrong, but it seems like @Wade Willams answer will only expose the Foundation CSS framework for use. Foundation, however, offers a bit more functionality as a framework than simply a responsively constructed CSS file.

我可能是错的,但似乎@Wade Willams的回答只会暴露基础CSS框架以供使用。然而,Foundation只是提供了一个框架功能,而不仅仅是一个响应式构建的CSS文件。

From this related question I found django-zurb-foundation which looks promising.

从这个相关问题我发现django-zurb-foundation看起来很有希望。

#1


1  

Step one: Place foundation in the static directory

第一步:将基础置于静态目录中

Step two: import the CSS like you normally would, using the STATIC_URL https://docs.djangoproject.com/en/dev/howto/static-files/

第二步:使用STATIC_URL https://docs.djangoproject.com/en/dev/howto/static-files/,像往常一样导入CSS

Step three: profit

第三步:获利

I am not familiar with django-cms, but if you can locate the base template file the cms is using, it should be as simple as importing foundation using link rel= in that base template, then all your other templates will extend that base and have access to foundation CSS classes.

我不熟悉django-cms,但是如果你能找到cms正在使用的基本模板文件,它应该像在基础模板中使用link rel =导入基础一样简单,那么所有其他模板都将扩展该基础和可以访问基础CSS类。

#2


0  

I could be wrong, but it seems like @Wade Willams answer will only expose the Foundation CSS framework for use. Foundation, however, offers a bit more functionality as a framework than simply a responsively constructed CSS file.

我可能是错的,但似乎@Wade Willams的回答只会暴露基础CSS框架以供使用。然而,Foundation只是提供了一个框架功能,而不仅仅是一个响应式构建的CSS文件。

From this related question I found django-zurb-foundation which looks promising.

从这个相关问题我发现django-zurb-foundation看起来很有希望。