Check if you have
{% csrf_token %} in your form
On Tue, Jan 23, 2024, 16:17 Raymond Nsubuga
wrote:
> I am unable to access my admin site after creating a docker image and
> hosting my website. It says an issue about the csrf, anyone who has
> encountered the issue can help.
>
> --
> You receiv
Hi Omkkar,
Thank you very much, I have already solved the problem.
Best regards,
Flavio
On Friday, May 5, 2023 at 1:57:28 PM UTC-3 Omkkar Potddar wrote:
> Are you create super user.. And register your model in admin.. Please
> check first
>
> On Fri, 5 May, 2023, 10:18 pm Flavio Munita, wro
Are you create super user.. And register your model in admin.. Please check
first
On Fri, 5 May, 2023, 10:18 pm Flavio Munita,
wrote:
> Hi, I'm new to django, maybe my question is stupid, but I can't find how
> to do it. I have the following:
>
> app lineasinv
> Model
>
> class Linea(models.Mode
https://chat.whatsapp.com/IVvrrF9Wq7OHWk5x4XNk9K
On Wed, Feb 8, 2023 at 3:40 PM Oluwayemisi Ismail <
ismailoluwayem...@gmail.com> wrote:
> Hello everyone,
>
> I'm Working on a ticket, "Admin Foreign Key widgets don't quote keys".
> When I reproduce the bug, I realized that the widgets quote chara
Thanks Ryan for this comprehensive info. Looking at option 2 (and maybe 3
as well) initially. But nice to know about option 1 as well, which I may
adopt in a longer term.
On Sunday, 15 January 2023 at 20:50:28 UTC Ryan Nowakowski wrote:
> I had a similar problem that I've worked through. I reco
Just looked at that ticket and it seems probable that is what is happening.I'll
be patient. Thanks for thatM--(Unsigned mail from my phone)
Original message From: Jason Date:
2/7/21 22:30 (GMT+10:00) To: Django users
Subject: Re: Admin TypeError - Cannot call delete()
Should have mentioned - I'm running 3.2.4M--(Unsigned mail from my phone)
Original message From: Jason Date:
2/7/21 22:30 (GMT+10:00) To: Django users
Subject: Re: Admin TypeError - Cannot call delete() after .distinct()
https://code.djangoproject.com/ticket/32682 mig
Hello Mike,
i don't understand why you want make a delete from a distict... Then you
delete random entrys. When you want do delete dupletes then this is a wrong
method to delete dupletes...
Regards
Am Fr., 2. Juli 2021 um 08:03 Uhr schrieb Mike Dewhirst <
mi...@dewhirst.com.au>:
> Trying to del
https://code.djangoproject.com/ticket/32682 might be the root cause, which
was fixed end of April and part of the 3.2.1 release, doesn't seem like its
been backported to 3.1
On Friday, July 2, 2021 at 2:03:28 AM UTC-4 Mike Dewhirst wrote:
> Trying to delete a record in the Admin list view by ch
op.
Hope that clarifies what I meant despite what I said :-)
I'll have a look at Django suit in the morning. Thanks for the
heads up.
Cheers
Mike
--
(Unsigned mail from my phone)
Original message
From: Derek
Date: 3/5/21 19:42 (
to the top.
>
> Hope that clarifies what I meant despite what I said :-)
>
> I'll have a look at Django suit in the morning. Thanks for the heads up.
>
> Cheers
>
> Mike
>
>
>
> --
> (Unsigned mail from my phone)
>
>
>
> Original me
On 3/05/2021 7:42 pm, Derek wrote:
Re "So my need is for a fixed vertical sidebar with the same links
which take you to the same list pages."
This is what I use Django Suit for - it can be located at the top or
side and remains in place across all admin pages. You can add your own
items to t
.com>>
Date: 3/5/21 19:42 (GMT+10:00)
To: Django users mailto:django-users@googlegroups.com>>
Subject: Re: Admin layout getting too bulky - what to do?
Re "So my need is for a fixed vertical sidebar with the same links
which take you to the same list pages."
what I said :-)
>
> I'll have a look at Django suit in the morning. Thanks for the heads up.
>
> Cheers
>
> Mike
>
>
>
> --
> (Unsigned mail from my phone)
>
>
>
> ---- Original message
> From: Derek
> Date: 3/5/21 19:42 (GMT+10:00
ook at Django suit in the morning. Thanks for the
heads up.CheersMike --(Unsigned mail from my phone)
Original message From: Derek Date:
3/5/21 19:42 (GMT+10:00) To: Django users
Subject: Re: Admin layout getting too bulky - what to do? Re "So my need is for
a fixed vertic
Re "So my need is for a fixed vertical sidebar with the same links which
take you to the same list pages."
This is what I use Django Suit for - it can be located at the top or side
and remains in place across all admin pages. You can add your own items to
the menu (and these can point to non-
OK - I've now looked at some Django Admin templating systems and they
all seem to solve a different problem than the one I need to ... which
is ...
Consider the Admin main menu seen at the /admin url after login. If you
click any of the links they take you to a single page with a list of
reco
10:00) To: django-users@googlegroups.com Subject:
Re: Admin help class CSS If you have a pure CSS question, this list can be very
helpful:https://www.css-discuss.org/mailman/listinfo/css-d/On Fri, Dec 11, 2020
at 4:56 PM Mike Dewhirst wrote:>> Joash>> By all means.
If I wasn'
ail from my phone)
>
>
>
> Original message ----
> From: Joash Monda
> Date: 12/12/20 02:35 (GMT+10:00)
> To: django-users@googlegroups.com
> Subject: Re: Admin help class CSS
>
> Can we work together Sir.
>
> On Fri, Dec 11, 2020, 17:57 Joash Mond
l from my phone)
Original message From: Joash Monda
Date: 12/12/20 02:35 (GMT+10:00) To: django-users@googlegroups.com Subject:
Re: Admin help class CSS Can we work together Sir.On Fri, Dec 11, 2020, 17:57
Joash Monda wrote:Hello mike got your problem...On
Fri, Dec 11, 2020, 05:3
Hello mike got your problem...
On Fri, Dec 11, 2020, 05:35 Mike Dewhirst wrote:
> I'm a CSS dunce so please point me in the right direction (docs or
> whatever) to figure out how to adjust table layout in Admin help_text.
>
> The table displays properly but is too greedy with screen real-estate.
Can we work together Sir.
On Fri, Dec 11, 2020, 17:57 Joash Monda wrote:
> Hello mike got your problem...
>
> On Fri, Dec 11, 2020, 05:35 Mike Dewhirst wrote:
>
>> I'm a CSS dunce so please point me in the right direction (docs or
>> whatever) to figure out how to adjust table layout in Admin h
Try creating a project locally on your computer set STATIC_ROOT in the
settings fileand run this command python manage.py collectstatic then go to
the static root folder and copy the static files the put it insIde the
static root folder on the cpanel.
On Saturday, September 19, 2020, English Lear
Thank you so much for your Amazing, Lovely Answer. I added
static STATIC_ROOT = os.path.join(BASE_DIR, 'static') . But the problem is
I didn't register static files on the server. Please can you tell me? how
can I register for it? I am using Linux shared hosting with Cpanel. Is
there any tutorial
If you run it on localhost it works fine but when you run site in
production static files fails to work. So you have to add static root in
Django setting.py file like STATIC_ROOT = os.path.join(BASE_DIR, 'static')
and then run python manage.py collectstatic command. It will collect all
the server s
server is not able to find your static files. Run collect static command
and add static root to your settings.py
On Thu, Sep 17, 2020, 7:16 PM English Learning
wrote:
> when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite
> database. Screenshot is here:
>
> [image: DjangoAdmin.png
On 31/07/2020 4:24 pm, Derek wrote:
> Apologies for lack of proof reading; the example code should be:
>
>
> def _name(self, obj):
> return '%s' % obj.name
> _name.admin_order_field = 'sort_name'
>
>
> On Friday, 31 July 2020 08:21:45 UTC+2, Derek wrote:
>
> I've had to do somet
Apologies for lack of proof reading; the example code should be:
def _name(self):
return '%s' % self.name
_name.admin_order_field = 'sort_name'
On Friday, 31 July 2020 08:21:45 UTC+2, Derek wrote:
>
> I've had to do something similar to handle species.
>
> I'd suggest breaking "
I've had to do something similar to handle species.
I'd suggest breaking "pure" database design and creating a new field - say,
"sort_name". This is created "on save" (obviously you can run a script to
quickly generate this field's values for all existing records). You don't
show "sort_name"
Share all of the code related to this model what you have overriden from
nodel to admin registeration part also. Also check through terminal if
superuser has been created successfully.
Did you override something related to login part too..?
Share code please.
On Wednesday, 26 February 2020 17:5
Hi soumen,
Are you overriding default user model, if yes check user.is_admin=True.
or else, Please post the exact error
Cheers
Naveen Arora
On Wednesday, 26 February 2020 17:43:51 UTC+5:30, Soumen Khatua wrote:
>
> Hi Folks,
> after creating superuser by using this command python manage.py
> c
For a better looking admin, try:
* https://django-grappelli.readthedocs.io/en/latest/
* https://djangosuit.com/
For "admin issues" you'll need to be more specific. There are very few, if
any, unsolved bugs in the Admin code
On Thursday, 9 January 2020 21:02:03 UTC+2, APIJAY SHARMA wrote:
>
search github for vali admin panel
On Thu, Jan 9, 2020 at 9:01 PM APIJAY SHARMA wrote:
> Can anyone help me out with good looking admin panels and how to customize
> it and if possible how to make it more reliable!!! I am just getting
> frustrated with admin issues in most of the modules
>
> -
Thank you!!!
It helped me a lot!! :)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the we
This is an old post but one that helped me when I first working on this:
https://www.jpichon.net/blog/2010/08/django-admin-actions-and-intermediate-pages/
On Tuesday, 19 November 2019 16:54:25 UTC+2, Thiago Luiz Parolin wrote:
>
> I have a form in admin that when selecting a particular action, pr
Well, assuming you have followed all the advice given in that link I posted
and have eliminated all those sources of error, then it seems like you will
need to add more error trapping to pin down where the error occurs. If the
log files are not been written to (which itself seems problematic &
Thanx for the response. The normal logging works, I see errors in the
error log file if they occur outside the Django Admin. However, the error
with the change form in the admin does not occur in the logfiles. Same
behaviour as with the error mailing.
Op woensdag 23 oktober 2019 10:57:05 U
Does the normal logging work i.e. are you seeing those errors reported in
the log files? And do you have trapping/handling for the email-sending
code as well?
Also have a look at:
https://stackoverflow.com/questions/15128135/setting-debug-false-causes-500-erro
for a brief discussion around the
Django 2.0 makes no difference either so I've gone back to 1.11 for the
time being. To recap ... I'm successfully launching a Stripe payment
page from within the Admin followed by a success (or failure) page
which is at the following URL ...
http://localhost:8000/admin/substance/substance/144
Starting a new thread with the same subject because the old thread ...
https://groups.google.com/forum/#!topic/django-users/YLbWzmPfHwU
... is too long
Progress report.
No change in the symptoms with Python 3.6 and Django 1.11 and Django
runserver.
I deployed to the staging server Ubuntu 16.0
/en/2.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls
--> scroll towards the bottom of that section
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Sunday, February 3, 2019 1:42 AM
To: django-users@googleg
_urls
--> scroll towards the bottom of that section
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Sunday, February 3, 2019 1:42 AM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout
--
From: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] On Behalf Of Mike Dewhirst
Sent: Friday, January 25, 2019 10:26 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
Matthew
I think I'll back everything out and start again. There mus
e Dewhirst
Sent: Friday, January 25, 2019 10:26 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
Matthew
I think I'll back everything out and start again. There must be a basic
blunder somewhere.
Just talking it through, I can definitely launch payment_vi
for some good examples. I've used it myself.
-Original Message-
From: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] On Behalf Of Mike Dewhirst
Sent: Friday, January 25, 2019 10:26 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout
essage-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Friday, January 25, 2019 10:26 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
Matthew
I think I'll back everything out and start again. There must
documentation for some
good examples. I've used it myself.
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Friday, January 25, 2019 10:26 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url bre
day, January 25, 2019 3:35 AM
*To:* django-users@googlegroups.com
*Subject:* Re: Admin form_url breakout problem
On 25/01/2019 2:40 am, Matthew Pava wrote:
Hi Mike,
I'm not really seeing why this is throwing errors at you. It seems like
you've done everything right. Could you
Behalf Of Mike Dewhirst
Sent: Friday, January 25, 2019 3:35 AM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
On 25/01/2019 2:40 am, Matthew Pava wrote:
Hi Mike,
I'm not really seeing why this is throwing errors at you. It seems like you've
done everyt
On 25/01/2019 2:40 am, Matthew Pava
wrote:
Hi Mike,
I'm not really seeing why this is throwing errors at you. It seems like you've done everything right. Could you provide the code (or the relevant parts) for the Substance Admin form?
Thanks!
the Substance
> Admin form?
> > Thanks!
> >
> > -Original Message-
> > From: django-users@googlegroups.com [mailto:
> django-users@googlegroups.com] On Behalf Of Mike Dewhirst
> > Sent: Wednesday, January 23, 2019 5:23 PM
> > To: django-users@googlegr
inal Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Wednesday, January 23, 2019 5:23 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
On 24/01/2019 9:35 am, Matthew Pava wrote:
Have you trie
ango-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Wednesday, January 23, 2019 5:23 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
On 24/01/2019 9:35 am, Matthew Pava wrote:
> Have you tried setting APPEND_SLASH = False in your settings?
Yes. The result is
lto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Wednesday, January 23, 2019 3:48 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url breakout problem
On 24/01/2019 1:08 am, Matthew Pava wrote:
It looks like your second URL is different than the first.
*/admin
Have you tried setting APPEND_SLASH = False in your settings?
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Mike Dewhirst
Sent: Wednesday, January 23, 2019 3:48 PM
To: django-users@googlegroups.com
Subject: Re: Admin form_url
On 24/01/2019 1:08 am, Matthew Pava wrote:
It looks like your second URL is different than the first.
*/admin/substance/substance/1442/change/payment*
*/admin/substance/substance/1442/change/payment/change/*
If you just want to add a slash, then add it.
*/admin/substance/substance/1442/chang
It looks like your second URL is different than the first.
/admin/substance/substance/1442/change/payment
/admin/substance/substance/1442/change/payment/change/
If you just want to add a slash, then add it.
/admin/substance/substance/1442/change/payment/
I’m guessing that Django is interpreting t
Many thanks Derek - I have started reading ...
Mike
On 16/01/2019 4:39 pm, Derek wrote:
Hi Mike
Normally I have just used the functionality in a third-party admin
"wrapper", for example, Django Suit
(https://django-suit.readthedocs.io/en/develop/configuration.html#id1).
I see others such a
Hi Mike
Normally I have just used the functionality in a third-party admin
"wrapper", for example, Django Suit
(https://django-suit.readthedocs.io/en/develop/configuration.html#id1).
I see others such as Jet
(https://jet.readthedocs.io/en/latest/dashboard_custom_module.html) allow
you to do
https://stackoverflow.com/a/50827230/1198074
On Wednesday, June 27, 2018 at 10:59:58 PM UTC+3, Pato wrote:
>
> Ahmed,
>
> Did you manage to figure out what was the problem? I ran into the same
> problem. All POST requests are throwing Page not found (404)
> Request Method: POST
>
>
> Let me kno
first thing when I googled 'django admin greek encoding', this SO question
popped up
https://stackoverflow.com/questions/20539709/greek-unicode-characters-django-and-admin-backend.
Does that work for you?
--
You received this message because you are subscribed to the Google Groups
"Django u
On maandag 16 juli 2018 02:54:32 CEST Kayode Oladipo wrote:
> Attached is the settings file from my project.
Your settings file is not going to help. You're doing to have to dig into the
browser's developer tools.
If you don't know how to do that, put the project online somewhere so we can
have
I've Tried Mozilla Firefox too, the problem still persists.
Any help is appreciated!
On Jul 16, 2018 01:54, "Kayode Oladipo" wrote:
> I recently sent in a query concerning my faulty admin css which loaded
> previously until an upgrade to v.2.0.5.
> I assumed the upgrade was responsible for this,
sorry, that's not the case.
take a look in web dev history about ie6 and all the special things that
had to be done to make sites work because microsoft decided to go their own
way with standards.
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
if it worked with Explorer , it should work with all browsers !!
On Mon, 16 Jul 2018, 14:15 Jason, wrote:
> If this works in standard browsers like chrome, firefox, or IE/Edge, then
> my guess is Opera and UC are doing non-standard things which break
> rendering and/or requests. So I'd suggest
If this works in standard browsers like chrome, firefox, or IE/Edge, then
my guess is Opera and UC are doing non-standard things which break
rendering and/or requests. So I'd suggest you look for those specific
browser issues since this doesn't seem like a Django issue at all.
On Sunday, July
One thing I noticed in your settings file is that you are missing a
comma (,) at the end of your last application in the settings file.
On Monday, 16 July, 2018 08:54 AM, Kayode Oladipo wrote:
I recently sent in a query concerning my faulty admin css which loaded
previously until an upgrade to
Have you tried FireFox?
On Monday, 16 July, 2018 08:54 AM, Kayode Oladipo wrote:
I recently sent in a query concerning my faulty admin css which loaded
previously until an upgrade to v.2.0.5.
I assumed the upgrade was responsible for this, so i downgraded back
to my previous version (2.0.2) bu
Ahmed,
Did you manage to figure out what was the problem? I ran into the same
problem. All POST requests are throwing Page not found (404)
Request Method: POST
Let me know
Thanks
On Friday, March 2, 2018 at 7:19:10 AM UTC-5, Tanvir Ahmed wrote:
>
> Hello,
>
> I am fairly new to the web h
May we see your admin.py?
El vie., 4 may. 2018 a las 8:32, Harish Soni ()
escribió:
> Hi All,
> whenever I create a new model(table) and migrate. I can see it is
> available in mysql but its not showing in admin. I have to delete my db and
> make migrations of all the tables again to make that ta
I've added to app's admin.py then only mentioned in mail.
On Fri 4 May, 2018, 2:58 PM Fidel Leon, wrote:
> You need to add your model to the app's admin.py file.
>
> As an example:
> https://docs.djangoproject.com/en/2.0/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin
>
> El vie., 4
You need to add your model to the app's admin.py file.
As an example:
https://docs.djangoproject.com/en/2.0/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin
El vie., 4 may. 2018 a las 8:32, Harish Soni ()
escribió:
> Hi All,
> whenever I create a new model(table) and migrate. I can se
On 4/05/2018 7:02 AM, jt.oldn...@gmail.com wrote:
Thanks for the response Mike.
I generally don't like it when a design has to change to fit a framework,
I agree. My design is almost entirely in the models. I want an API to be
able to work without Django forms.
however, in this case I decid
Thanks for the response Mike.
I generally don't like it when a design has to change to fit a framework,
however, in this case I decided to try your solution. I ran into a couple
of problems though :-(
1) The fields that I'm looking up were required fields. Validation failed
and error messages
On 3/05/2018 10:33 AM, Mike Dewhirst wrote:
On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and
I've got amazingly far very quickly, but there's one thing I've been
struggling with for a couple days now :-(. Forgive me if I scr
On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and
I've got amazingly far very quickly, but there's one thing I've been
struggling with for a couple days now :-(. Forgive me if I screw up
the lingo.
I've got a ModelAdmin pag
On Friday, March 2, 2018 at 9:27:29 PM UTC+6, Vinicius Assef wrote:
>
> My bad. It's urls.py
>
> On 2 March 2018 at 12:25, Vinicius Assef >
> wrote:
> > Probably you have a problem with route.
> >
> > Check your routes.py again.
> >
> > On 2 March 2018 at 10:28, > wrote:
> >>
> >>
> >>
My bad. It's urls.py
On 2 March 2018 at 12:25, Vinicius Assef wrote:
> Probably you have a problem with route.
>
> Check your routes.py again.
>
> On 2 March 2018 at 10:28, wrote:
>>
>>
>> On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>>>
>>> Some time ago I wrote this pos
Probably you have a problem with route.
Check your routes.py again.
On 2 March 2018 at 10:28, wrote:
>
>
> On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>>
>> Some time ago I wrote this post [0] about setting Python and Django
>> on Dreamhost. They use passenger.
>>
>> Ma
On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>
> Some time ago I wrote this post [0] about setting Python and Django
> on Dreamhost. They use passenger.
>
> Maybe it's useful to you.
>
>
> [0]
> http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-
On Friday, March 2, 2018 at 9:19:10 AM UTC-3, Tanvir Ahmed wrote:
>
> I am fairly new to the web hosting world. I recently purchased a plan at
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I
> was told to use passenger to host django. I couldn't find much on this
> t
On Friday, March 2, 2018 at 9:19:10 AM UTC-3, Tanvir Ahmed wrote:
>
> I am fairly new to the web hosting world. I recently purchased a plan at
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I
> was told to use passenger to host django. I couldn't find much on this
>
Some time ago I wrote this post [0] about setting Python and Django
on Dreamhost. They use passenger.
Maybe it's useful to you.
[0]
http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html
On 2 March 2018 at 04:56, Tanvir Ahmed wrote:
> Hello,
>
>
On zondag 11 februari 2018 11:36:01 CET Stephan Jaschke wrote:
> If I change any of the Master-Fields I would like the select-boxes in
> the inlines to reflect that change and to show only Fields which are
> bound to that specific csv resp. index-schema.
>
> It seems that this should be doable vi
On 11/01/2018 10:53 AM, Mike Dewhirst wrote:
On 11/01/2018 1:22 AM, Matthew Pava wrote:
If I'm understanding you correctly, you could use a callable in the
list_display definition.
That is what I'm doing. Unfortunately a callable for a list_display
column prevents sorting the list by that col
On 11/01/2018 1:22 AM, Matthew Pava wrote:
If I'm understanding you correctly, you could use a callable in the
list_display definition.
That is what I'm doing. Unfortunately a callable for a list_display
column prevents sorting the list by that column.
I just thought of something. Maybe adj
If I'm understanding you correctly, you could use a callable in the
list_display definition.
https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
def lower_case_name(obj):
return ("%s" % str(obj).lower()
lower_case_name.short_description = 'Sub
try with django-ckeditor but used ckeditor_uploader in setting
Cheers
On Fri, Dec 22, 2017 at 2:55 PM, Krafty Coder
wrote:
> How Can I add images to a my blog dynamically at any place while writing
> my blog...
>
> I found a tutorial on adding images to the form while people comment but I
> was
On Wed, Nov 29, 2017 at 6:29 AM, Jan Hartman wrote:
> Either by specifying PairRecipeCategory or using
> Categories.recipes.through, I am referencing the model that manages the
> many-to-many relation. If I wouldn't create an intermediary model myself,
> Django would do it for me. Both options le
Either by specifying PairRecipeCategory or using
Categories.recipes.through, I am referencing the model that manages the
many-to-many relation. If I wouldn't create an intermediary model myself,
Django would do it for me. Both options leave me with the same result -
being unable to access the f
On Tue, Nov 28, 2017 at 9:12 AM, Jan Hartman wrote:
> Hi, I'm having trouble with inlining models with a many-to-many
> relationship through the intermediary model. My models are recipes and
> categories (a category includes multiple recipes and a recipe can belong to
> multiple categories).
>
>
On Tuesday 09 May 2017 17:48:43 Mike Dewhirst wrote:
> On 9/05/2017 11:45 AM, Mike Dewhirst wrote:
> > On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:
> >> On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> >> > You need to clone the Django repository and run the bisect
> >> > command
>
> >> > from t
On 9/05/2017 11:45 AM, Mike Dewhirst wrote:
On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:
On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> You need to clone the Django repository and run the bisect command
> from there:
snip
running /home/melvyn/hg/django-project/invert.sh
Bisecting:
On 8/05/2017 11:02 PM, Melvyn Sopacua wrote:
On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> You need to clone the Django repository and run the bisect command
> from there:
Simplicity in Unix:
1 #!/bin/sh
2
3 # Basically, make grep -qv behave like I want it to
4
5 file='django/contri
On Monday 08 May 2017 03:57:01 Tim Graham wrote:
> You need to clone the Django repository and run the bisect command
> from there:
Simplicity in Unix:
1 #!/bin/sh
2
3 # Basically, make grep -qv behave like I want it to
4
5 file='django/contrib/admin/static/admin/css/f
You need to clone the Django repository and run the bisect command from
there:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
That said, you might have some luck using the "Blame" button on
https://github.com/django/django/blob/stable/1.9.x/django/contrib/
Tim
The problem does not exist in 1.8.18 and does exist in 1.9
Here is the test I wrote to see if the css file contains the problem
(which I established by trial and error) ...
# -*- coding: utf-8 -*-
import os
from django.test import TestCase
from django.contrib import admin
expected = "fo
On 7/05/2017 8:12 PM, Tim Graham wrote:
You can use git bisect to find the Django commit where the behavior
changed:
https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression
Just read this and I have two problems ...
1. It is a css problem resultin
You can use git bisect to find the Django commit where the behavior changed:
https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression
On Saturday, May 6, 2017 at 11:05:14 PM UTC-4, Mike Dewhirst wrote:
>
> I'm just (slowly) advancing from 1.8 to 1.11 an
Fred
Spot on!Saving to the production database didn't work. It couldn't get
past the atomicity protection in Postgres. I gave up and did it manually
for the fellow who had got himself into that pickle. He loves me now.
It's embarrassing!
We also adjusted the user docs to say the staging serv
1 - 100 of 1454 matches
Mail list logo