Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from mujahidfa/patch-1
Browse files Browse the repository at this point in the history
Use idiomatic Django to reference static files
  • Loading branch information
girardinsamuel authored May 10, 2022
2 parents e086240 + 3825069 commit f84c111
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ def event_detail(request, id):

```html+django
{% load inertia_tags %}
{% load static %}
<!DOCTYPE html>
<html class="h-full bg-gray-200">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script src="{{ STATIC_URL}}dist/app.js" defer></script>
<link href="{{ STATIC_URL}}dist/app.css" rel="stylesheet" />
<script src="{% static 'dist/app.js' %}" defer></script>
<link href="{% static 'dist/app.css' %}" rel="stylesheet" />
</head>
<body>
{% inertia %}
Expand Down

0 comments on commit f84c111

Please sign in to comment.