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,
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 and
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
"Djang
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
wrote:
> I
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 adding this information to the _
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
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, send
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
>> of the admin view
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 while
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.
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 w
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 admin/change_form.ht
> 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 us
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 a
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 temp
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 wrote:
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 r
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 all each time.
>
> Basica
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 fields
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 of using the loops:
>
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 line
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 django-
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 the fields with.
http:/
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" group.
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 wondering how to
>>> customize what gets displayed.
>>>
>>> Under Home->MyM
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 Home->MyModels->MyModels, MyModel instances are listed as "MyModel
>>
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 foreign key reference to
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
MyModel
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
> exist
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 "
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
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
Yea
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 t
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 day
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 thi
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 what you're doing -- what
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 athe
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. Will
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 t
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 head
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.
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 usu
> 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 mor
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 not
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 w
Robert Wittams wrote:
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 custom
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 beha
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 inter
48 matches
Mail list logo