First time here? Check out the FAQ!

Revision history  [back]

How to override or replace admin templates for own app?

Hi,

I'm trying to override or replace the admin templates, but I can't find how to do this.

I have created a /templates/admin/my_app/my_model directory ( as Django docs says at Overriding admin templates ), which I put it on my askbot directory and I added it to ASKBOT_EXTRA_SKINS_DIR ( reference1 and reference2 ). This directory contains a modified copy of change_form.html provided by Django.

I don't know what is wrong, but it still showing the default template.

Can anyone help me? Thanks!

How to override or replace admin templates for own app?

Hi,

I'm trying to override or replace the admin templates, but I can't find how to do this.

I have created a /templates/admin/my_app/my_model directory ( as (as Django docs says at Overriding admin templates ), which I put it on my askbot directory and I added it to ASKBOT_EXTRA_SKINS_DIR ( (reference1 and reference2 ). This directory contains a modified copy of change_form.html provided by Django.

I don't know what is wrong, but it still showing the default template.

Can anyone help me? Thanks!

How to override or replace admin templates for own app?

Hi,

I'm trying to override or replace the admin templates, but I can't find how to do this.

I have created a /templates/admin/my_app/my_model directory (as Django docs says at Overriding admin templates), which I put it on my askbot directory and I added it to ASKBOT_EXTRA_SKINS_DIR (reference1 and reference2). This directory contains a modified copy of change_form.html provided by Django.

I don't know what is wrong, but it still showing the default template.

Can anyone help me? Thanks!