Changes between Version 49 and Version 50 of NewbieMistakes


Ignore:
Timestamp:
Dec 10, 2012, 7:38:17 AM (12 years ago)
Author:
osantana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewbieMistakes

    v49 v50  
    2828Note that Django now attempts to catch this problem, as of [3109].
    2929
     30== Your forms doesn't upload files ==
     31
     32==== Symptom ====
     33
     34You have {{{FileField()}}} and {{{ImageField()}}} fields in your form and the files are not uploaded when you submit this form
     35
     36==== Probable cause ====
     37
     38You might be missing the {{{request.FILES}}} argument when intantiate your {{{Form}}} object.
     39
     40==== Solution ====
     41
     42Always make sure that you are passing {{{request.FILES}}} when intantiate your {{{Form}}} object:
     43
     44{{{
     45form = MyForm(request.POST, request.FILES)
     46}}}
    3047
    3148== URLconf include() misbehaving ==
     
    186203}}}
    187204
     205or
     206
     207{{{
     208r'C:\django\sqlite\django.db'
     209}}}
     210
    188211Make sure there is no special charcaters in the path like "éè" or "(".
     212
     213If 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.
    189214
    190215== How to point apache to your media files directory ==
Back to Top