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:
Raony Guimarães 2016-11-04 14:52:29 +00:00 committed by Johannes Hoppe
parent f03d7d44a8
commit fb3bc19595
2 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'DIRS': ['templates'],
},
]

View File

@ -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>