Skip to content

Commit 8352af4

Browse files
author
Andres Vargas
committed
generate token
1 parent 980f869 commit 8352af4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
2727

28-
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'pingcrm.fly.dev', "inertia.opensrc.mx"]
28+
ALLOWED_HOSTS = ['localhost', '128.0.0.1', 'pingcrm.fly.dev', "inertia.opensrc.mx"]
2929

3030

3131
# Application definition

demo/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
{% js_routes %}
77
<script src="{{ STATIC_URL}}dist/app.js" defer></script>
88
<link href="{{ STATIC_URL}}dist/app.css" rel="stylesheet" />
9-
109
</head>
1110
<body class="font-sans leading-none text-gray-700 antialiased">
11+
{% csrf_token %}
1212
{{ page|json_script:"page" }}
1313
<div id="app">
1414
</div>

fabfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ def deploy(ctx):
77
with ctx.cd("apps/django-inertia-demo"):
88
ctx.run("git pull")
99
ctx.run("pip install -r requirements.txt")
10+
ctx.run("python manage.py migrate")
11+
ctx.run("python populate.py")
1012
ctx.run("python manage.py collectstatic --noinput")
11-
ctx.sudo("supercvisorctl restart inertia")
13+
ctx.run("sudo supervisorctl restart inertia")
1214

1315

1416

0 commit comments

Comments
 (0)