Deploying django in plesk

130 views
Skip to first unread message

frank galan

unread,
Aug 25, 2021, 3:08:52 PM8/25/21
to Django users
Hi everybody.
I've already deployed my app in Plesk, but the process is incomplete, .
The static files not working, I mean the app can not read them.
I know I need put them in the right position, but I can not achieve.
Any help is welcome
thanks a lot in advance

Gabriel Araya Garcia

unread,
Aug 25, 2021, 6:04:42 PM8/25/21
to django...@googlegroups.com
Hi, Frank:
Perhaps that can run if you put the statics folder in the exterior level. Por example:
misite/misite/myapp
In local, I have my statics folder in myapp level, but in hosting I must to put it in:
misite
(fisrts misite)
try it, and tell me how has solve that problem.

Greetings

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




--
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/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com.

Mike Dewhirst

unread,
Aug 25, 2021, 6:29:02 PM8/25/21
to django...@googlegroups.com
Try manage.py collectstatic --settings=path-to-settings

Look up collectstatic in the docs

Mike

--
(Unsigned mail from my phone)

--

S.t_ &_E

unread,
Aug 25, 2021, 6:36:10 PM8/25/21
to Django users
Hello,
Please make sure you have run collectstatic command before deploying. You can follow https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/#static-root-and-static-url.

Reply all
Reply to author
Forward
0 new messages