-1

I am try create a personal login screen template, but not work.

https://github.com/rg3915/custom-admin

I configure the settings:

'DIRS': [os.path.join(BASE_DIR, 'templates_admin')],

Create the folders e templates

https://github.com/rg3915/custom-admin/tree/master/myproject/core/templates_admin/admin

But not work.

Regis Santos
  • 3,469
  • 8
  • 43
  • 65

1 Answers1

0

The doc https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#admin-overriding-templates informs that simply create the folder templates/admin/ inner the app, in my case myproject/core/

In this case , the order of the apps matter .

INSTALLED_APPS = [
    # my apps
    'myproject.core',
    'django.contrib.admin',
    ...
Regis Santos
  • 3,469
  • 8
  • 43
  • 65