How to run django-helpdesk in visual studio code or ubuntu 20.04

101 views
Skip to first unread message

Azharul Islam Somon

unread,
Mar 10, 2021, 8:54:26 AM3/10/21
to Django users

I clone the the https://github.com/django-helpdesk/django-helpdesk and install all the requirement, but i am not understanding the way to run in my local environment. I am getting this type of output, how to run?

Thanks in advance.
error.png

Kasper Laudrup

unread,
Mar 10, 2021, 9:50:25 AM3/10/21
to django...@googlegroups.com
Have you considered trying to follow the instructions on the frontpage
of the repository you have cloned?

It is very clearly written in the README.

Kind regards,

Kasper Laudrup

Azharul Islam Somon

unread,
Mar 13, 2021, 12:23:22 AM3/13/21
to django...@googlegroups.com
I have successfully run on my local matching. I start installing with "pip install django-helpdesk " and followed rest of the step and from https://django-helpdesk.readthedocs.io/en/0.2.x/install.html but there is one error for "

step 5 : Inside your MEDIA_ROOT folder, inside the helpdesk folder, is a folder called attachments. Ensure your web server software can write to this folder - something like this should do the trick:

chown www-data:www-data attachments/
chmod 700 attachments

In my project there have no file name attachments And i am getting runtime permission error. I have added the error screenshot.

Note: There is no file as name attachments for this reason i am not able to give permission.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/rO8c7AnsvWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8e084664-bc5d-6088-cbed-c944f943295a%40stacktrace.dk.
permission error.PNG

Kasper Laudrup

unread,
Mar 13, 2021, 5:20:20 AM3/13/21
to django...@googlegroups.com
On 13/03/2021 06.22, Azharul Islam Somon wrote:
> I have successfully run on my local matching. I start installing with
> "|pip install django-helpdesk| " and followed rest of the step and from
> https://django-helpdesk.readthedocs.io/en/0.2.x/install.html
> <https://django-helpdesk.readthedocs.io/en/0.2.x/install.html> but there
> is one error for "
>
> step 5 : Inside your |MEDIA_ROOT| folder, inside the |helpdesk| folder,
> is a folder called |attachments|. Ensure your web server software can
> write to this folder - something like this should do the trick:
>
> chown www-data:www-data attachments/
> chmod 700 attachments
>
> " 
> In my project there have no file name |attachments And i am getting
> runtime permission error. I have added the error screenshot.
> |
> |
> |
> |Note: There is no file as name attachments for this reason i am not
> able to give permission.
> |
>

It looks like you have configured your MEDIA_ROOT to point to
STATIC_ROOT or something like that. Either in your own Django
application or in the configuration of django-helpdesk.

STATIC_ROOT is not supposed to be writable, so that's why you get the error.

Ensure that you have configured your MEDIA_ROOT correctly and that
should most likely fix the issue.

Kind regards,

Kasper Laudrup

Azharul Islam Somon

unread,
Mar 13, 2021, 7:17:19 AM3/13/21
to django...@googlegroups.com
Thank you for your reply. I have set up my MEDIA_ROOT as like : MEDIA_ROOT = os.path.join(BASE_DIR,'/static/images')

What should I change, please? 

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/rO8c7AnsvWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
media url.PNG

Kasper Laudrup

unread,
Mar 13, 2021, 8:31:29 AM3/13/21
to django...@googlegroups.com
On 13/03/2021 13.16, Azharul Islam Somon wrote:
> Thank you for your reply. I have set up my MEDIA_ROOT as like :
> MEDIA_ROOT = os.path.join(BASE_DIR,'/static/images')
>
> What should I change, please? 
>

That's up to you to decide, but you don't want it to be the same path as
your static files.

This might help:

https://overiq.com/django-1-10/handling-media-files-in-django/

But there's tons of other documentation on how to handle static files
and media files in Django as well including the official documentation.

I suggest you read up a bit on that to understand what's going on.

Kind regards,

Kasper Laudrup

Azharul Islam Somon

unread,
Mar 13, 2021, 10:52:54 PM3/13/21
to django...@googlegroups.com
Ok ,
Thank you so much.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/rO8c7AnsvWs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages