Well, yes. The magic pony is doing everything for you, if you just treat it 
correctly!

Basically, put the modified admin templates and static files exactly there 
were you are serving your own templates and static assets normally in you 
project directory.
For instance, treat the admin as an app and place the customized templates 
into `templates/admin/`. Django will first look in your own directory and 
use the files there.

These two videos might be of interest regarding this topic:
1. http://pyvideo.org/video/576/customizing-the-django-admin
2. http://pyvideo.org/video/56/djangocon-2010--customizing-the-django-admin

There is also 
django-grappelli<https://github.com/sehmaschine/django-grappelli>which 
illustrates how to customize the admin in an excellent way.

Regards,
Hevok


On Monday, September 17, 2012 10:57:30 PM UTC+2, JJ Zolper wrote:
>
> Hevok so what are the steps for doing this?
>
> Sure I know where the admin files are located but once I have copied them 
> does magic just happen and Django uses my new configurations?
>
> Thanks,
>
> JJ
>
> PS. apparently after I left my website alone for a little the CSS 
> propagated through and now I see this:
>
> http://www.madtrak.com/admin 
>
> Which has the red, different text color, etc.
>
> On Sunday, September 16, 2012 4:34:10 AM UTC-4, hevok wrote:
>>
>> Its the correct way to copy the templates and static files into your
>> project folder, if you want to customize them. Otherwise the changes
>> would disappear as soon as you deploy or setup-up your project on a
>> different computer/virtual environment.
>>
>> Try F5, CTRL-F5 or CTRL-R to reload CSS in the browser as they are often
>> kept in cache.
>>
>> Best regards,
>> Hevok
>>
>>
>> On Sunday, September 16, 2012 8:25:18 AM UTC+2, JJ Zolper wrote:
>>>
>>> Hello,
>>>
>>> I was able to locate the Django files for the admin under contrib in the 
>>> source. I was curious if I could get some tips about customizing the 
>>> interface.
>>>
>>> One website I read said I shouldn't change any of the Django source but 
>>> if I want to set up a slightly different login page for example, to put the 
>>> admin files in my local directories that I'm working with.
>>>
>>> The real question is that I was able to edit some template files to 
>>> change some of the wording displayed but when I tried to edit the CSS files 
>>> to get a different design I did not see any changes when I restarted my 
>>> server. Is there some sort of collectstatic command that needs to be run? 
>>> Any input on how to propagate these CSS files through would be great.
>>>
>>> Thanks,
>>>
>>> JJ Zolper
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/iUWmJ2Zo7PIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to