Django-jet: Can't login with django-jet

Created on 15 Jul 2016  路  11Comments  路  Source: geex-arts/django-jet

I've installed django-jet and since then I can't login in Admin Area with valid credencials.

My INSTALLED APPS:

INSTALLED_APPS = (
    'jet.dashboard',
    'jet',
    'django.contrib.admin',
     ...)

When I remove django-jet from installed apps the default django admin appears and I am able to login. I am also able to login in shell with the django.contrib.auth.authenticate function. The user is_staff and is_superuser variables are ser True

With django-jet the login POST request returns a 200 code but it redirects to /admin url without the session being created. I've followed the install steps as recommended in http://jet.readthedocs.io/en/latest/install.html and I'm working with Django 1.6.

I've no idea what it Could be. Thanks

All 11 comments

Have you migrate it the app?

'django.template.context_processors.request', put this in context processors.

Yes @SalahAdDin, I've migrated the app and added the django.template.context_processors.request to the settings:
TEMPLATE_CONTEXT_PROCESSORS = ( ... 'django.template.context_processors.request', )

Should I create a custom login page?

I think so, but, with the normal admin login page it works, i don't understand what happen with it.

In my other app this is running fine.. I'll analyze the differences between the two config files, but the main difference is django version. Working app is 1.9 and the other is 1.6

But,with the last django-jetversion we have compatibility with django=1.9. I can login with it.

I've created a login custom page.. I think the issue is with Django 1.6.. Thanks @SalahAdDin

Ok man, if you have problems please say us, and review our fork :+1:

@arturataide Is this actual for 1.0.0?

@f1nality I have only tested with 0.1.4, if you try with 1.0.0 please let me know if it's ok ;)
Please note the problem only occured with django 1.6.. I have another app with django 1.9 and it logs the user in with no problem.

@arturataide maybe it was somehow connected with overrided login template (because does not change any login logic). Since 0.9.0 version login template is not overrided, so maybe problem will not appear now. I personally use JET for the one Django 1.6 project since about 0.0.9 version and there was no problem for me with login page. Therefore, it is some specific case.

Should be OK with 0.9.0+. I reproduced problem with Django 1.6 with older JET versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sysint64 picture sysint64  路  3Comments

PaoloC68 picture PaoloC68  路  7Comments

RamizSami picture RamizSami  路  4Comments

pwndr00t picture pwndr00t  路  4Comments

annamalaissh picture annamalaissh  路  5Comments