Tuesday, February 23, 2016

Re: django css: general query on CDNs and crispy forms

On Feb 23, 2016, at 5:27 PM, clarksonchris81@gmail.com wrote:

  1. Should i download bootstrap properly or do the CDNs suffice?
Your call; but if you want to have a plan B, here's an example:  http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx

It's about jQuery, but the same principal would apply for bootstrap.

  1. Where do I store the bootstrap code and how will it affect my own CSS code?
You put it the same place you'd have your other js/css files. Loading order matters. I usually load libraries first and then my files.

  1. How do register the module crispy_forms? and where do I store the crispy forms folder there is little documentation on this?
Crispy Forms has documentation. http://django-crispy-forms.readthedocs.org/en/latest/

No comments:

Post a Comment