Skip to content
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

fix: v3.12.0-alpha.10 crash (ignore docs, add redirects) #676

Merged
merged 8 commits into from
Jul 25, 2023
5 changes: 3 additions & 2 deletions taccsite_cms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ def get_subdirs_as_module_names(path):
module_names = []
for entry in os.scandir(path):
is_app = (
entry.path.find('_readme') == -1 and
entry.path.find('demdata-') == -1
entry.path.find('_readme') == -1 and # explains common project dirs
entry.path.find('-cms') == -1 and # deprecated project templates
entry.path.find('docs') == -1 # documentation beyond README
)
if entry.is_dir() and is_app:
# FAQ: There are different root paths to tweak:
Expand Down