Re: ZSI WEB SERVICE
I am working on a server side implementation of a given wsdl file. So I tried zsi to generate the stubs. Did you have any success in incorporating a zsi soap server into django? I found a snippet for implementing a server with soaplib, but this generates its wsdl file on demand. http://djangosnippets.org/snippets/979/ There seem to be plans to use a wsdl as input, but not in the near future. http://mail.python.org/pipermail/soap/2010-December/000351.html I also found a home grown script to generate soaplib code from a wsdl file, but I did not test it: http://stackoverflow.com/questions/3083186/generating-python-soaplib-stubs-from-wsdl So after all, zsi still seems the way to go. Unfortunately I did not find any examples on how to make zsi and django work together, could you already provide some? Could someone provide pointers to the right documentation, please? Thank you and best regards, Benedikt On Dec 18, 5:41 pm, sami nathan wrote: > """""""__init__() must be called with TypeCode instance as first argument > (got String instance instead) """""""what this error says when i overriden > the ZSI server file (generated using wsdl2py in ZSI) i got this error > is there any one to say what this > error says I am trying to act as server -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Migrating from django-redis to Django 4 new redis back-end
Hi! I wanted to migrate from django-redis to the new built-in Redis caching back-end. Previously I could access the existing connection with *django_redis.get_redis_connection* to get a redis-py client. For example, explained here <https://stackoverflow.com/questions/26698803/django-connection-to-redis>. Is there something similar to obtain a redis-py object from the caching setting in Django? *from django.core.cache import caches* *caches["default"] *returns a RedisCache object. Or is the solution to stick to django-redis? Kind regards, Benedikt Vogler -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7e056cdd-48f9-44d2-9daf-562de1e215c5n%40googlegroups.com.
Running makemessages with domain djangojs results in UnicodeDecodeError
Hello, I am using the provided localization by Django. I wanted to use gettext with some of my javascript files and thus enabled the JavaScriptCatalog and executed this command: python manage.py makemessages -d djangojs -l de However, this results in a UnicodeDecodeError, ultimately caused by popen_wrapper in core/management/utils.py. I already spent a little time on debugging and found that this is called from is_templatized in makemessages.py, which tries to check the installed xgettext version. If I simply omit this check by always returning True there, makemessages succeeds and it also finds the correct messages in my JavaScript files. The exact error raised is: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 49: invalid start byte Also, DEFAULT_LOCALE_ENCODING is set to cp65001. When manually calling run from python with the arguments like in popen_wrapper, the invalid byte (0xa9) is clearly visible: "xgettext (GNU gettext-tools) 0.19.8.1\r\nCopyright \xa9 1995-1998, ..." Am I missing something? I am using Django version 4.0.3, Windows version 21H1, Python 3.10.3 (with Miniconda). Any help would be appreciated. Kind regards, Benedikt Karl -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/effccba4-8908-4395-a4fb-db6a59003248n%40googlegroups.com.