integrate vue cateditor with django

This commit is contained in:
Seth Ladygo
2019-04-01 17:11:11 -07:00
parent 4e99dcd1e0
commit e50258b405
3 changed files with 63 additions and 8 deletions

View File

@ -1,8 +1,29 @@
{% extends 'base.html' %}
{% load staticfiles i18n %}
{% load staticfiles %}
{% load render_bundle from webpack_loader %}
{% block title %}{% trans "Editor"%}{% endblock %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="{% static 'img/favicon.ico' %}" rel="shortcut icon" />
<title>Django Vue Integration</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons">
</head>
<body>
<noscript>
<strong>We're sorry but frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
{% block content %}
<div id="app">
<app></app>
</div>
{% endblock %}
{% render_bundle 'app' %}
<!-- built files will be auto injected -->
</body>
</html>