koleror / django-admin-views

Easily link custom admin views and direct URLs into the Django admin
BSD 3-Clause "New" or "Revised" License
187 stars 33 forks source link

Django 1.9.6 support for templates and html tags #25

Closed enmanuelmartinez closed 1 year ago

enmanuelmartinez commented 8 years ago

-First Django is not using TEMPLATE_DIRS anymore its using the fallowing structure

TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], 'debug': DEBUG }, }, ]

-Second if we use template_dirs like legacy code the application install the admin index for django-admin-views but its present all html in the top of app module. I did the example in the documentation and show the fallowing Html.

Custom admin view 'Process This' Process This     Link to 'Go to LJW' Go to LJW    
unruthless commented 8 years ago

@enmanuelmartinez Your screen shots aren't showing up for me, but if I understand you correctly, you're seeing literal HTML being rendered to the screen, something like this:

screen shot 2016-05-26 at 12 19 17 pm

The above is a screenshot I took of my app after updating from django v1.8.13 to v1.9.6, while running django-admin-views v0.5.0.

Updating to django-admin-views v0.7.0 solved this problem for me.

koleror commented 1 year ago

Django 1.9 is no longer supported as deprecated by django. So closing the issue