Re: good doc and example on how to use bootstrap with DJango

2017-02-02 Thread Thames Khi
Thanks I will take a look. So much to learn too much fun. On Thursday, February 2, 2017 at 2:40:15 AM UTC, Melvyn Sopacua wrote: > > On Wednesday 01 February 2017 02:40:48 Thames Khi wrote: > > > > > I tried to use locally installed bootstrap. My render HTML function is > > > calling my page. Ho

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Melvyn Sopacua
On Wednesday 01 February 2017 02:40:48 Thames Khi wrote: > I tried to use locally installed bootstrap. My render HTML function is > calling my page. However using the relative path or even if add the > complete path, nothing works. Save some time down the road: https://github.com/dyve/django-boot

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Andreas Kuhne
Great to see that I could be of help :-) Regards, Andréas 2017-02-01 21:35 GMT+01:00 Thames Khi : > Thank you so much, you are a legend, sir! I can now continue my learning > and combine my python database code with django. > > I am very grateful, thank you for taking the time to explain this t

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Thames Khi
Thank you so much, you are a legend, sir! I can now continue my learning and combine my python database code with django. I am very grateful, thank you for taking the time to explain this to me. Kind Regards, TiKhi On Wednesday, February 1, 2017 at 8:11:52 PM UTC, Thames Khi wrote: > > Thanks

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Thames Khi
Thanks very much, I will give this a try now. On Wednesday, February 1, 2017 at 3:58:54 PM UTC, Andréas Kühne wrote: > > The setting you have to specify are: > > STATIC_URL and STATIC_ROOT. > > STATIC_URL is the url base for creating paths for the webserver to the > static files. Usually you jus

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Andreas Kuhne
The setting you have to specify are: STATIC_URL and STATIC_ROOT. STATIC_URL is the url base for creating paths for the webserver to the static files. Usually you just leave this at '/static/' - however you could also set this to a completely different domain (if for example you were serving stati

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Thames Khi
Thank you very much for your reply. I think I have missed something as the python is duplicating the files and sticking them into a path I specified. Here are my steps based on the document and what happens. 1) updated the urls.py in the project: from django.conf.urls.static import static url

Re: good doc and example on how to use bootstrap with DJango

2017-02-01 Thread Andreas Kuhne
Hi, You will have to follow the following information: https://docs.djangoproject.com/en/1.10/howto/static-files/ Make sure that the css files and js files are in the static directory. Then you can use {% static "css/bootstrap.min.css" %} for the filepath to the static files. The static files sho