Django admin popup links are broken -


i'm having problem django admin popups: on creating new object related 1 i'm working on (e.g., user model , groups belongs to), clicking on plus sign near form field expect browser open popup served add view of related model instead experience serving of add view inside page itself. practically speaking, popup not working should be.

the link on plus sign (from standard user model admin page, group field) following: /admin/auth/group/add/?_to_field=id&_popup=1

the same behaviour happening on other models, , suggest me wrong settings file (maybe missing javascript handler...)

do have idea of can wrong ? i'm using django 1.8 django grappelli interface.

here setting file (the core part):

import os  project_root = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))  media_root = '/webapps/example/media/' media_url = '/media/'  static_root = '/webapps/example/static/' static_url = '/static/'  staticfiles_dirs = (     os.path.join(project_root, 'static'), )  staticfiles_finders = (     'django.contrib.staticfiles.finders.appdirectoriesfinder',     'django.contrib.staticfiles.finders.filesystemfinder', )  templates = [{     'backend': 'django.template.backends.django.djangotemplates',     'app_dirs': false,     'dirs': [os.path.join(project_root, 'templates')],     'options': {          'context_processors': (             'django.contrib.auth.context_processors.auth',             'django.core.context_processors.debug',             'django.core.context_processors.i18n',             'django.core.context_processors.media',             'django.core.context_processors.static',             'django.core.context_processors.tz',             'django.contrib.messages.context_processors.messages',              "django.core.context_processors.request",         ),          'loaders': (             'django.template.loaders.filesystem.loader',             'django.template.loaders.app_directories.loader',         ),          'debug': false     } }]  middleware_classes = (     'django.contrib.sessions.middleware.sessionmiddleware',     'django.middleware.common.commonmiddleware',     'django.middleware.csrf.csrfviewmiddleware',     'django.contrib.auth.middleware.authenticationmiddleware',     'django.contrib.messages.middleware.messagemiddleware',     'django.middleware.clickjacking.xframeoptionsmiddleware', )  test_runner = 'django.test.runner.discoverrunner'  root_urlconf = 'example.urls'  wsgi_application = 'example.wsgi.application'  installed_apps = (     # grappelli custom admin, needs defined before admin app.     'grappelli',      'django.contrib.admin',     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.messages',     'django.contrib.staticfiles',     # 'django.contrib.sites',      # 'django.contrib.humanize',     # 'django.contrib.sitemaps',      # 3rd-party app     'gunicorn',     'django_extensions',      # local apps     ... )  session_serializer = 'django.contrib.sessions.serializers.jsonserializer'  # grappelli settings. grappelli_admin_title = site_name 

django introduced changes javascript creates admin popups. grappelli isn't compatible django 1.8.

this issue reported on github. more information can follow ticket: https://github.com/sehmaschine/django-grappelli/issues/600


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -