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
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
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
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
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 ='
5 matches
Mail list logo