Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk insert error #71

Open
alejo8591 opened this issue Jan 10, 2013 · 0 comments
Open

bulk insert error #71

alejo8591 opened this issue Jan 10, 2013 · 0 comments

Comments

@alejo8591
Copy link

work with a bulk insert, where I think a specific amount of records for one user but django.devser the following error:

Traceback:
File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
  2.             return self.admin_site.admin_view(view)(_args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  3.                 response = view_func(request, _args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  4.     response = view_func(request, _args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
  5.         return view(request, _args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  6.         return bound_func(_args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
  7.                 response = view_func(request, _args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  8.             return func(self, _args2, *_kwargs2)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/db/transaction.py" in inner
  9.             return func(_args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in add_view
  10.             self.save_model(request, new_object, form, False)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/contrib/admin/options.py" in save_model
  11.     obj.save()
    
    File "/Users/alejo8591/Documents/etv/users/models.py" in save
  12.     bulk.insertMany(CreateCodes,values)
    
    File "/Users/alejo8591/Documents/etv/users/classes/BulkInsert.py" in insertMany
  13.     self._insertMany(_args, *_kwargs)
    
    File "/Users/alejo8591/Documents/etv/users/classes/BulkInsert.py" in _insertMany
  14.     con.cursor().executemany(sql, parameters)
    
    File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/devserver/modules/sql.py" in executemany
  15.             message = 'Executed %s times\n%s' % message
    

Exception Type: TypeError at /elevate/users/createcodes/add/
Exception Value: not enough arguments for format string

Picture Error
Captura de pantalla 2013-01-10 a la s 17 07 00

Creating correct before using the bulk insert data
Captura de pantalla 2013-01-10 a la s 17 08 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant