Re: Admin access

2024-01-23 Thread Boaz Sottie
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

Re: Admin

2023-05-05 Thread Flavio Munita
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

Re: Admin

2023-05-05 Thread Omkkar Potddar
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

Re: Admin foreign key widgets Dont quote Keys that the unicode of the Primary key (value=number) is a special character.

2023-02-13 Thread Dev Femi Badmus
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

Re: Admin validation activated just once after final call to save_model()

2023-01-18 Thread David Wallace
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

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Mike Dewhirst
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()

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Mike Dewhirst
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

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Sebastian Jung
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

Re: Admin TypeError - Cannot call delete() after .distinct()

2021-07-02 Thread Jason
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

Re: Admin layout getting too bulky - what to do?

2021-05-05 Thread Mike Dewhirst
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 (

Re: Admin layout getting too bulky - what to do?

2021-05-05 Thread Derek
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

Re: Admin layout getting too bulky - what to do?

2021-05-04 Thread Mike Dewhirst
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

Re: Admin layout getting too bulky - what to do?

2021-05-04 Thread Mike Dewhirst
.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."

Re: Admin layout getting too bulky - what to do?

2021-05-03 Thread Chetan Ganji
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

Re: Admin layout getting too bulky - what to do?

2021-05-03 Thread Mike Dewhirst
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: Admin layout getting too bulky - what to do?

2021-05-03 Thread Derek
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-

Re: Admin layout getting too bulky - what to do?

2021-05-02 Thread Mike Dewhirst
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

Re: Admin help class CSS

2020-12-11 Thread Mike Dewhirst
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'

Re: Admin help class CSS

2020-12-11 Thread Larry Martell
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

Re: Admin help class CSS

2020-12-11 Thread Mike Dewhirst
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

Re: Admin help class CSS

2020-12-11 Thread Joash Monda
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.

Re: Admin help class CSS

2020-12-11 Thread Joash Monda
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

Re: Admin site's css doesn't work.

2020-09-19 Thread Ogunsanya Opeyemi
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

Re: Admin site's css doesn't work.

2020-09-18 Thread English Learning
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

Re: Admin site's css doesn't work.

2020-09-17 Thread Ankit Gadewal
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

Re: Admin site's css doesn't work.

2020-09-17 Thread Omkar Parab
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

Re: Admin list sorting problem

2020-07-31 Thread Mike Dewhirst
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

Re: Admin list sorting problem

2020-07-30 Thread Derek
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 "

Re: Admin list sorting problem

2020-07-30 Thread Derek
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"

Re: Admin login problem

2020-02-26 Thread Naveen Arora
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

Re: Admin login problem

2020-02-26 Thread Naveen Arora
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

Re: Admin Panel

2020-01-11 Thread Derek
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: >

Re: Admin Panel

2020-01-09 Thread Motaz Hejaze
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 > > -

Re: Admin form in intermediate page

2019-11-21 Thread Thiago Luiz Parolin
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

Re: Admin form in intermediate page

2019-11-20 Thread Derek
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

Re: Admin site error reporting

2019-10-23 Thread Derek
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 &

Re: Admin site error reporting

2019-10-23 Thread Dieter Gyselinck
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

Re: Admin site error reporting

2019-10-23 Thread Derek
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

Re: Admin form_url breakout problem

2019-02-15 Thread Mike Dewhirst
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

Re: Admin form_url breakout problem

2019-02-12 Thread Mike Dewhirst
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

Re: Admin form_url breakout problem

2019-02-10 Thread Mike Dewhirst
/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

RE: Admin form_url breakout problem

2019-02-04 Thread Matthew Pava
_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

Re: Admin form_url breakout problem

2019-02-02 Thread Mike Dewhirst
-- 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

Re: Admin form_url breakout problem

2019-02-01 Thread Mike Dewhirst
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

Re: Admin form_url breakout problem

2019-02-01 Thread Mike Dewhirst
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

Re: Admin form_url breakout problem

2019-01-29 Thread Mike Dewhirst
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

RE: Admin form_url breakout problem

2019-01-28 Thread Matthew Pava
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

Re: Admin form_url breakout problem

2019-01-25 Thread Mike Dewhirst
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

RE: Admin form_url breakout problem

2019-01-25 Thread Matthew Pava
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

Re: Admin form_url breakout problem

2019-01-25 Thread Mike Dewhirst
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!

Re: Admin form_url breakout problem

2019-01-24 Thread Mike Wyatt
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

Re: Admin form_url breakout problem

2019-01-24 Thread Mike Dewhirst
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

RE: Admin form_url breakout problem

2019-01-24 Thread Matthew Pava
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

Re: Admin form_url breakout problem

2019-01-23 Thread Mike Dewhirst
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

RE: Admin form_url breakout problem

2019-01-23 Thread Matthew Pava
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

Re: Admin form_url breakout problem

2019-01-23 Thread Mike Dewhirst
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

RE: Admin form_url breakout problem

2019-01-23 Thread Matthew Pava
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

Re: Admin problem launching a non-Admin page

2019-01-15 Thread Mike Dewhirst
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

Re: Admin problem launching a non-Admin page

2019-01-15 Thread Derek
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-12-12 Thread Theodore D
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

Re: admin django wrong encoding

2018-08-18 Thread Jason
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-20 Thread Melvyn Sopacua
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-18 Thread Kayode Oladipo
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,

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-16 Thread Jason
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-16 Thread mottaz hejaze
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-16 Thread Jason
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-15 Thread Gerald Brown
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

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-15 Thread Gerald Brown
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-06-27 Thread Pato
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

Re: Admin site and Model

2018-05-04 Thread Fidel Leon
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

Re: Admin site and Model

2018-05-04 Thread Harish Soni
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

Re: Admin site and Model

2018-05-04 Thread Fidel Leon
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

Re: Admin site and ModelAdmin

2018-05-03 Thread Mike Dewhirst
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

Re: Admin site and ModelAdmin

2018-05-03 Thread jt . oldnews
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

Re: Admin site and ModelAdmin

2018-05-02 Thread Mike Dewhirst
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

Re: Admin site and ModelAdmin

2018-05-02 Thread Mike Dewhirst
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread team . readerspoint
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: > >> > >> > >>

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread team . readerspoint
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-

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread emepe
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

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread emepe
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 >

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
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, > >

Re: Admin Master-Detail: Dynamically filter selections in detail

2018-02-11 Thread Melvyn Sopacua
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

Re: Admin case-insensitive sorting question

2018-01-10 Thread Mike Dewhirst
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

Re: Admin case-insensitive sorting question

2018-01-10 Thread Mike Dewhirst
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

RE: Admin case-insensitive sorting question

2018-01-10 Thread Matthew Pava
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

Re: Admin adding images to blog via the admin section

2017-12-23 Thread carlos
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

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-29 Thread Matemática A3K
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

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-29 Thread Jan Hartman
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

Re: Admin many-to-many inlines - show editable fields from parent models

2017-11-28 Thread Matemática A3K
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). > >

Re: Admin css question for 1.10.7

2017-05-09 Thread Melvyn Sopacua
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

Re: Admin css question for 1.10.7

2017-05-09 Thread Mike Dewhirst
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:

Re: Admin css question for 1.10.7

2017-05-08 Thread Mike Dewhirst
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

Re: Admin css question for 1.10.7

2017-05-08 Thread Melvyn Sopacua
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

Re: Admin css question for 1.10.7

2017-05-08 Thread Tim Graham
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/

Re: Admin css question for 1.10.7

2017-05-07 Thread Mike Dewhirst
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

Re: Admin css question for 1.10.7

2017-05-07 Thread Mike Dewhirst
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

Re: Admin css question for 1.10.7

2017-05-07 Thread Tim Graham
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

Re: Admin - saveasnew to another database

2017-01-02 Thread Mike Dewhirst
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   2   3   4   5   6   7   8   9   10   >