Sunday, March 7, 2021

Re: can we integrate html views that look far better then what is available with django

Hey Sridhar,

Since you mentioned you're a "starter", I'm also going to assume you're
generally new to web programming. I had similar questions back when I
started. Django is really good at generating HTML but it's very
un-opinionated about what kind of HTML it generates. You have total
control over what kind of HTML is generates. For example:

* HTML is usually styled using CSS. You can include any kind of CSS
you want!
* HTML can include images using the <image> tag or background images
using CSS. You get to decide how many images you use and how to
display them.
* HTML can include links to and snippets of JavaScript that get run
by the browser. You decide if you want to include JavaScript and
what that JavaScript should do.

Whew! That's a lot of flexibility but also a lot of decisions for you
to make. Luckily there are some opinionated HTML/CSS frameworks that make
some or all of those decisions for you. Examples include:

* https://getbootstrap.com/
* https://get.foundation/

...or even more opinionated (sometimes these are called "themes"):

* https://coreui.io (for dashboards)
* (I did a quick web search for a "stackoverflow Q&A theme but couldn't find one)

You can use any of these as your base template[1] in Django. Hope this
helps!

- Ryan

[1] https://docs.djangoproject.com/en/3.1/ref/templates/language/#template-inheritance


On Sat, Mar 06, 2021 at 12:55:25PM +0530, sridhar vumma wrote:
> Does using bootstrap improve the view of each page,
> Thanks & Regards,
> Sridhar.V
> +91-9591729335
>
>
> On Fri, Feb 19, 2021 at 12:21 PM sridhar vumma <sridhar6358@gmail.com>
> wrote:
>
> > The look and feel with typical example flows possible for html were not
> > looking similar to websites like stackoverflow.com so i had a doubt if
> > they all look very image free. I am a starter with Django.
> >
> > Thanks & Regards,
> > Sridhar.V
> > +91-9591729335
> >
> >
> > On Thu, Feb 18, 2021 at 8:07 PM Andréas Kühne <andreas.kuhne@hypercode.se>
> > wrote:
> >
> >> Hi,
> >>
> >> This is a very strange question? You can create anything you want with
> >> Django. For example Instagram and Youtube are built with Django. The
> >> framework allows for any design that you really want yourself - you just
> >> need to design the HTML the way you want - I have personally used Django
> >> for many different projects and they all look different. There is no
> >> default layout for Django - so I think I don't really understand your
> >> question :)
> >>
> >> Regards,
> >>
> >> Andréas
> >>
> >>
> >> Den tors 18 feb. 2021 kl 14:43 skrev sridhar vumma <sridhar6358@gmail.com
> >> >:
> >>
> >>> we see better html views with websites like stackoverflow.com can we
> >>> integrate such high end html websites along with django is that possible
> >>>
> >>> --
> >>> 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 view this discussion on the web visit
> >>> https://groups.google.com/d/msgid/django-users/e771045b-907f-479a-80c0-dd5f0079593cn%40googlegroups.com
> >>> <https://groups.google.com/d/msgid/django-users/e771045b-907f-479a-80c0-dd5f0079593cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> >>> .
> >>>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "Django users" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/django-users/lRQXOzu-qps/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to
> >> django-users+unsubscribe@googlegroups.com.
> >> To view this discussion on the web visit
> >> https://groups.google.com/d/msgid/django-users/CAK4qSCekgAb3CAW4sKF3r8wcujUOmtA9xtnMSqY%2B%3DLZzT9Gw%3DA%40mail.gmail.com
> >> <https://groups.google.com/d/msgid/django-users/CAK4qSCekgAb3CAW4sKF3r8wcujUOmtA9xtnMSqY%2B%3DLZzT9Gw%3DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> >> .
> >>
> >
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANoZYUoZN-Y-xH2_J6NWe3yB2XgOzROhOqYFgNL%2B3G_eZZvkVg%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20210307195810.GH15054%40fattuba.com.

1 comment:

  1. Yes, you can integrate HTML views that are far better than what is available with Django by utilizing front-end frameworks like Bootstrap, Tailwind CSS, or custom CSS styling.

    ReplyDelete