django-admin-views icon indicating copy to clipboard operation
django-admin-views copied to clipboard

Django 1.9.6 support for templates and html tags

Open enmanuelmartinez opened this issue 8 years ago • 1 comments

-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    

enmanuelmartinez avatar May 16 '16 21:05 enmanuelmartinez

@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.

unruthless avatar May 27 '16 02:05 unruthless

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

koleror avatar Nov 02 '22 00:11 koleror