Sunday, April 30, 2023

Re: Unpaid Internship

sorry for using the list

John Diginee

please see scom.ca for my info



Happy Sunday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email paul@scom.ca

On 2023-04-24 10:26 a.m., John Diginee wrote:
> Dear Sir/Ma'am,
>
> I hope this message finds you well. I am a full-stack software
> engineering student at Holberton School, a Silicon Valley-based software
> engineering institution. I am reaching out to express my interest in an
> unpaid backend intern or junior role at your esteemed company.
>
> My primary goal is to learn from your inspiring and experienced
> developers and gain practical, real-world experience. I am not
> particularly concerned about financial compensation at this time.
>
> I understand that my request may seem unconventional, but I would be
> grateful for any opportunity to work with your company. I am a
> hardworking, persistent, determined, resilient, and fast-learning
> individual, and I am confident that I can contribute positively to your
> team.
>
> Here's my LinkedIn and GitHub profile for your review:
> https://www.linkedin.com/in/johndiginee/
> https://github.com/johndiginee
>
>  Thank you for your precious time and consideration. I look forward to
> hearing from you.
>
> --
> 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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com <https://groups.google.com/d/msgid/django-users/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ca3fe77-2fe1-a0c8-22f9-4ca678ce1b49%40scom.ca.

Re: Unpaid Internship

ok please see scom.ca for contact info

did not realize email was blocked by django users list




Happy Sunday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email paul@scom.ca

On 2023-04-24 10:26 a.m., John Diginee wrote:
> Dear Sir/Ma'am,
>
> I hope this message finds you well. I am a full-stack software
> engineering student at Holberton School, a Silicon Valley-based software
> engineering institution. I am reaching out to express my interest in an
> unpaid backend intern or junior role at your esteemed company.
>
> My primary goal is to learn from your inspiring and experienced
> developers and gain practical, real-world experience. I am not
> particularly concerned about financial compensation at this time.
>
> I understand that my request may seem unconventional, but I would be
> grateful for any opportunity to work with your company. I am a
> hardworking, persistent, determined, resilient, and fast-learning
> individual, and I am confident that I can contribute positively to your
> team.
>
> Here's my LinkedIn and GitHub profile for your review:
> https://www.linkedin.com/in/johndiginee/
> https://github.com/johndiginee
>
>  Thank you for your precious time and consideration. I look forward to
> hearing from you.
>
> --
> 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+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com <https://groups.google.com/d/msgid/django-users/d0247416-15e7-42c2-bf56-54ef95bb6733n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1b7d8dd5-5ea1-e483-ff64-7e77e3e448ee%40scom.ca.

default_renderer is not accessible in BaseForm

Hi all,

I upgraded from Django 3.2 to Django 4.2 and somewhere along the way, access to an overridden default_renderer in my ModelForm has been lost.

settings.py:

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
 
my_app/forms.py:

class MyModelForm(forms.ModelForm):
    default_renderer = CustomRenderer
   
    class Meta:
        model = MyModel

The custom renderer adds some extra divs and formatting with row and column css classes and I only apply it to certain widgets on certain forms within one of my apps. I just point specific widgets to a custom html file.

This worked prior to the upgrade. I think the issue is in the forms api. Each time the code hits the following block in BaseForm.__init__(), renderer is always not none, regardless of if FORM_RENDERER is set explicitly or not:

(line 120 in forms/forms.py)
        # Initialize form renderer. Use a global default if not specified
        # either as an argument or as self.default_renderer.
        if renderer is None:
            if self.default_renderer is None:
                renderer = get_default_renderer()
            else:
                renderer = self.default_renderer
                if isinstance(self.default_renderer, type):
                    renderer = renderer()
        self.renderer = renderer

The code inside the if statement is never reached (granted I have only tried some non-exhaustive combinations).

I can see three solutions to this
1. Override the init in my model form and set renderer = None explicitly, so that the default_renderer is picked up instead (shameless dirty hack)

2. Make pr with a change to look for the default_renderer first:
        # Initialize form renderer. Use a global default if not specified
        # either as an argument or as self.default_renderer.
        if self.default_renderer:
            if isinstance(self.default_renderer, type):
                renderer = self.default_renderer()
            else:
                renderer = self.default_renderer
        elif renderer is None:
                renderer = get_default_renderer()
        self.renderer = renderer

3. change the project settings in the event that I have missed some crucial change between 3.2 and 4.2 that explains why the renderer is always not not in the BaseForm init.

I'd appreciate any help from any forms api experts that can point me in the right direction.

Cheers,
Ryan.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ef5146e1-4ee4-408e-967f-33e748b1092an%40googlegroups.com.

Saturday, April 29, 2023

Re: No module name 'taggit'

Try to re create the virtual env and install all the packages again including taggit.

On Sun, Apr 30, 2023, 3:36 AM Awobode Emmanuel <awobodeemmanuel17@gmail.com> wrote:
I re-installed several times and kept getting the same error. 

On Sat, Apr 29, 2023, 11:02 PM ALBERT ASHABA AHEEBWA <ashabaaheebwaalbert@gmail.com> wrote:
This happened to me once, there was nothing major done to fix it.

This is what I did:
_Reinstall the package
_When you start typing the import, let the editor auto complete on it's own.



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Sun, 30 Apr 2023, 00:47 Awobode Emmanuel, <awobodeemmanuel17@gmail.com> wrote:
I am to add tag functionality by installing django-taggit. I did so, added taggit to INSTALLED_APPS and updated my models.py file. But I get an error of 'No module name "taggit" when I  run makemigrations'. When I did 'pip freeze', taggit is present in the listed packages. Can someone help me out with this

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJD8v6x3c-DVCbhPMvupfb2KBgKebQtfscVc9de94xiG%2BvLu%3Dg%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAQecPdNByPBO9XVRvgt-ertxN06Vzh5xscs304zdpVoJLxe8A%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJD8v6zzRP1EziSQzKP3di29v_aFySksZtvzXEoLUfzE0V2QgQ%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BZJHEqdjY7EXm5YHncz3S5XobKSvbe0ei6QC7N98Bxx8BWUHg%40mail.gmail.com.

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

And yeah, django is installed in the venv.
Michael

On Saturday, April 29, 2023 at 10:40:01 AM UTC-7 Michael Starr wrote:
Thanks. I already have a venv, to answer the first post, and the second, yes, it says 3.11.2. I think VSCode just has a bug. It doesn't bother me and my app works in all other respects. Thank you for the input.

Michael

On Friday, April 28, 2023 at 7:11:57 AM UTC-7 ALBERT ASHABA AHEEBWA wrote:
This is a wild suggestion, but as someone here mentioned, your vscode might be pointing to the wrong interpreter.

Check at the bottom bar of your vscode with a .py file open. Next to {}python you should see what environment you are using. 

eg. 3.11.3 64-bit or 3.11.3('.venv':venv)

The latter is what you are looking for. If it's not, click on whatever is there and on popup, select the appropriate. 



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Thu, 27 Apr 2023, 23:48 Michael Starr, <michaelst...@gmail.com> wrote:
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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f310b434-83df-44ed-b847-0676d36c3441n%40googlegroups.com.

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

Thanks. I already have a venv, to answer the first post, and the second, yes, it says 3.11.2. I think VSCode just has a bug. It doesn't bother me and my app works in all other respects. Thank you for the input.

Michael

On Friday, April 28, 2023 at 7:11:57 AM UTC-7 ALBERT ASHABA AHEEBWA wrote:
This is a wild suggestion, but as someone here mentioned, your vscode might be pointing to the wrong interpreter.

Check at the bottom bar of your vscode with a .py file open. Next to {}python you should see what environment you are using. 

eg. 3.11.3 64-bit or 3.11.3('.venv':venv)

The latter is what you are looking for. If it's not, click on whatever is there and on popup, select the appropriate. 



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Thu, 27 Apr 2023, 23:48 Michael Starr, <michaelst...@gmail.com> wrote:
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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8bfb55ff-a550-4fe1-9ec5-73074f3de264n%40googlegroups.com.

Friday, April 28, 2023

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

This is a wild suggestion, but as someone here mentioned, your vscode might be pointing to the wrong interpreter.

Check at the bottom bar of your vscode with a .py file open. Next to {}python you should see what environment you are using. 

eg. 3.11.3 64-bit or 3.11.3('.venv':venv)

The latter is what you are looking for. If it's not, click on whatever is there and on popup, select the appropriate. 



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Thu, 27 Apr 2023, 23:48 Michael Starr, <michaelstarr.coding@gmail.com> wrote:
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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAQecPex9WvQ%3D4Yq3UKQPiY9U8otmNvRwpwTkfekzcsZeV8xNg%40mail.gmail.com.

Re: Django ORM: move filter after annotate subquery

I found a way to achieve the results I want: applying a filter, `date_created__lte` in this example, outside of annotated query:

sub = Model.objects.all() \
  .annotate(ord=Window(
    expression=RowNumber(),
    partition_by=F('related_id'),
    order_by=[F('date_created').desc()] ) ) \
   .filter(ord=1)

result = Model.objects.all() \
  .filter(id__in=sub.values_list('id')) \
  .filter(date_created__lte=some_datetime)

However, this is not a code I want, it's bad from performance point of view due to HASH JOIN. Of course, I can write a raw SQL query, parse values by Django ORM, but this looks too heavy for a simple nested subquery. So, a better version is appreciated 🙏


On Friday, April 28, 2023 at 4:52:16 PM UTC+3 Aivan Fouren wrote:

This Django ORM statement:

Model.objects.all() \
  .annotate( ord=Window(
     expression=RowNumber(), 
     partition_by=F('related_id'),
     order_by=[F("date_created").desc()] 
  ) \
  .filter(ord=1) \
  .filter(date_created__lte=some_datetime)

Leads to the following SQL query:

SELECT *
FROM (
  SELECT
    id, related_id, values, date_created ROW_NUMBER() OVER (
      PARTITION BY related_id ORDER BY date_created DESC
    ) AS ord
  FROM model_table
  WHERE date_created <= 2022-02-24 00:00:00+00:00
)
WHERE ord = 1;

As you can see, the `date_created__lte` filter gets applied on the inner query. Is it possible to control statement location preciser and move the filter outside, like `ord`?


I also asked this on StackOverflow, got an advice to use `Subquery` object, but as far as I know this class is used for filtering or annotated selecting values (SQL SELECT, WHERE), but I need a subquery to use inside FROM statement, so that I can postprocess calculated results.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9afee8b7-ccb3-4143-8fc5-af05626c6e8en%40googlegroups.com.

Thursday, April 27, 2023

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

If you felt the problem was vs code, I have a suggestion. Try it out and if it works, get back to me.
Open your comman prompt terminal and input
Python -m venv venv (press enter)
Venv/static/activate (press enter)
Then install django again

On Fri, Apr 28, 2023, 3:27 AM Michael Starr <michaelstarr.coding@gmail.com> wrote:
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'll redirect the pointers.

Michael

On Thursday, April 27, 2023 at 3:27:31 PM UTC-7 Khaleel Ahmed H. M. Shariff wrote:
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

On windows 
Execute the dir/s to locate the directory where the modules are installed and include the same in the path

Best of luck

God Bless You!
God Bless India!!

--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

+91-9845007864

Taming Python

https://www.amazon.in/Taming-Python-comfortable-writing-Scripts-ebook/dp/B08T6PQG7M

-----------------------------------------------------------------------

Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread mischief in the land - it would be as if he killed all mankind, & if anyone saved a life, it would be as if he saved the life of all mankind.


On Fri, 28 Apr 2023 at 2:54 AM, Reddy Tintaya <rtin...@momnt.com> wrote:
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 <michaelst...@gmail.com> wrote:

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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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...@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52f5968e-2e0d-4f64-8fb3-5bbd2ef70bean%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALRYqKgu5HL8e3byiQQ4aam46kSzWHPkJtk3GuCLPWg%2BPw7cxw%40mail.gmail.com.

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

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'll redirect the pointers.

Michael

On Thursday, April 27, 2023 at 3:27:31 PM UTC-7 Khaleel Ahmed H. M. Shariff wrote:
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

On windows 
Execute the dir/s to locate the directory where the modules are installed and include the same in the path

Best of luck

God Bless You!
God Bless India!!

--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

+91-9845007864

Taming Python

https://www.amazon.in/Taming-Python-comfortable-writing-Scripts-ebook/dp/B08T6PQG7M

-----------------------------------------------------------------------

Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread mischief in the land - it would be as if he killed all mankind, & if anyone saved a life, it would be as if he saved the life of all mankind.


On Fri, 28 Apr 2023 at 2:54 AM, Reddy Tintaya <rtin...@momnt.com> wrote:
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 <michaelst...@gmail.com> wrote:

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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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...@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52f5968e-2e0d-4f64-8fb3-5bbd2ef70bean%40googlegroups.com.

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

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

On windows 
Execute the dir/s to locate the directory where the modules are installed and include the same in the path

Best of luck

God Bless You!
God Bless India!!

--

Love & Regards
Dr. (h.c.) Khaleel Ahmed H. M.

+91-9845007864

Taming Python

https://www.amazon.in/Taming-Python-comfortable-writing-Scripts-ebook/dp/B08T6PQG7M

-----------------------------------------------------------------------

Human Life is Precious
Koran Surah Ma'idah Chapter 5 Verse 32:
If anyone killed a person, not in retaliation of murder, or (and) to spread mischief in the land - it would be as if he killed all mankind, & if anyone saved a life, it would be as if he saved the life of all mankind.


On Fri, 28 Apr 2023 at 2:54 AM, Reddy Tintaya <rtintaya@momnt.com> wrote:
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 <michaelstarr.coding@gmail.com> wrote:

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. My server runs in development mode (not in production yet), but there havev been some bugs that are hard to imagine are caused by this, but still (images not loading, CSS not loading).

Thanks.

Michael


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7977c43-90ef-4423-bb36-07c550bfda52n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2FFAC08F-0BC9-44B6-98B2-97A8978AB3DC%40momnt.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMjBbiBJZcKp%2Be%3DXtRpzjQWoMddtsjbH3sOhg1GiAKhnEP%2BzDg%40mail.gmail.com.