Re: Configurable landing page in admin site

2020-12-24 Thread Adam Johnson
n Deep >> wrote: >> >>> Greetings of the day, >>> >>> I have use case where I want to show a custom landing page after a user >>> logs into the admin site. One way to do it will be to override the >>> index_template >>> attribute of Admin

Re: Configurable landing page in admin site

2020-12-24 Thread Gagan Deep
edirect("/custom-page/") > return response > > On Wed, 23 Dec 2020 at 14:59, Gagan Deep wrote: > >> Greetings of the day, >> >> I have use case where I want to show a custom landing page after a user >> logs into the admin site. One way to do it wi

Re: Configurable landing page in admin site

2020-12-23 Thread Adam Johnson
-page/") return response On Wed, 23 Dec 2020 at 14:59, Gagan Deep wrote: > Greetings of the day, > > I have use case where I want to show a custom landing page after a user > logs into the admin site. One way to do it will be to override the > index_template > att

Configurable landing page in admin site

2020-12-23 Thread Gagan Deep
Greetings of the day, I have use case where I want to show a custom landing page after a user logs into the admin site. One way to do it will be to override the index_template attribute of AdminSite <https://docs.djangoproject.com/en/3.1/ref/contrib/ad

Re: Proposal: local timezone-aware datetime fields in the admin site

2018-10-04 Thread Aymeric Augustin
rstands, then you > should be able to achieve your goal in the Widget for datetime fields and to > preserve backwards-compatibility. > > Best regards, > > -- > Aymeric. > > > >> On 3 Oct 2018, at 23:04, Paul Tiplady qwil.com <http://qwil.com/&

Re: Proposal: local timezone-aware datetime fields in the admin site

2018-10-04 Thread Paul Tiplady
atibility. > > Best regards, > > -- > Aymeric. > > > > On 3 Oct 2018, at 23:04, Paul Tiplady > > wrote: > > Timezone handling in the Django admin is quite confusing for users when > the users are in multiple timezones, because everything in the admin site

Re: Proposal: local timezone-aware datetime fields in the admin site

2018-10-03 Thread Aymeric Augustin
. Best regards, -- Aymeric. > On 3 Oct 2018, at 23:04, Paul Tiplady wrote: > > Timezone handling in the Django admin is quite confusing for users when the > users are in multiple timezones, because everything in the admin site > operates in the server's time. >

Proposal: local timezone-aware datetime fields in the admin site

2018-10-03 Thread Paul Tiplady
Timezone handling in the Django admin is quite confusing for users when the users are in multiple timezones, because everything in the admin site operates in the server's time. Assuming USE_TZ=True, TIME_ZONE='UTC', USE_I18N, USE_L10N, when viewing a datetime field, users s

Django shell on django admin site

2017-01-28 Thread Grzegorz Tężycki
Hi everyone. I created small application which can execute python code in django project environment. Maybe someone will be interested and has any suggestions. django-admin-shell: https://github.com/djk2/django-admin-shell -- You received this message because you are subscribed to the Google Gr

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-10 Thread ptone
Just to add a quick update here. Not much has happened on the branch since Djangocon - but we had some valuable discussions. I'm hoping to get some time over the holidays to get this back up to a more current form. Russ and Karen gave some great feedback, and there is some straightforward but

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Russell Keith-Magee
It's Preston Holme's app-loading branch - the Github branch Ramiro referenced earlier in this thread. https://github.com/ptone/django/tree/app-loading Yours, Russ Magee %-) On Sat, Dec 8, 2012 at 12:02 PM, Pedro J. Aramburu wrote: > Which one is the branch? I can't seem to find it. > > On Frida

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Pedro J. Aramburu
Which one is the branch? I can't seem to find it. On Friday, December 7, 2012 10:41:16 PM UTC-3, Russell Keith-Magee wrote: > > > On Sat, Dec 8, 2012 at 9:29 AM, Pedro J. Aramburu > > > wrote: > >> Ramiro, I've read the ticket but it seems stuck. I just want it to go >> forward because I think

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Russell Keith-Magee
On Sat, Dec 8, 2012 at 9:29 AM, Pedro J. Aramburu wrote: > Ramiro, I've read the ticket but it seems stuck. I just want it to go > forward because I think it's a major UI/UX issue for non-programmers the > lack of "pretty" app names. But I want it to be done right with a proper > app metadata hand

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Pedro J. Aramburu
Ramiro, I've read the ticket but it seems stuck. I just want it to go forward because I think it's a major UI/UX issue for non-programmers the lack of "pretty" app names. But I want it to be done right with a proper app metadata handling. The thing is that there isn't any consensus about the wa

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Ramiro Morales
On Fri, Dec 7, 2012 at 11:18 AM, Aymeric Augustin wrote: > FYI the latest efforts on this topic are here: > https://github.com/ptone/django/compare/app-loading > http://code.djangoproject.com/ticket/3591 Exactly, The issue described in this thread is already reported as ticket [1]10436. The fix

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Pedro J. Aramburu
using admin.py for registering the app, I think it would only scope the information to the admin site. What I want to accomplish is some way to store app metadata for the use where it's needed and be able to translate it to multiple languages. Maybe on the future it exist a template tag so

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Aymeric Augustin
FYI the latest efforts on this topic are here: https://github.com/ptone/django/compare/app-loading http://code.djangoproject.com/ticket/3591 -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Marijonas Petrauskas
g) > I'm spanish speaking so my users are too. Writing code in spanish isn't > pretty and with characters like "á" or "ñ" it's very difficult to name the > apps a way that would make sense to show on the Admin site. > That being said, I would like to propose a

Re: Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Sergiy Kuzmenko
ned on the Django users forums ( > https://groups.google.com/forum/?fromgroups=#!topic/django-users/ZUxZHi_-5ug) > I'm spanish speaking so my users are too. Writing code in spanish isn't > pretty and with characters like "á" or "ñ" it's very difficult to na

Proposal: Django Admin Site and "pretty" app name

2012-12-07 Thread Pedro J. Aramburu
ame the apps a way that would make sense to show on the Admin site. That being said, I would like to propose a solution because all the tickets and solutions I found won't work properly or are very outdated but I need consent and guidance on how to approach it and with the internals of

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Julien Phalip
del > and hook it up into the admin site. Don't include any list_filter > options. Then craft a valid query string on the change list page that > queries a field on the related model. You will get an HTTP 500. > > For example: > > myapp/models.py: > > class MyModel

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Alex Ogier
uot; wrote: > Julien, I'm not describing an edge case. Django will return an HTTP > 500 for ANY field lookup on a related model that is not in the > list_filter option. > > To test, simply create a model that has a ForeignKey to another model > and hook it up into the admin s

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread 3point2
Julien, I'm not describing an edge case. Django will return an HTTP 500 for ANY field lookup on a related model that is not in the list_filter option. To test, simply create a model that has a ForeignKey to another model and hook it up into the admin site. Don't include any list_filt

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-11 Thread Julien Phalip
On Apr 10, 2012, at 4:34 AM, 3point2 wrote: > The admin site allows the use of certain query strings to filter > change list pages. The syntax follows queryset field lookups, for > example http://mysite.com/admin/myapp/mymodel/?field__exact=test. > Lookups that are not spec

Re: Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-10 Thread Tai Lee
I agree with this. HTTP 500 error should not occur due to users attempting to subvert the system somehow. HTTP 500 errors should only be returned when an unhandled exception occurs (which shouldn't happen). Cheers. Tai. On Tuesday, 10 April 2012 21:34:07 UTC+10, 3point2 wrote: > >

Admin site: Appropriateness of HTTP 500 when using non-allowed query strings

2012-04-10 Thread 3point2
The admin site allows the use of certain query strings to filter change list pages. The syntax follows queryset field lookups, for example http://mysite.com/admin/myapp/mymodel/?field__exact=test. Lookups that are not specified on the ModelAdmin's list_filter option raise a SuspiciousOper

Re: How to set the sucess message after inserting values to db indjango admin site

2010-04-21 Thread skylar . saveland
Ask on django-users. This list is for the discussion of developing django itself. sent from my baz foone -Original Message- From: Radhikavk Date: Wed, 21 Apr 2010 22:55:03 To: Subject: How to set the sucess message after inserting values to db in django admin site How to set the

How to set the sucess message after inserting values to db in django admin site

2010-04-21 Thread Radhikavk
How to set the sucess message after inserting values to db in django admin site like message department added sucessfully model: class departmentForm(forms.ModelForm): model=mdldepartments def clean(self): dept_msg = u"Department name allows only chara

Re: Display link to change-form on inlines where model is registered in admin site

2010-03-19 Thread Russell Keith-Magee
On Sat, Mar 20, 2010 at 8:31 AM, Simon Meers wrote: > I've just submitted #13163 [1] with a patch to display a link to the full > change-form for inlines of models which are registered in the same admin > site, similar to the existing "view on site" link for inline

Display link to change-form on inlines where model is registered in admin site

2010-03-19 Thread Simon Meers
I've just submitted #13163 [1] with a patch to display a link to the full change-form for inlines of models which are registered in the same admin site, similar to the existing "view on site" link for inlines. I have had numerous projects where this would have been immensely usef

Re: Cannot access admin site after update

2009-07-07 Thread diogobaeder
> > > Got this after updating my django trunk working copy to r.11199, and > > cannot access the admin site anymore: > > >http://dpaste.com/63968/ > > > Any ideas of what it might be? > > If you are looking for help debugging a problem, please ask on > Django-use

Re: Cannot access admin site after update

2009-07-06 Thread Russell Keith-Magee
On Tue, Jul 7, 2009 at 11:46 AM, Diogo Baeder wrote: > > Hi, guys, > > Got this after updating my django trunk working copy to r.11199, and > cannot access the admin site anymore: > > http://dpaste.com/63968/ > > Any ideas of what it might be? If you are looking f

Cannot access admin site after update

2009-07-06 Thread Diogo Baeder
Hi, guys, Got this after updating my django trunk working copy to r.11199, and cannot access the admin site anymore: http://dpaste.com/63968/ Any ideas of what it might be? Diogo --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Admin Site

2008-12-17 Thread samira
Ok, I will do it. thanks On Dec 17, 8:31 pm, "Karen Tracey" wrote: > Please take follow-ups to this question to django-users.  This list is > really not for usage questions. > > Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Admin Site

2008-12-17 Thread Karen Tracey
Please take follow-ups to this question to django-users. This list is really not for usage questions. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send emai

Re: Admin Site

2008-12-17 Thread Alex Koshelev
gt; > On Dec 17, 8:17 pm, "Jeremy Dunck" wrote: > > On Wed, Dec 17, 2008 at 11:14 AM, samira wrote: > > > > > I active admin site for Django 1.0.2, it is correct on my local, but I > > > see below error on server: > > > > > emplateSyntaxErro

Re: Admin Site

2008-12-17 Thread samira
I renamed my project, but no diffrent. it seems something is wrong in admin templates. On Dec 17, 8:17 pm, "Jeremy Dunck" wrote: > On Wed, Dec 17, 2008 at 11:14 AM, samira wrote: > > > I active admin site for Django 1.0.2, it is correct on my local, but I > &g

Re: Admin Site

2008-12-17 Thread Jeremy Dunck
On Wed, Dec 17, 2008 at 11:14 AM, samira wrote: > > I active admin site for Django 1.0.2, it is correct on my local, but I > see below error on server: > > emplateSyntaxError at /site/admin/ > > Caught an exception while rendering: Tried activateAccount in module > site.s

Admin Site

2008-12-17 Thread samira
I active admin site for Django 1.0.2, it is correct on my local, but I see below error on server: emplateSyntaxError at /site/admin/ Caught an exception while rendering: Tried activateAccount in module site.site_app.views. Error was: 'module' object has no attribute 'activateAc

Re: Localization in the admin site and date/time filters.

2008-11-21 Thread Malcolm Tredinnick
On Fri, 2008-11-21 at 11:33 -0800, Bob Thomas wrote: > See tickets #2203 and #9366. They're two opposite sides of an issue > that needs to be reconciled somehow, and I figured this list was the > best way to fight it out. > > #2203 summary - Date/time formats in the admin interface use the > {DA

Localization in the admin site and date/time filters.

2008-11-21 Thread Bob Thomas
See tickets #2203 and #9366. They're two opposite sides of an issue that needs to be reconciled somehow, and I figured this list was the best way to fight it out. #2203 summary - Date/time formats in the admin interface use the {DATE,TIME,DATETIME}_FORMAT string from translation files, and fall b

Re: Add "order_by" support for extra columns on Admin Site

2008-09-27 Thread Yuri Baburov
count': 'select count(*) from comments > where comments.article_id = article.id'} >) > > class Article(models.Model): ># Fields must be here >objects = ArticleManager() # Overriding the `models.Manager` > > > I wanted that extra

Add "order_by" support for extra columns on Admin Site

2008-09-23 Thread Túlio Paiva
ents_count': 'select count(*) from comments where comments.article_id = article.id'} ) class Article(models.Model): # Fields must be here objects = ArticleManager() # Overriding the `models.Manager` I wanted that extra field "comments_count" have sort and fil

Re: Rev 3507 breaks admin site

2006-08-01 Thread Nebojša Đorđević
On 1 Aug 2006, at 13:23, Michael van der Westhuizen wrote: After updating SVN this morning I get the error below. Reverting to revision 3506 resolves the problem. The error occurs with the default site (no apps installed) - just start a project, enable admin, syncdb, runserver, log in to admin,