I have imported all my files that is css , js and webfonts and i have 
listed it in my settings.py as this STATIC_ROOT = os.path.join(BASE_DIR, 
'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
]

And then and i aslo used the command python manage.py collectstatic And 
after that i created a base.html and it looks like this :

{%load static %}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{% static 'css/all.css' %}">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
    <!-- Custom -->
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
    <!-- Lightbox -->
    <link rel="stylesheet" href="{% static 'css/lightbox.min.css' %}">


    <title>Rt Real Estate</title>
</head>
 
And even after this my css is not showing in my project , it is not getting 
applied and i would like you to take a look into my code over a zoom call 
or something ,becuase I'm really new to django framenwork and i have no one 
to help me out on this one ,

Please help me out , i can arrange a google meet or a zoom meeting so that 
you can review my whole code and point out my mistakes




On Monday, June 29, 2020 at 2:35:07 PM UTC+5:30, Karan Sahu wrote:
>
> Hi,
> Karan here, I can help you on this. Let me know more issues apart from 
> this will resolve all issues?
>
> Best,
> K
>
> On Mon, Jun 29, 2020 at 2:04 PM 'Ade Enga' via Django users <
> [email protected] <javascript:>> wrote:
>
>> Try adding this to your project's settings.py file (at the bottom):
>>
>> STATIC_URL = '/static/'
>> STATICFILES_DIRS = (
>>     os.path.join(BASE_DIR, "static"),
>> )
>>
>> On Saturday, 27 June 2020 16:55:22 UTC+1, Avi shah wrote:
>>>
>>> Hi my name is Avi 
>>>
>>> Just finished a course from Udemy on django. Unable to import HTML and 
>>> CSS to new project 
>>>
>>> Pls guide me
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6993b8ba-78e1-4cf1-b11c-d22ba13333c1o%40googlegroups.com.

Reply via email to