os module import error

19 views
Skip to first unread message

James Ndubuisi

unread,
May 31, 2021, 11:02:10 AM5/31/21
to django...@googlegroups.com
Good afternoon.
It seems on creating the Django project using django-admin startproject command , the os module isn't imported by default, causing an error.

Antonis Christofides

unread,
May 31, 2021, 11:06:40 AM5/31/21
to django...@googlegroups.com

Hi!

Could you show exactly which command(s) you are running, and the exact error message?

Regards,

Antonis Christofides
+30-6979924665 (mobile)
On 31/05/2021 17.57, James Ndubuisi wrote:
Good afternoon.
It seems on creating the Django project using django-admin startproject command , the os module isn't imported by default, causing an error.
--
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/CAK4ckVVeaT75CAPQWZeD6q6ewraHmaRH07W_6JQRemX6QV%2BXNA%40mail.gmail.com.

Avi shah

unread,
May 31, 2021, 11:18:46 AM5/31/21
to django...@googlegroups.com
you could just add "import os" in settings.py file

On Mon, May 31, 2021 at 8:32 PM James Ndubuisi <jamescn...@gmail.com> wrote:
Good afternoon.
It seems on creating the Django project using django-admin startproject command , the os module isn't imported by default, causing an error.

--
Reply all
Reply to author
Forward
0 new messages