Does django work with bootstrap 4

31 views
Skip to first unread message

Gordon Neal

unread,
Nov 27, 2017, 6:04:48 PM11/27/17
to Django users
Looking to start a web design projects and as a python programmer I would like to use django but it seems difficult. I am planning on using bs v 4 with Sass. This is a new project. Any solution so I don't have to learn the whole ruby stuf

Andréas Kühne

unread,
Nov 27, 2017, 6:53:05 PM11/27/17
to django...@googlegroups.com
Hi,

You don't have to learn any ruby to use sass. I prefer sass when I create my css files. You do however need to know howto compile scss files into css. You should be able to find howtos on google. You could also try: https://github.com/jrief/django-sass-processor, then you don't even have to learn howto compile them. However you need to understand the format of the files and also install the dependencies to compile the scss files.

Regarding using bootstrap 4, a quick google got me the following package: https://github.com/zostera/django-bootstrap4, I haven't tried it myself though. I have used the bootstrap 3 plugins and they are great because you can easily get your forms correctly styled.

If you find using django itself difficult, I would recommend that you do one (or several) of the online tutorials that are available:

The main thing to learn is how the different components in django are connected.

Good luck!

Regards,

Andréas

2017-11-27 23:11 GMT+01:00 Gordon Neal <gnea...@gmail.com>:
Looking to start a web design projects and as a python programmer I would like to use django but it seems difficult. I am planning on using bs v 4 with Sass. This is a new project. Any solution so I don't have to learn the whole ruby stuf

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f71c4a1a-8cad-4927-b826-15aebc9bf58c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jani Tiainen

unread,
Nov 28, 2017, 4:42:23 AM11/28/17
to django...@googlegroups.com
Hi.

What comes to Django, it doesn't care about bootstrap. IOW, whatever you
put in your client side (browser) is up to you. You just put correct
stuff in static files and templates so Django can create proper HTML
output and serve/collect static files (static css, images, fonts etc)
while development/deployment.

Django iself doesn't need any special support for that, it already has
all the bells and whistles built-in to do that.

If you want to introduce some kind of asset handling pipeline (css
compilation, js minimification) there are few 3rd party apps there than
can do it for you. Never used any though.

On 28.11.2017 0.11, Gordon Neal wrote:
> Looking to start a web design projects and as a python programmer I would like to use django but it seems difficult. I am planning on using bs v 4 with Sass. This is a new project. Any solution so I don't have to learn the whole ruby stuf
>

--
Jani Tiainen

Reply all
Reply to author
Forward
0 new messages