Fix Test suite for Django 1.10+
* Fix template dir This is necessary to make your example work! * Fix Jquery2 url
This commit is contained in:
parent
f03d7d44a8
commit
fb3bc19595
|
@ -37,6 +37,7 @@ TEMPLATES = [
|
|||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'APP_DIRS': True,
|
||||
'DIRS': ['templates'],
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
{{ form }}
|
||||
<input type="submit" value="Submit Form"/>
|
||||
</form>
|
||||
<script src="{% static '//code.jquery.com/jquery-2.1.4.min.js' %}"></script>
|
||||
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.onerror = function (msg) {
|
||||
$("body").attr("JSError", msg);
|
||||
}
|
||||
</script>
|
||||
{{ form.media.js }}
|
||||
</body>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue