Code Monkey home page Code Monkey logo

Comments (6)

retspen avatar retspen commented on August 15, 2024

Change in file settings.py line: DEBUG=False to DEBUG=True

What show debug (css not work)

from webvirtmgr.

patschi avatar patschi commented on August 15, 2024

Output:

TypeError at /newvm/1/
cannot concatenate 'str' and 'list' objects
Request Method: POST
Request URL:    http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Exception Type: TypeError
Exception Value:    
cannot concatenate 'str' and 'list' objects
Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/root/webvirtmgr',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/pymodules/python2.7',
 '/root/webvirtmgr/webvirtmgr']
Server time:    Tue, 21 May 2013 23:13:15 +0300

Edit: More debug output:

Environment:
Request Method: POST
Request URL: http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'vds')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/root/webvirtmgr/newvm/views.py" in newvm
  243.                         vnc_passwd = ''.join([choice(letters + digits) for i in range(12)])
Exception Type: TypeError at /newvm/1/
Exception Value: cannot concatenate 'str' and 'list' objects

from webvirtmgr.

retspen avatar retspen commented on August 15, 2024

Update webvirtmgr and try again

from webvirtmgr.

patschi avatar patschi commented on August 15, 2024

No, still the same error:

TypeError at /newvm/1/
cannot concatenate 'str' and 'list' objects
Request Method: POST
Request URL:    http://10.0.0.9:8000/newvm/1/
Django Version: 1.4.5
Exception Type: TypeError
Exception Value:    
cannot concatenate 'str' and 'list' objects
Exception Location: /root/webvirtmgr/newvm/views.py in newvm, line 243
Python Executable:  /usr/bin/python
Python Version: 2.7.3
Python Path:    
['/root/webvirtmgr',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/pymodules/python2.7',
 '/root/webvirtmgr/webvirtmgr']
Server time:    Tue, 21 May 2013 23:59:55 +0300

I updated with "git pull" and restarted the integrated webserver.

from webvirtmgr.

retspen avatar retspen commented on August 15, 2024

Fix this bug. Need update.

from webvirtmgr.

patschi avatar patschi commented on August 15, 2024

mhh... Really... Does work now :)
Somehow git didn't updated correctly. I clone'd the git again and now its working.

from webvirtmgr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.