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 setti

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
rote: > >> 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

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
tatic(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) > > > Then load static file with format like:- > > {% load static %} > > > > > On Wed, Jun 30, 2021, 09:47 UJJWAL AGRAWAL wrote: > >> Dear all I am facing one problem. >> When I am writing {%load st

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

2021-06-29 Thread UJJWAL AGRAWAL
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 solution. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Facing problem to display dynamic (name,description of places AND price)on the web page using Django

2021-06-03 Thread UJJWAL AGRAWAL
Dear team I am facing a problem with error While writing this code ERROR IS: RETURN OUTSIDE FUNCTION Please help me solving this issue. from django.shortcuts import render from .models import Destination # Create your views here. def index(request): dest1 = Destination() dest1.name ='