Skip to content
This repository was archived by the owner on Nov 16, 2017. It is now read-only.

Conversation

@MA3STR0
Copy link

@MA3STR0 MA3STR0 commented Apr 9, 2013

Integrated latest messages framework, removed ADMIN_MEDIA_PREFIX

@bartTC
Copy link
Owner

bartTC commented Apr 9, 2013

Thank you.

'ADMIN_MEDIA_PREFIX': settings.STATIC_URL + '/admin/',

That won't work everywhere, please use the admin urlpatterns.

@bartTC
Copy link
Owner

bartTC commented Apr 9, 2013

I don't activly maintain this project, I'll merge pulls if they're ok. If you want to take over the project let me know.

@MA3STR0
Copy link
Author

MA3STR0 commented Apr 10, 2013

The most safe way to make ADMIN_MEDIA_PREFIX backward-compatible would probably be something like:

from django.contrib.admin.templatetags.admin_static import static
admin_static = getattr(settings, "ADMIN_MEDIA_PREFIX", static("admin"))

Can we rely on it?
I will think about taking over the project, generally I like the idea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants