Tuesday, September 27, 2022

Re: Hello

Share your dockerfile, looks like more of Workdir not set properly 

On Tue, Sep 27, 2022, 8:11 PM Balogun Awwal <awwalbalogun06@gmail.com> wrote:
Help please 

On Tuesday, September 27, 2022, Prabakaran Balaji <prabu.b141@gmail.com> wrote:
Hello Folks,

I tried to set the permission on app directory, but still facing the same problem. Any additional thoughts?



Thanks and regards,
Prabakaran


On Mon, Sep 26, 2022 at 10:04 PM sham khan <shamim27khan@gmail.com> wrote:
You need to assign a permission(chown of the folder /app)

On Monday, September 26, 2022 at 6:32:05 PM UTC+5:30 makza...@gmail.com wrote:
My number is+91 99301 02832
From: django...@googlegroups.com <django...@googlegroups.com> on behalf of Yeboah Dominic <yebo...@gmail.com>
Sent: Monday, September 26, 2022 10:27:31 PM
To: django...@googlegroups.com <django...@googlegroups.com>
Subject: Re: Starting Django project with Docker
 
I think you have to give that user permission.
Like 'sudo chown -R root:root /home/dominic/app' or sudo chown -R dominic:dominic /home/dominic/app


 

On Mon, 26 Sept 2022 at 08:12, Prabakaran Balaji <prabu...@gmail.com> wrote:
Hello Django Geeks,

Looking for geeks' insight for docker related issues. I'm not able to run the command "docker-compose run --rm app sh -c "django-admin startproject app ."

Error - 
Traceback (most recent call last):
  File "/py/bin/django-admin", line 8, in <module>
    sys.exit(execute_from_command_line())
  File "/py/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/py/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/py/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/py/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/py/lib/python3.9/site-packages/django/core/management/commands/startproject.py", line 21, in handle
    super().handle('project', project_name, target, **options)
  File "/py/lib/python3.9/site-packages/django/core/management/templates.py", line 160, in handle
    with open(new_path, 'w', encoding='utf-8') as new_file:
PermissionError: [Errno 13] Permission denied: '/app/manage.py'

Attaching docker related files and directory structure screenshot.
image.png


Will be waiting for your valuable inputs.

--
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/CAK7fxT-m%3D5LMFF%2ByikZ6571eSo3xMuyc6ZGDtLtrE4fd_naz%2BA%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...@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/64ba60af-a61a-48e2-b6cf-e6e3bd8f82f6n%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/CAK7fxT_YfXuD68EPRiegtF24-foU7nED5uZJ6xLu5qvo7EzPhw%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/CAJ434RvPVRHF40BHiF%2B0eHxf8%2BZjEiDt%2BzzDUwcHWdpL%2BHB7CQ%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/CAA7J1XtFGKwa%2Bc%3D7AJ%3De3ckuE1r4L%3DwpbTpt3YbSd%2BL4xNDgxA%40mail.gmail.com.

No comments:

Post a Comment