-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: TEMPLATES_DIR cannot be changed #659
Comments
Changing that dir used to be supported but is no longer officially supported since we moved to django. Instead for now I recommend applying a patch to the files inside |
Thank you for the explanation! It might be worth updating the wiki page to reflect this. We will probably use the frame contents only and provide our own header to integrate with the rest of the website. Sadly, I am not proficient enough in Django to be of any help. :-/ |
Reopening this because we do want to fix this at some point. Here are the steps to fix it for anyone interested in working on this:
|
Ok I've added this option back in v0.6 e4823cc. It's now called git clone https://github.com/ArchiveBox/ArchiveBox /tmp/ArchiveBox
cp -r /tmp/ArchiveBox/archivebox/templates ~/archivebox/custom_templates
# make whatever changes you want to the default templates
nano custom_templates/static/admin.css
nano custom_templates/admin/base.html
... etc.
cd ~/archivebox/
archivebox config --set CUSTOM_TEMPLATES_DIR=custom_templates # location is relative to data dir root by default, you can also pass an absolute path
archivebox server
# served pages should now contain your custom overrides You can use v0.6 early by installing from the pip install "git+https://github.com/ArchiveBox/ArchiveBox.git@dev" Or you can wait till it's officially released soon. Feel free to comment back here if you have any trouble and I'll reopen the issue. |
Describe the bug
According to the Configuration wiki page, I should be able to change
TEMPLATES_DIR
to customize the layout. However, I cannot seem to change it.Editing
ArchiveBox.conf
manually does nothing:archivebox config --get TEMPLATES_DIR
andarchivebox version
still report the default path, which in my case (Arch Linux) is/usr/lib/python3.9/site-packages/archivebox/templates
.Trying to set it via
archivebox config --set TEMPLATES_DIR=test
produces the error:This could happen because
TEMPLATES_DIR
is not defined in CONFIG_SCHEMA (but don't take my word for it).Thanks for your time and thanks for ArchiveBox!
ArchiveBox version
The text was updated successfully, but these errors were encountered: