Django IO exceptions through times
Hi. I have a strange problem with Django. It raise exceptions like TemplateDoesNotExist or ImportError, while actually files and modules are exists and have proper rights. This error appears not everytime, but in ~1/20 cases (not regular), thus I thought about to blame my VDS, but other projects with older software works correct on this server. On this project I'm using Django 1.4.4, django-CMS 2.4.0-RC1 and uWSGI 1.2.6 (for all other projects) with virtualenvs. How do you think, what's the problem? P.S. There's a not small set of "lost" files. They're all the same almost each time, only 6-8 of templates and modules. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Pagination with file upload (MultiValueDictKeyError)
On Tue, Apr 16, 2013 at 10:40 AM, wrote: > I have a simple form that takes a user upload, queries a database, and > displays results in a table. I receive the following error whenever I try > to go to the second, third, fourth, etc page: Why are you querying the DB? You mean, once the file uploads, you want to requery the DB and get the 'new' list with this list of files? Btw, I have tried my hands on with django-jquery-file-upload and i think its one of the better solutions: https://github.com/sigurdga/django-jquery-file-upload Venkat https://twitter.com/venkasub -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Pagination with file upload (MultiValueDictKeyError)
I have a simple form that takes a user upload, queries a database, and displays results in a table. I receive the following error whenever I try to go to the second, third, fourth, etc page: MultiValueDictKeyError at /result/ "Key 'batch' not found in " Request Method: GET Request URL: http://xxx/result/?page=4 Django Version: 1.5 Exception Type: MultiValueDictKeyError Exception Value: "Key 'batch' not found in " Exception Location: C:\Python27\lib\site-packages\django\utils\datastructures.py in __getitem__, line 295 Python Executable: C:\Python27\python.exe Python Version: 2.7.3 Python Path: ['C:\\Users\\xx', 'C:\\Python27\\lib\\site-packages\\django_pagination-1.0.7-py2.7.egg', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages'] Server time: Tue, 16 Apr 2013 00:48:23 -0400 I've found two possible causes: I'm using a "request.POST" on the objects I'm paginating when it should be a "request.GET". The issue here is I believe I need to have this as a POST because I'm getting data from an uploaded file. The second cause I do not understand, but it's at this link: https://django-pagination.googlecode.com/svn/trunk/docs/usage.txt under "A Note About Uploads". I assume this is directed at implementing a paginator object in views.py, but my only pagination code are the tags in my results page template. Does anyone have experience with this issue and/or have a solution? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Handling duplicate js/css in forms media with included templates
On Tuesday, April 16, 2013 11:41:56 AM UTC+8, Nora Olsen wrote: > > Hi, > > I have seen some discussion in this group on how to handle duplicate > form.media in template includes. > > I have the following the following base.html with scripts at the end of > the body. I am following h5bp convention: > > > window.jQuery || document.write('