Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Custom templates? #74

Closed
corpulent opened this issue Aug 15, 2014 · 3 comments
Closed

Custom templates? #74

corpulent opened this issue Aug 15, 2014 · 3 comments

Comments

@corpulent
Copy link

Hi, is there a way to override aldryn_blog templates and create your own custom templates for aldryn_blog to use? I found this https://groups.google.com/forum/#!topic/django-cms/SpXEcrjbhMA. But its not working for me. I am loading templates this way.

TEMPLATE_LOADERS = (
    'django.template.loaders.eggs.Loader',
    'django.template.loaders.app_directories.Loader',
    'django.template.loaders.filesystem.Loader',
)

And this is my template tree, I am trying to match the template of aldryn_blog app.
screen shot 2014-08-15 at 11 08 41 am

@corpulent
Copy link
Author

Update, I got it working by removing 'django.template.loaders.eggs.Loader', from my TEMPLATE_LOADERS. Is this the right move? My thinking is that if django.template.loaders.app_directories.Loader exists, it should be enough to load default aldryn_blog stuff even if I dont have custom aldryn_blog tempaltes.

@rgcarrasqueira
Copy link

Hi! I'm having the same issue as you, but I would like to change the base.html. When I copy it and add to the templates/aldryn_blog/base.html I cannot retrieve any data from database and the page appear without any post. Any ideas?

@corpulent
Copy link
Author

@rgcarrasqueira the data retrieval might be a different issue. Try to load data with default aldryn_blog setup and templates, and make sure that works. Then try to load your own templates, by using my suggestion above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants