Open chrisfranklin opened 11 years ago
I have noticed I need to set these two settings to avoid an error when uploading a theme:
DEFAULT_TEMPLATE_DIRS = TEMPLATE_DIRS
DEFAULT_STATICFILES_DIRS = STATICFILES_DIRS
I have also noticed I need to delete the .git folder before uploading the theme tarball or I get a permissions error.
This line is causing a problem: https://github.com/MegaMark16/django-cms-themes/blob/master/cms_themes/__init__.py#L62
It generates this error:
An error occured setting up the themes: No module named conf.patch
Validating models...
0 errors found
Django version 1.4.5, using settings 'tart.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Possibly related to this:
It might need to be blank or
from cms import constants
now instead.
Adding:
STATICFILES_DIRS = (
("themes", os.path.join(PROJECT_PATH, "themes/")),
)
Fixed the problem but it should be getting set as I have THEME_DIR set.
Thanks chrisfranklin, you helped me clear those errors myself. I have a question: I can install the theme from the admin site, but I have to manually add the theme templates to settings.py ( TEMPLATE_DIRS & CMS_TEMPLATES). Is this how it should be?
Yeah I think so mate, would using the same names across your themes work? E.g. home.html, about.html etc
Hey,
I am attempting to use the following path in my templates:
For example:
My theme is called chequers and the directory structure is as follows:
I do not seem to be able to load any static files and I am unsure of how to debug the problem. Any help would be appreciated. Thanks a lot!