CopyPastor

Detecting plagiarism made easy.

Score: 0.8436815956478142; Reported for: String similarity Open both answers

Original Post

Original - Posted on 2023-09-06
by Daniel Lavedonio de Lima



            
Present in both answers; Present only in the new answer; Present only in the old answer;

From [Django's official tutorial][1] (version 4.2):
> For the purposes of this tutorial, we’re using a file named > **background.png**, which will have the full path > **polls/static/polls/images/background.png**. > > Then, add a reference to your image in your stylesheet > (**polls/static/polls/style.css**):
```CSS body { background: white url("images/background.png") no-repeat; } ```
I'd guess that this is the currently preferred method, since they teach it that way.
[1]: https://docs.djangoproject.com/en/4.2/intro/tutorial06/#adding-a-background-image
From [Django's official tutorial][1] (version 4.2):
> For the purposes of this tutorial, we’re using a file named > **background.png**, which will have the full path **polls/static/polls/images/background.png**. > > Then, add a reference to your image in your stylesheet > (**polls/static/polls/style.css**):
```CSS body { background: white url("images/background.png") no-repeat; } ```
I guess this is the preferred method, since they teach it that way. From the same tutorial, they say that the Jinja templating is not available in CSS files:
> The `{% static %}` template tag is not available for use in static files > which aren’t generated by Django, like your stylesheet.
[1]: https://docs.djangoproject.com/en/4.2/intro/tutorial06/#adding-a-background-image

        
Present in both answers; Present only in the new answer; Present only in the old answer;