Re: Import issue

2021-10-01 Thread Malcolm MacKinnon
Is your module included in your installed apps in the settings.py file? On Fri, Oct 1, 2021 at 8:09 PM Sophia Iroegbu wrote: > > I noticed that each time I download a python package and import it. > It imports, it works but once I run my code it runs into an error. > > Error message: ModuleNotFou

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
David I realise I didn't answer your question.I will review everything but the coincidence would be startling.  https://xxx.xxx/admin/chemical/chemical/29/img/icon-yes.svg/changeIf you remove /img/icon-yes.svg from the above url it would be exactly correct for redisplaying the page.I'll dig

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
DavidThank you for responding. That part of the code is - I think - beyond my control. It occurs after saving a record and during display of the success message in the admin change form.That particular svg is the image which gets included in the success message.The same code works perfectly - or

Import issue

2021-10-01 Thread Sophia Iroegbu
I noticed that each time I download a python package and import it. It imports, it works but once I run my code it runs into an error. Error message: ModuleNotFoundError. What do I do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

New to Django

2021-10-01 Thread Richlue Toure
Hi, I want to learn django very well but tutorials like youtube videos, books and pay for online courses are not really satisfying me that much . So if I decide to learn django directly from the documentation will I learn good enough to Intermediate and Advance level ? if yes please help me wit

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread David Nugent
I have some doubt the admin css is related. The css file should provide a path to the image file, relative to its own location in this case - both the css and svg file will be served via whatever is handling your static files (usually an external like nginx etc if in production mode, else by your

Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
In the error message below that "icon-yes.svg" is named in django/contrib/admin/static/admin/css/base.css ul.messagelist li {     display: block;     font-weight: 400;     font-size: 13px;     padding: 10px 10px 10px 65px;     margin: 0 0 10px 0;     background: var(--message-success-bg) url(../