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

Implement new base-root.htm template #38

Merged
merged 19 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion arches_lingo/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.apps import AppConfig
from django.conf import settings

from arches.settings_utils import generate_frontend_configuration

Expand All @@ -9,4 +10,5 @@ class ArchesLingoConfig(AppConfig):
is_arches_application = True

def ready(self):
generate_frontend_configuration()
if settings.APP_NAME.lower() == self.name:
generate_frontend_configuration()
2 changes: 1 addition & 1 deletion arches_lingo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"django.contrib.staticfiles",
"django.contrib.gis",
"django_hosts",
"arches_references",
"arches",
"arches.app.models",
"arches.management",
Expand All @@ -145,6 +144,7 @@
"corsheaders",
"oauth2_provider",
"django_celery_results",
"arches_references",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want this above arches since it's an arches application?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't matter, as long as arches.app is at the bottom

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that was only true for templates, not css/img discovery.

Copy link
Member Author

@jacobtylerwalls jacobtylerwalls Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(arches.app only ever has templates, not media/build/...) oooO maybe not...

Copy link
Contributor

@chrabyrd chrabyrd Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tested with an image and the results are as you'd expect ( project -> apps -> core ), but happy to chat if you'd like

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'm with you now. I forgot how specialized we made ArchesApplicationsStaticFilesFinder, which even if there's an "arches" in the middle of INSTALLED_APPS, there won't be anything under arches/media, so this should be A-OK.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacobtylerwalls @chrabyrd back from the future - arches_references has to go above arches because there are commands in arches_references/packages.py that need to be included in the packages options. I'll fix as part of #53

# "silk",
)

Expand Down