#1633 closed enhancement (duplicate)
Allow including javascript files from different hosts in admin-interface.
| Reported by: | Rudolph Froger | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | contrib.admin | Version: | magic-removal |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Currently the admin interface only allows one to include javascript files from the MEDIA_URL. If my project is on http://www.example.com/ and my media files are at http://media.example.com/, I can only server javascript from http://media.example.com/[ADMIN_MEDIA_PREFIX]/. Some javascript files require the be on the same hostname as your project, currently this isn't possible. It would be very nice if this would be possible:
class MyModel(models.Model):
...
class Admin:
js = ('js/example.js', 'http://www.example.com/js/other_example.js',)
Change History (3)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I think this is a duplicate of ticket #1099 , which was closed/wontfix