Static file - java script - not found

22 views
Skip to first unread message

bodyabd...@gmail.com

unread,
Sep 7, 2022, 5:19:38 PM9/7/22
to Django users
Dear All;
I've problem in static folder , the file js not found 

static.png
setting-py.png

Lakshyaraj Dash

unread,
Sep 7, 2022, 6:51:06 PM9/7/22
to django...@googlegroups.com
Listen you need to configure your sales app inside the installed apps like 'sales.apps.SalesConfig' and remove the line 'BASE_DIR / sales / static' from the STATIFILES_DIRS.

Thanks and regards
Lakshyaraj Dash

On Thu, Sep 8, 2022, 02:49 bodyabd...@gmail.com <bodyabd...@gmail.com> wrote:
Dear All;
I've problem in static folder , the file js not found 

--
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/191f5b42-a186-4ca7-ba5e-de441e4dc7f2n%40googlegroups.com.

Ezekiel Obiajulu

unread,
Sep 7, 2022, 7:22:23 PM9/7/22
to Django users
There is an error in staticfiles_dirs 
Message me on WhatsApp for further corrections ... 
Use that code 
STATIC_URL = 'static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]

remember to:
import os
at the top 

+2349033768504 (WhatsApp only)

Ezekiel Obiajulu

unread,
Sep 7, 2022, 7:22:23 PM9/7/22
to Django users
Use this code Annotation 2022-09-07 231453.png remember to:
import os at the top 

On Wednesday, September 7, 2022 at 10:19:38 PM UTC+1 bodyabd...@gmail.com wrote:

Lakshyaraj Dash

unread,
Sep 7, 2022, 7:26:23 PM9/7/22
to django...@googlegroups.com
His configurations are correct os module is not compulsory... because the BASE_DIR is already configured...

--
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.
Reply all
Reply to author
Forward
0 new messages