[Django]-BOOTSTRAP // not working despite adding cdn links and reference style link // PYTHON

2👍

Add this to the settings.py file:

STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'),]

0👍

<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

putting this within the head tag, solved the problem for me.

👤snpd

Leave a comment