Essentially, I have flatpages in my app, but I want to avoid creating the entire content within the flatpages table (the html is fairly long).
Further, I need to access other models within this content. However, because flatpages requires from django.contrib.flatpages import views
and the other views (those in views.py
) require from . import views
it appears that I can only use one or the other? Is there some way around this?
I'm fairly new to Django and can't seem to find an answer to this question, but essentially my flatpage default is a header/drawer and I want to create a content that has access to several models at once, but it would be nice to have the contents themselves in separate html files instead of in the flatpages table in the database. Is this possible?
Thanks!