Changes between Version 49 and Version 50 of NewbieMistakes
- Timestamp:
- Dec 10, 2012, 7:38:17 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewbieMistakes
v49 v50 28 28 Note that Django now attempts to catch this problem, as of [3109]. 29 29 30 == Your forms doesn't upload files == 31 32 ==== Symptom ==== 33 34 You have {{{FileField()}}} and {{{ImageField()}}} fields in your form and the files are not uploaded when you submit this form 35 36 ==== Probable cause ==== 37 38 You might be missing the {{{request.FILES}}} argument when intantiate your {{{Form}}} object. 39 40 ==== Solution ==== 41 42 Always make sure that you are passing {{{request.FILES}}} when intantiate your {{{Form}}} object: 43 44 {{{ 45 form = MyForm(request.POST, request.FILES) 46 }}} 30 47 31 48 == URLconf include() misbehaving == … … 186 203 }}} 187 204 205 or 206 207 {{{ 208 r'C:\django\sqlite\django.db' 209 }}} 210 188 211 Make sure there is no special charcaters in the path like "éè" or "(". 212 213 If you are using Windows and this message appears intermittently make sure that your security software (Anti-malware) are not opening (and locking) your database file to check for malware presence. 189 214 190 215 == How to point apache to your media files directory ==