#9396: FILE_UPLOAD_TEMP_DIR ignored on Windows?
---------------------------------------------------+------------------------
          Reporter:  spkane                        |         Owner:  nobody     
                                      
            Status:  closed                        |     Milestone:  post-1.0   
                                      
         Component:  Database layer (models, ORM)  |       Version:  1.0        
                                      
        Resolution:  invalid                       |      Keywords:  
FILE_UPLOAD_TEMP_DIR, SuspiciousActivity, Windows
             Stage:  Unreviewed                    |     Has_patch:  1          
                                      
        Needs_docs:  0                             |   Needs_tests:  0          
                                      
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by kmtracey):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 There's not enough information here to diagnose what is going wrong.  I'm
 reasonably certain that FILE_UPLOAD_TEMP_DIR is not ignored on Windows (I
 believe I've used it in the past, and it has worked properly), so I
 suspect user error.  Please post to django-users and include:

 1 - The actual title of the book you are using.  There is more than one
 Django book published by Apress, and the one that is available for reading
 online has no mention of uploading files in chapter 6, so you must be
 using a different one.

 2 - Some description of what you are doing and at least bits of the code
 involved.  Not everyone who might be able to help has a copy of every
 Django book out there, so unless you describe what's being covered in
 chapter 6 you'll be limiting help to those people who have that book.

 3 - The full error message you are getting, including traceback if there
 is one.  Saying its "related to !SuspiciousActivitty" is not enough
 information for people to go on.

 If after discussion on django-users it becomes clear that there is
 actually an error in the Django code, then open a ticket.

 One thing I will mention is that the problem may be related to how you
 have specified your FILE_UPLOAD_TEMP_DIR.  In Python backslashes in string
 literals are escape characters, so setting FILE_UPLOAD_TEMP_DIR =
 'c:\djcode\mysite\temp' won't work as expected.  You need to either use
 forward slashes, specify the setting as a raw string (i.e.
 r'c:\djcode\mysite\temp'), or double the backslahses.

 Also for future reference when attaching patch files please create the
 patch from the root of the django tree, so that the full path name of the
 file is clear.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9396#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to