Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread Saad Olamilekan
load your static by putting space in between the percent and load and after static before percent eg. {% load static %}. On Wed, Jun 30, 2021, 2:56 PM pritam bhutada try ---> {% load staticfiles %} > > On Wednesday, June 30, 2021 at 9:47:46 AM UTC+5:30 ujjwal...@gmail.com > wrote: > >> Dear all

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread pritam bhutada
try ---> {% load staticfiles %} On Wednesday, June 30, 2021 at 9:47:46 AM UTC+5:30 ujjwal...@gmail.com wrote: > Dear all I am facing one problem. > When I am writing {%load static%} rather than getting executed it is > getting displayed as simple text on the HTML output screen > > Please provi

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread shaik sufiyan
Please import os in the settings.py file On Wed, 30 Jun, 2021, 1:02 pm UJJWAL AGRAWAL, wrote: > Dear patel dhruvish > > """ > Django settings for mypro project. > > Generated by 'django-admin startproject' using Django 3.2.4. > > For more information on this file, see > https://docs.djangoprojec

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread jasdeep singh
{% load static %} Give space in % and load On Wed, Jun 30, 2021, 9:47 AM UJJWAL AGRAWAL wrote: > Dear all I am facing one problem. > When I am writing {%load static%} rather than getting executed it is > getting displayed as simple text on the HTML output screen > > Please provide me the solut

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread UJJWAL AGRAWAL
Dear patel DHRUVISH urls.py code is: from django.urls import path from . import views urlpatterns = [ path('',views.home, name='home'), ] On Wed, Jun 30, 2021 at 1:01 PM UJJWAL AGRAWAL wrote: > Dear patel dhruvish > > """ > Django settings for mypro project. > > Generated by 'django-adm

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread UJJWAL AGRAWAL
Dear patel dhruvish """ Django settings for mypro project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.co

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-30 Thread UJJWAL AGRAWAL
Dear Patel Druvish , I have tried with that one Its showing such kind of error when trying to css file Failed to load resource: the server responded with a status of 404 (Not Found) extension.js:24 onMessage extension ial.js:450 Clean the cache of the scraper (new onComplete event) style.css'%%7D

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread ramadhan ngallen
For security purpose these settings should be on debug=True On production you should change those urls to have dedicated server for static files like   Nginx On 30 Jun 2021, 07:28 +0300, patel dhruvish , wrote: > Do you add static code in setting.py and urls.py? Code is here > > Setting.py:-

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread patel dhruvish
You want to add {%load static%} at the top of the code On Wed, Jun 30, 2021, 09:58 patel dhruvish wrote: > Do you add static code in setting.py and urls.py? Code is here > > Setting.py:- > Project urls.py:- > Then load static file with format like:- > > STATICFILES_DIRS = [ > BASE_D

RE: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread yeddu.j.prasad
Hope you have this in the section of your template. {% load static %} {% block head %} {{luserdetails.luserrolename}} | Aspirations {% endblock %} From: django-users@googlegroups.com On Behalf Of UJJWAL AGRAWAL Sent: 30 June 2021 09:47 To: django-users@googlegroups.com

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread patel dhruvish
Do you add static code in setting.py and urls.py? Code is here Setting.py:- Project urls.py:- Then load static file with format like:- STATICFILES_DIRS = [ BASE_DIR / "static", '/var/www/static/', ] Project urls.py:- from django.conf import settingsfrom django.conf.urls.static im