Re: Unable to import HTML code

2020-07-05 Thread Akinfolarin Stephen
i guess the problem is syntax error in your load static at the top of the
page put a spce between the percentage sign and the load
below is a clearer explanation:
your load static looks like this {%load static %} then change it to this {%
load static %} the difference is that there is space between  the sign %
and the LOAD keyword

On Sun, Jul 5, 2020 at 10:53 PM 'Akash Sinha' via Django users <
django-users@googlegroups.com> wrote:

>
> In your settings.py file you have to mention your static path , please
> check if you have mentioned that. 2nd if everything is good . Try to access
> that css file on the browser .start the server with python manage.py
> runserver and type the full path of the file in
> url,("localhost:8000/static/style.css") if you can see your css code on
> browser then u have check ur html file.
>
> 1. Check for static tag in html file  i.e {% load static % }
>
> 2. static path in html file
>
>
> On Sun, 28 Jun 2020 at 12:29 am, Avi shah
>  wrote:
> I have developed a front end using bootstrap and different themes , and
> now I want to convert it into django html , I've loaded the static files
> and mentioned all the templates sec in my settings.py but for some reason
> my css is not being shown on the project even though it's been collected
> using collectstatic in manage.py
>
>
> --
> 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+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/50077ad1-eacb-4584-9566-dede788826aco%40googlegroups.com.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2129713194.2118202.1593939180763%40mail.yahoo.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFujGLzu4DRkgRrG0GjKSgQN0wkTWRjkw6MWadfc4hgYYdn3Vg%40mail.gmail.com.


Re: Unable to import HTML code

2020-07-05 Thread 'Akash Sinha' via Django users

In your settings.py file you have to mention your static path , please check if 
you have mentioned that. 2nd if everything is good . Try to access that css 
file on the browser .start the server with python manage.py runserver and type 
the full path of the file in url,("localhost:8000/static/style.css") if you can 
see your css code on browser then u have check ur html file.
1. Check for static tag in html fileĀ  i.e {% load static % }
2. static path in html file
 
 
  On Sun, 28 Jun 2020 at 12:29 am, Avi shah wrote:   I have 
developed a front end using bootstrap and different themes , and now I want to 
convert it into django html , I've loaded the static files and mentioned all 
the templates sec in my settings.py but for some reason my css is not being 
shown on the project even though it's been collected using collectstatic in 
manage.py 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50077ad1-eacb-4584-9566-dede788826aco%40googlegroups.com.
  

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2129713194.2118202.1593939180763%40mail.yahoo.com.


Re: Unable to import HTML code

2020-06-29 Thread RANGA BHARATH JINKA
Hi,

I want to give some steps to go through.

   1. Try to close the server and run again.
   2. Hard reload the page using ctrl+shift+r and check the console for any
errors like css file not found.
   3. Check whether the file is linking properly to the correct location in
static folder.

All the best

On Mon, Jun 29, 2020 at 3:22 PM Avi shah  wrote:

> 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 %}
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> Rt Real Estate
> 
>
> 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 <
>> django...@googlegroups.com> 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 django...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6993b8ba-78e1-4cf1-b11c-d22ba1c1o%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317gqsw20BeqG617eH2o%2BS1WQeA-1kedGFfTOGOEJnbZ_w%40mail.gmail.com.


Re: Unable to import HTML code

2020-06-29 Thread Avi shah
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 %}
















Rt Real Estate

 
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 <
> django...@googlegroups.com > 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 django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com
>>  
>> 
>> .
>>
>

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


Re: Unable to import HTML code

2020-06-29 Thread Karan Sahu
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 <
django-users@googlegroups.com> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOWRdhD6BfaX5X3L5%3DM%3DB%2B7M7hsN9-VMvu1YGs3UmgAHcZVZww%40mail.gmail.com.


Re: Unable to import HTML code

2020-06-29 Thread 'Ade Enga' via Django users
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%40googlegroups.com.


Re: Unable to import HTML code

2020-06-28 Thread Avi shah
I did everything , its still not showing up

On Sunday, June 28, 2020 at 6:31:02 AM UTC+5:30, Ajish Gopinath wrote:
>
> Create view.py and url.py to include HTML page or template 
>
> On Sat 27 Jun, 2020, 9:25 PM 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 django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e18f8262-fad9-4195-a3ad-51025e34913eo%40googlegroups.com
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/544c66ce-354a-4a8b-9b56-22932fa1a503o%40googlegroups.com.


Re: Unable to import HTML code

2020-06-27 Thread Ajish Gopinath
Create view.py and url.py to include HTML page or template

On Sat 27 Jun, 2020, 9:25 PM 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e18f8262-fad9-4195-a3ad-51025e34913eo%40googlegroups.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJAEYmbM2CDpnC9auu_-L6Laer9iiW3qkdWAkLkKsLwecnH_hA%40mail.gmail.com.


Re: Unable to import HTML code

2020-06-27 Thread Avi shah
Even I am facing the same problem

On Saturday, June 27, 2020 at 9:58:06 PM UTC+5:30, mohamed khaled wrote:
>
> What do you want exactly ? do you mean all static files do you want to 
> import it from old project to new project ?? 
>
> On Sat, 27 Jun 2020 at 17:54, 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 django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e18f8262-fad9-4195-a3ad-51025e34913eo%40googlegroups.com
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7cc88c66-4f1d-4ff4-a661-052a4d799f89o%40googlegroups.com.


Re: Unable to import HTML code

2020-06-27 Thread Avi shah
I have developed a front end using bootstrap and different themes , and now I 
want to convert it into django html , I've loaded the static files and 
mentioned all the templates sec in my settings.py but for some reason my css is 
not being shown on the project even though it's been collected using 
collectstatic in manage.py 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50077ad1-eacb-4584-9566-dede788826aco%40googlegroups.com.


Re: Unable to import HTML code

2020-06-27 Thread Avi shah
No, I have created 1 static website in html and now I want to import it in 
django new project

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dad11c95-02bc-42c0-b7d0-6f53eccb3368o%40googlegroups.com.


Re: Unable to import HTML code

2020-06-27 Thread mohamed khaled
What do you want exactly ? do you mean all static files do you want to
import it from old project to new project ??

On Sat, 27 Jun 2020 at 17:54, 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e18f8262-fad9-4195-a3ad-51025e34913eo%40googlegroups.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvPq4J1VPA9ot4sJKFn9AF2sAT%3DO%2BJECaxQnZJy51UvVx9GKA%40mail.gmail.com.