Hi again, You can create separate base files, but you will have to save each under different names. For example if you had an app called website, you could have a website_base.html that has {% extends "base.html" %} in it.
As to how to link them together? What do you mean? Each app should contain a separate piece of your website. For example if you are creating a webbshop, you could put the products in one app, the checkout in another. Then all you need to do is include your views from each app in a urls.py file, and then the views will be exposed to your website. Regards, Andréas 2014-07-16 13:33 GMT+02:00 ngangsia akumbo <ngang...@gmail.com>: > ok can i create a seperate base.html in other app and link that app to the > main base.html file. > > because after creating all these html files which links back to the main > base.html, how would i link them? > > Thanks > > On Wednesday, July 16, 2014 10:11:45 AM UTC+1, Andréas Kühne wrote: >> >> Hi, >> >> All of your templates are available in all of your apps. So you can use a >> template from one app in another app (our website is created this way). In >> other words you can continue to use the same base.html for the second app >> as well. >> >> Regards, >> >> Andréas >> >> 2014-07-16 9:47 GMT+02:00 ngangsia akumbo <ngan...@gmail.com>: >> >>> Good Morning Django Users >>> I have a question. >>> >>> I am building a website for django and this site will consist of >>> separate apps. >>> >>> I have created the first app already with a base.html file. >>> OK, when i am creating the second app will it inherit from the base.html >>> template >>> or i will have to create a separate base.html for that app? >>> >>> -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0cc6a10b-2763-4a53-a5bc-6a7c230c719f%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0cc6a10b-2763-4a53-a5bc-6a7c230c719f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbmaOf%2Ba4txNMDz%3DL_tO1u2wodusPVZBvRq3cNBcN0T%3DyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.