Re: Serving static files in production

2023-04-27 Thread David Nugent
Don't think I ever used alias for this. You could try something like this (works for me - this is a cut and paste of an existing working config) though you may be a little more constrained with names of directories: server { [... elided] location / { location ~ /static/ {

Re: Is programming in Django intellectually satisfactory

2023-04-27 Thread Sebastian Jung
Yeah but it exists frustrating things. For example left outer join is not easy to make this with django ORM... But for most things you found good and easy solutions... I love django Alec Delaney <96alecpatr...@gmail.com> schrieb am Do., 27. Apr. 2023, 05:28: > I love it > > On Wed, Apr 26, 2023,

Re: Machine learning mailing group

2023-04-27 Thread Gobi Dasu
+1 I would like to learn about more skill and startup focused mailing groups like these, if anyone has suggestions. *Regards,* *Gobi Dasu* (calendar ) *Stanford CS **ยท* *Northwestern HCI* *LD T

Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
I did pip install django on my venv, which is activated, and it reported already installed. But the following modules are reporting the error in the subject line: django.db models django.utils.crypto django.urls django.contrib admin django.shortcuts django.views.generic I don't know what's wrong

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Reddy Tintaya
Should I suppose that it appears like error only in your editor, but the app runs with no problem? I guess the error is that your IDE is not pointing to the correct python interpreter > On 27 Apr 2023, at 16:05, Michael Starr wrote: > > I did pip install django on my venv, which is activated,

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Khaleel Ahmed H. M. Shariff
Hi Michael May Peace, Blessings & Mercy of Almighty God be on you! do you know how to modify the sys.path to add the directory where the listed modules are installed? On Linux/UNIX Execute the find command to locate the directory where the modules are installed and include the same in the path

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
Thank you for the replies. I am overwhelmed right now but will check back on them later. I think you two are right that it's the IDE. It's VSCode (I don't know what version). I was just suspicious b/c there were some strange bugs in my django project. I won't worry about it. If it annoys me I'l