Re: Customizing Admin Layout and templates

2015-12-17 Thread Derek
You are better off not trying to change the admin; rather write your own templates and views which can customised to create the exact layout you want. Admin is really designed to be used "as is" and populate the "back end data" of your application. On Tuesday, 15 December 2015 21:05:31 UTC+2,

Re: Customizing Admin Layout and templates

2015-12-15 Thread Daniel Chimeno
Hello, If you want to build a CMS, you could use some apps or projects that are out there: https://www.djangopackages.com/grids/g/cms/ El martes, 15 de diciembre de 2015, 20:05:31 (UTC+1), Mayank Singhal escribió: > > Hello, > I am new to django. I want to customize the admin panel templates

Customizing Admin Layout and templates

2015-12-15 Thread Mayank Singhal
Hello, I am new to django. I want to customize the admin panel templates and layouts. How can i do that can somebody provide me the tutorial. I want to convert it in a panel like Wordpress or Joomla Admin Panel. -- You received this message because you are subscribed to the Google Groups

Re: Customizing Admin

2013-05-09 Thread Cody Scott
I am trying to create a form to select but I don't want to list all of the options because there are too many. Is there a way to allow the visitor to search and only have the query show up in the form? Even if it is not in the admin. On Thu, May 9, 2013 at 8:17 AM, Rafael E. Ferrero

Re: Customizing Admin

2013-05-09 Thread Rafael E. Ferrero
I think you can customize the django admin templates for your own purpose 2013/5/7 Cody Scott > Is there a way to put text in the django admin? > > I am trying to display information from another model, to help in your > select of ForeignKeys. > > Right now I am

Customizing Admin

2013-05-07 Thread Cody Scott
Is there a way to put text in the django admin? I am trying to display information from another model, to help in your select of ForeignKeys. Right now I am adding this information to the __unicode__ function so I can see the information but there is not context. Also is there a way to make a

Re: Error while customizing admin/change_form.html

2011-07-16 Thread I159
Or simply add folder with same name of your app. For admin//.html -- 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/-/9Qe-eX2T5X8J. To post to this group,

Re: customizing admin - third party db esp. MongoDB?

2011-05-12 Thread λq
http://mongoengine.org/docs/v0.4/django.html It doesn't work with django admin's. On Thu, May 12, 2011 at 3:16 PM, Shamail Tayyab wrote: > On 12/05/11 12:13 PM, λq wrote: >> >> Hi guys, >> >> I have a legacy Django project to maintain, and now my job is to port some >> part

Re: customizing admin - third party db esp. MongoDB?

2011-05-12 Thread Shamail Tayyab
On 12/05/11 12:13 PM, λq wrote: Hi guys, I have a legacy Django project to maintain, and now my job is to port some part of the admin view from MySQL backend to MongoDB. AFAIK the mongodb as Model backend for django isn't exactly mature yet, I am thinking of writing customized admin views

customizing admin - third party db esp. MongoDB?

2011-05-12 Thread λq
Hi guys, I have a legacy Django project to maintain, and now my job is to port some part of the admin view from MySQL backend to MongoDB. AFAIK the mongodb as Model backend for django isn't exactly mature yet, I am thinking of writing customized admin views while using PyMongo as mongodb driver.

Problem in Customizing Admin Interface using RTI

2010-09-22 Thread Mahesh
Steps i followed, 1. downloaded TinyMCE for production from http://tinymce.moxiecode.com/. 2. Unzipped and uploaded to my web server (linux) 3. changed URLS.PY with proper path as i saved in my server 4. Created sub-directory as admin/flatpages/flatpage/custom_form.html (to redirect) 5. Books and

Re: Error while customizing admin/change_form.html

2010-06-17 Thread Richard Bolt
You're getting a recursion error because you're trying to extend admin/ change_form.html with itself. In other words your copy of admin/ change_form.html in the directory location you have is the default admin/change_form.html template now... You can either: 1. Copy the entire

Re: Error while customizing admin/change_form.html

2010-06-15 Thread igor.potapenko
> here is my code in change_form.html > > {% extends "admin/change_form.html" %} ... and ... > Caught RuntimeError while rendering: maximum recursion depth exceeded You try to extend template with itself. -- You received this message because you are subscribed to the Google Groups "Django

Error while customizing admin/change_form.html

2010-06-15 Thread Owais Lone
Hey everyone.. I was trying to customize django's admin interface but a problem has occurred. here is my code in change_form.html {% extends "admin/change_form.html" %} {% block form_top %} Insert meaningful help message here... {% endblock %} and here is the error TemplateSyntaxError

Customizing Admin Forms Question

2010-01-15 Thread Joel Davis
I've got a couple of questions about customizing the admin pages... First, is there a way to specify the layout/template for an admin form by hand? I've got a Model that has a bunch of optional fields, including a bunch of TextAreas, and the form is huge and jumbled. I'd like to make a custom

Re: customizing admin template - how to refer to specific field

2009-07-22 Thread sico
This has been put in the "too hard" basket for now. I'm upgrading from django 0.96 to 1.0.2 and was hoping to make this custom view a configured admin view but am leaving that till later now as it's taking too much time away from porting the rest of the system. On Jul 21, 11:43 am, sico

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread sico
Yeah, that will do it, but it will get cumbersome quite quickly... I'm thinking if I override the change_view and add_view functions on the admin model I can set the fieldsets variable however I like! My system is down at the moment so I can't test it... does that sound like it will work? I'll

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread Joshua Russo
On Mon, Jul 20, 2009 at 10:26 PM, sico wrote: > > thats cool to know, but not quite what I'm after I don't think. If > there was a simple way to display the label, field and any errors all > at once would be nice otherwise it gets quite cumbersome to be > repeating that

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread sico
thats cool to know, but not quite what I'm after I don't think. If there was a simple way to display the label, field and any errors all at once would be nice otherwise it gets quite cumbersome to be repeating that all each time. Basically what I want to be able to do is to show different

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread rajeesh
On Jul 20, 9:38 am, sico wrote: > Its quite simple to customize the admin template for a specific model > by creating a change_form.html in the templates/admin// > / directory. > > But, is it possible to refer to particular fields in the model/form > directly? > > Instead

customizing admin template - how to refer to specific field

2009-07-19 Thread sico
Its quite simple to customize the admin template for a specific model by creating a change_form.html in the templates/admin// / directory. But, is it possible to refer to particular fields in the model/form directly? E.g. Instead of using the loops: for fieldset in adminform: for

Customizing Admin Save Functionality

2009-05-11 Thread rpupkin77
Hi, Is there a list of admin blocks ie (form_top) somewhere, all I know are form_top and extra_head. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Customizing admin form

2009-04-10 Thread Brian Neal
On Apr 10, 4:46 pm, Oleg Oltar wrote: > Hi! > > I have a model which contains several TextFields and CharFields. I want to > make all char fields longer and wider. How to do it? > > Thanks, > Oleg You can supply your own form that is using customized widgets to construct

Customizing admin form

2009-04-10 Thread Oleg Oltar
Hi! I have a model which contains several TextFields and CharFields. I want to make all char fields longer and wider. How to do it? Thanks, Oleg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Alex Gaynor
On Thu, Mar 19, 2009 at 7:36 PM, Nate Reed wrote: > On Thu, Mar 19, 2009 at 4:29 PM, Alex Gaynor wrote: > >> >> >> On Thu, Mar 19, 2009 at 7:21 PM, Nate Reed wrote: >> >>> I'm working on an admin interface for my app, and

Re: customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Nate Reed
On Thu, Mar 19, 2009 at 4:29 PM, Alex Gaynor wrote: > > > On Thu, Mar 19, 2009 at 7:21 PM, Nate Reed wrote: > >> I'm working on an admin interface for my app, and wondering how to >> customize what gets displayed. >> >> Under

Re: customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Alex Gaynor
On Thu, Mar 19, 2009 at 7:21 PM, Nate Reed wrote: > I'm working on an admin interface for my app, and wondering how to > customize what gets displayed. > > Under Home->MyModels->MyModels, MyModel instances are listed as "MyModel > object." When editing another model, the

customizing admin interface: showing descriptive names for objects

2009-03-19 Thread Nate Reed
I'm working on an admin interface for my app, and wondering how to customize what gets displayed. Under Home->MyModels->MyModels, MyModel instances are listed as "MyModel object." When editing another model, the foreign key reference to MyModel gets displayed as a list of: MyModel object

Re: Customizing Admin to display non-editable fields

2009-02-18 Thread Malcolm Tredinnick
On Wed, 2009-02-18 at 06:15 -0800, mermer wrote: > Thanks, that works very well - but as you mentioned is certainly not > intuitive. > > Can you use a similar technique to prepopulate fields? My use case is > this:- > > I want to display an INLINE formset. Though records which already >

Re: Customizing Admin to display non-editable fields

2009-02-18 Thread mermer
Thanks, that works very well - but as you mentioned is certainly not intuitive. Can you use a similar technique to prepopulate fields? My use case is this:- I want to display an INLINE formset. Though records which already exist I want to display but make certain fields uneditable Using the

Re: Customizing Admin for Large Data Sets

2009-02-18 Thread James Mowery
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-per-page Set the above to the number of items you would like to appear per page. The default is 100, so set it it to something more manageable. http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ordering Set that to a DateField or

Re: Customizing Admin to display non-editable fields

2009-02-17 Thread Malcolm Tredinnick
On Tue, 2009-02-17 at 20:25 -0500, Alex Gaynor wrote: [...] > Writing a custom widget to do it isn't especially easy because the > render method on widgets doesn't get the initial value, however you > can do it: > http://lazypython.blogspot.com/2008/12/building-read-only-field-in-django.html

Re: Customizing Admin to display non-editable fields

2009-02-17 Thread Alex Gaynor
On Tue, Feb 17, 2009 at 8:23 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Tue, 2009-02-17 at 17:19 -0800, mermer wrote: > > Is there a way to display only the values of certain fields in the > > Admin, so that it is clear that those fields are non-editable? > > You would have

Re: Customizing Admin to display non-editable fields

2009-02-17 Thread Malcolm Tredinnick
On Tue, 2009-02-17 at 17:19 -0800, mermer wrote: > Is there a way to display only the values of certain fields in the > Admin, so that it is clear that those fields are non-editable? You would have to write a custom form widget to do so. There's nothing out-of-the-box yet. We'll get to it one

Customizing Admin to display non-editable fields

2009-02-17 Thread mermer
Is there a way to display only the values of certain fields in the Admin, so that it is clear that those fields are non-editable? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Customizing Admin for Large Data Sets

2009-02-17 Thread Jacob Kaplan-Moss
On Tue, Feb 17, 2009 at 12:15 PM, mermer wrote: > Does anybody have any advise on how best to customize the Admin to > cope with large data sets. > > We need to deal with 500K plus records - and the loading times are > just too slow. You might want to clarify a bit more

Customizing Admin for Large Data Sets

2009-02-17 Thread mermer
Does anybody have any advise on how best to customize the Admin to cope with large data sets. We need to deal with 500K plus records - and the loading times are just too slow. Is it possible to show a limited number of recently added records ffor a model, but then use the search facility in

Customizing admin fields for built-in models

2007-01-19 Thread Tomi Kyöstilä
Hi, Is it possible to modify the built-in models (specifically the Admin class in it)? I'd like to remove some fields from the flatpage model admin page ( e.g. sites and the advanced options) to reduce the chance of something going wrong when unexperienced users are editing/adding flatpages.

Re: customizing admin templates

2006-08-01 Thread Wilson Miner
Try putting this in your main base_site.html template: {{ app.name|default:"Django" }} Administration I'm not sure if the app info is available in the changelist/change form contexts, but it's worth a shot. On 8/1/06, Tamara D. Snyder <[EMAIL PROTECTED]> wrote: > > I'm sorry to keep bothering

Re: customizing admin templates

2006-08-01 Thread Joe
I'm not sure Django supports this 'out of the box'. You could try adding a template tag to the base_site.html folder. I'm pretty sure Django passes in the model name into the context of the template. You should be able to find this in the Django source (I'm not sure where off the top of my

customizing admin templates

2006-08-01 Thread Tamara D. Snyder
I'm sorry to keep bothering the list about this, but I just can't get custom admin templates to work properly. Here's what I have right now: 2 apps, one called Blog and one called Events2 I would like it if the branding at the top of the admin page changed depending on the app that I am in.

Re: customizing admin

2005-11-29 Thread James Bennett
On 11/29/05, Medium <[EMAIL PROTECTED]> wrote: > I don't think it has anything to do with skill or their ability to pick > it up and get use to it over time. You can say that about any syntax > (good or bad). My main point i guess was that if someone saw django > template at a glance (which is

Re: customizing admin

2005-11-29 Thread Waylan Limberg
> I don't think it has anything to do with skill or their ability to pick > it up and get use to it over time. You can say that about any syntax > (good or bad). My main point i guess was that if someone saw django > template at a glance (which is usually how I evaluate things initially) > the

Re: customizing admin

2005-11-29 Thread Medium
Tom Tobin wrote: On 11/29/05, Medium <[EMAIL PROTECTED]> wrote: Robert Wittams wrote: Medium wrote: 4. Can we change the template {{ variable }} to something like ${variable} I don't mind the {% %} but {%starttag%}{{var}}{%endtag%}.. You can assume this is

Re: customizing admin

2005-11-28 Thread Tom Tobin
On 11/29/05, Medium <[EMAIL PROTECTED]> wrote: > > Robert Wittams wrote: > > >Medium wrote: > > > >>4. Can we change the template {{ variable }} to something like > >>${variable} I don't mind the {% %} but {%starttag%}{{var}}{%endtag%}.. > > > >You can assume this is not going to change, it

Re: customizing admin

2005-11-28 Thread Robert Wittams
Medium wrote: > > hi, > > i'm very new to django (basically a few days) and have read almost all > the docs, wikis and mailing list archives (well the topics which > interest me at least). I have a few questions I was hoping anyone on the > list could help me with concerning customizing the

customizing admin

2005-11-27 Thread Medium
hi, i'm very new to django (basically a few days) and have read almost all the docs, wikis and mailing list archives (well the topics which interest me at least). I have a few questions I was hoping anyone on the list could help me with concerning customizing the behaviour of the admin