This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Check that you inserted "request.POST" as an argument to your form when instantiating the form in your view after the POST. | |
- Add {{ form.errors }} {{ form.non_field_errors }} to the form or debug your view and print them from the debugger. | |
- Examine each form field in the debugger: myform['<fieldname>'].value() | |
- Make sure DEBUG = True so that you'll see any server errors. | |
- Check your server log. | |
- If all else fails, step through the is_valid() call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin pagination(adjacents, numPages, display, currentPage, base) | |
- adjacents = (adjacents || 1) * 1; | |
- numPages = (numPages || 10) * 1; | |
- currentPage = (currentPage || 1) * 1; | |
- base = base || '#'; | |
- display = (display || 7) * 1; | |
ul.pagination | |
if numPages < display + adjacents * 2 | |
- var p = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function allow_upload_rar ($mime_types = array()) { | |
$mime_types['rar'] = 'application/x-rar'; | |
return $mime_types; | |
} | |
add_filter('upload_mimes', 'allow_upload_rar'); |