import error
Occured error while using url http://localhost/fllyp/ MOD_PYTHON ERROR ProcessId: 844 Interpreter:'192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/ htdocs' URI:'/fllyp/' Location: '/fllyp/' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/ htdocs/fllyp/' PathInfo: '' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' Traceback (most recent call last): File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target result = object(arg) File "C:\Python25\Lib\site-packages\django\core\handlers \modpython.py", line 228, in handler return ModPythonHandler()(req) File "C:\Python25\Lib\site-packages\django\core\handlers \modpython.py", line 191, in __call__ self.load_middleware() File "C:\Python25\Lib\site-packages\django\core\handlers\base.py", line 33, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "C:\Python25\Lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line 40, in _setup self._wrapped = Settings(settings_module) File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line 75, in __init__ raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'settings.py' (Is it on sys.path? Does it have syntax errors?): No module named settings.py- To configure Django with mod_python I added this in httpd.conf file SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings.py PythonOption django.root /mysite PythonDebug On PythonPath "['C:/mysite'] + sys.path" what shoul i do now pls help me my project file is in C drive at this location only i am not having file at C:/Program Files/Apache2.2/ htdocs/mysite' -- 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.
Re: question about django url
http://local host/wap/di/sub?word=check&type=00&submit=Submit i want to print word "check" and any word given in url pls give sugesstion pls -- 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.
Re:
HI THIS IS MY REQUIRED URL http://localhost/flip/wap/di/sub?word=check&type=00&submit=Submit here check should be displayed in my page we are using this for dictionary but my task is to just display that word check in my page , moreover its user defined my urls.py is looking like this urlpatterns = patterns('', (r"^wap/di/sub",current_datetime), And my view looks like this from django.http import HttpResponse def current_datetime(request): word = request.GET['word'] return HttpResponse(word) but it still showing Error Exception Value: unindent does not match any outer indentation level (view.py, line 7) -- 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.
[no subject]
my re reuested url is http://localhost/wap/di/sub?word=check&type=00&submit=Submit I want to print the word "CHECK" which will be given by user my urls.py looks like this from django.conf.urls.defaults import * from flip.view import current_datetime urlpatterns = patterns('', (r"^wap/di/sub?word=(\w+)&type=00&submit=Submit",current_datetime), ) My view.py look like this from django.http import HttpResponse def current_datetime(request): html = "" + word + "" return HttpResponse(html) But the error shown is SyntaxError: 'return' outside function -- 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.
Re:
HI Jirka Vejrazka sorry ya i am very new to this group and i am going through the python But it would be helpful to me if u convey me which part of python should i go throgh for time beingthank u -- 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.
Re:
Sir, i got two way of suggestion s now i am bitter confused waht should i use now,now i will clearly tell my requirement http://m.broov.com/wap/di/sub?word=check&type=00&submit=Submit pls visit this site and replace the word check with any word u like it will display some rsults below now i don't want that results to be printed below i want only that word should be printed i got two suggestionfrom django users 1. So, your urls.py would look like this: (r"^wap/di/sub", hellow) And your view would contain the following code: def hellow(request): word = request.GET['word'] return HttpResponse(word) --- 2.So url looks like this (r"^wap/di/sub?word=(\w+)&type=00&submit=Submit",hellow), view look like this html = "" + word + "" which is the best to use but both getting error -- 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.
Re:
THANK U GUYS AT LAST I GOT WHAT I NEED AND ITS WORKING THANK U FOR U R RESPONSE GREAT YA THANKS!!! -- 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.
Re:
ISORRY YA AGAIN i got problem of SyntaxError: 'return' outside function now my view code from django.http import HttpResponse def current_datetime(request): word = request.GET['word'] return HttpResponse(word) now my url code from django.conf.urls.defaults import * from flip.view import current_datetime # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: (r"^wap/di/sub",current_datetime) -- 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.
Re:
just before getting u r message i tried that it worked!! whats the best editor for django -- 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.
WANT TO SEND REQ TO URL GET RESPONSE FROM THE SAME URL
i want to send my req from my url that is"http://localhost/flip/wap/di/sub?word=formula&type=00&submit=Submit"; that i want to send only the word "formula" to the url "http://m.broov.com/wap/di/sub?word=fomula&type=00&submit=Submit"and i want to get response from the same url and display in my page my view looks like this from django.http import * from django.template import loader, Context def current_datetime(request): word = request.GET['word'] message=HttpResponse('http://m.broov.com/wap/di/sub?word='+word+'&submit=Submit') return HttpResponse(message) MY url looks like this from django.conf.urls.defaults import * from flip.view import current_datetime urlpatterns = patterns('', : (r"^wap/di/sub",current_datetime) I AM GETTING RESPONSE HAS THE SAME URL IN MY DISPLAY PAGE -- 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.
Fwd: WANT TO SEND REQ TO URL GET RESPONSE FROM THE SAME URL
-- Forwarded message -- From: sami nathan Date: Tue, Oct 12, 2010 at 3:37 PM Subject: WANT TO SEND REQ TO URL GET RESPONSE FROM THE SAME URL To: django-users@googlegroups.com i want to send my req from my url that is"http://localhost/flip/wap/di/sub?word=formula&type=00&submit=Submit"; that i want to send only the word "formula" to the url "http://m.broov.com/wap/di/sub?word=fomula&type=00&submit=Submit"and i want to get response from the same url and display in my page my view looks like this from django.http import * from django.template import loader, Context def current_datetime(request): word = request.GET['word'] message=HttpResponse('http://m.broov.com/wap/di/sub?word='+word+'&submit=Submit') return HttpResponse(message) MY url looks like this from django.conf.urls.defaults import * from flip.view import current_datetime urlpatterns = patterns('', : (r"^wap/di/sub",current_datetime) I AM GETTING RESPONSE HAS THE URL IN MY DISPLAY PAGE -- 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.
Re: WANT TO SEND REQ TO URL GET RESPONSE FROM THE SAME URL
Hello sir, I need to display the reult of "http://m.broov.com/wap/di/sub?word=dog&type=00&submit=Submit"; in my url which is http://localhost/flip/wap/di/sub?word=dog&type=00&submit=Submit My view looks like this from django.http import * from django.template import loader, Context from django.shortcuts import render_to_response def current_datetime(request): word = request.GET['word'] url=HttpResponse('http://m.broov.com/wap/di/sub?word='+word+"type=00submit=Submit') return (url) i want response from this site to be displayed not url of the site i want to only return the response from this site but i am getting oly url of this site displayed -- 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.
Re: WANT TO SEND REQ TO URL GET RESPONSE FROM THE SAME URL
Hello sir, I need to display the reult of "http://m.broov.com/wap/di/sub?word=dog&type=00&submit=Submit"; in my url which is http://localhost/flip/wap/di/sub?word=dog&type=00&submit=Submit My view looks like this from django.http import * from django.template import loader, Context from django.shortcuts import render_to_response def current_datetime(request): word = request.GET['word'] url=HttpResponse('http://m.broov.com/wap/di/sub?word='+word+"type=00submit=Submit') return (url) i want response from this site to be displayed not url of the site i want to only return the response from this site but i am getting oly url of this site displayed -- 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.
how can i wsdl file in my django
After completing my project i need to use wsdl file for web service how could i use it any sugesstions -- 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.
Re: how can i wsdl file in my django
Can i use RESTfull insted of SOAP service -- 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.
Re: how can i wsdl file in my django
I think following is opt ans for my question Mr Brian Bouterse No matter the tools you have, it's hard to make a WSDL for a RESTful service. WSDL 1.1, after all, was specifically designed to describe services built using SOAP. In response, the Web Application Development Language (WADL) was created to easily describe RESTful services. But WSDL 2.0 is more compatible with both SOAP and REST and, with its W3C recommendation, competes stiffly with WADL for popularity among developers. -- 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.
interface django and rest
Please Suggest me an tutorial for interfacing django and restfuli thanks -- 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.
Re: interface django and rest
But is telling about piston is i am very beginner of django i want to inerface django and RESTFULL service and i am also blinking with what to do with my wsdl file Please help by THANKS -- 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.
django erest interfac
hi for django restfull interface i am using the link given below is it correct i am experiencing error in that steps http://code.google.com/p/django-restful-model-views/ please visit this and tell me -- 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.
ATTRIBUTE ERROR
My occured Error is Exception Value: 'str' object has no attribute 'resolve' Exception Location: C:\Python25\Lib\site-packages\django\core\urlresolvers.py in resolve, line 217 ~ MY URLS.PY LOOKS LIKE THIS from django.conf.urls.defaults import * from flip.view import current_datetime urlpatterns = ('', # Example: (r"^wap/di/sub",current_datetime) ) # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)) My view .py Looks like this from django.http import * import urllib def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse (message) Please help me i dont na what happens it was running succesfully but noow its not -- 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.
'str' object has no attribute 'resolve' Exception Location: C:\Python25\Lib\site-packages\django\core\urlresolvers.py in resolve,
-- Forwarded message -- From: sami nathan Date: Thu, Oct 28, 2010 at 3:41 PM Subject: ATTRIBUTE ERROR To: django-users@googlegroups.com My occured Error is Exception Value: 'str' object has no attribute 'resolve' Exception Location: C:\Python25\Lib\site-packages\django\core\urlresolvers.py in resolve, line 217 ~ MY URLS.PY LOOKS LIKE THIS from django.conf.urls.defaults import * from flip.view import current_datetime urlpatterns = ('', # Example: (r"^wap/di/sub",current_datetime) ) # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)) My view .py Looks like this from django.http import * import urllib def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse (message) Please help me i dont na what happens it was running succesfully but noow its not -- 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.
can't open file 'django-admin.py': [Errno 2] No such file or directory'.
Whenever I try to execute a python script that is located in the /usr/local/bin, python gives me the error 'python: can't open file 'django-admin.py': [Errno 2] No such file or directory'. -- 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.
cannot setup database
When i run the command python manage.py syncdb i got the follwing error self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file Exception exceptions.AttributeError: '_shutdown' in ignoredDATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', MY DB SETUP LOOKS LIKE THIS 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'D:\Python25\Lib\site-packages\django\bin\flyp\sqlite3', # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } -- 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.
Re: cannot setup database
My setting file looks like this # Django settings for flyp project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'D:\Python25\Lib\site-packages\django\bin\flyp\sqlite3.db', # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # On Unix systems, a value of None will cause Django to use the same # timezone as the operating system. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale USE_L10N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com";, "http://example.com/media/"; MEDIA_URL = '' # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/static/" STATICFILES_ROOT = '' # URL that handles the static files served from STATICFILES_ROOT. # Example: "http://static.lawrence.com/";, "http://example.com/static/"; STATICFILES_URL = '/static/' # URL prefix for admin media -- CSS, JavaScript and images. # Make sure to use a trailing slash. # Examples: "http://foo.com/static/admin/";, "/static/admin/". ADMIN_MEDIA_PREFIX = '/static/admin/' # A list of locations of additional static files STATICFILES_DIRS = () # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', #'django.contrib.staticfiles.finders.DefaultStorageFinder', ) # Make this unique, and don't share it with anybody. SECRET_KEY = 'ky7bf$^vv$$-#vjx4ha%j&e!d#$g=7w2...@i-^9g#ai9fa8*^' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'flyp.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin' # Uncomment the next line to enable the admin: # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', ) # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request':{ 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } } -- You received this message because you are subscribed to the Google Groups "Django users" group. To post
ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings
MY system path is D:\Python25\Lib\site-packages\django\bin\admin.py;D:\Python25;D:\Program Files\Subversion\bin:D:\Python25\Lib\site-packages\django;D:\Python25\Lib\site-packages\django\bin\flyp;D:\Python25\Tools;D:\Python25\Lib\site-packages\django\bin\flyp\settings; my LOCATION looks like this SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE flyp.settings PythonOption django.root /flyp PythonDebug On PythonPath "['D:/Python25','D:/Python25/Lib/site-packages/django/bin/flyp','D:/Python25/Lib/site-packages/django/bin/flyp/settings',] + sys.path" i AM GETTING FOLLOWING ERROR MOD_PYTHON ERROR ProcessId: 3908 Interpreter:'192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs' URI:'/flyp/' Location: '/flyp/' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/flyp/' PathInfo: '' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' Traceback (most recent call last): File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target result = object(arg) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 213, in handler return ModPythonHandler()(req) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 174, in __call__ self.load_middleware() File "D:\Python25\lib\site-packages\django\core\handlers\base.py", line 37, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "D:\Python25\lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 76, in __init__ raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings AND ALSO GETTING THIS ERROR WHILE CREATING DATABASE Exception exceptions.AttributeError: '_shutdown' in ignored -- 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.
Fwd: ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings
-- Forwarded message -- From: sami nathan Date: Mon, Nov 1, 2010 at 6:42 PM Subject: ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings To: django-users@googlegroups.com MY system path is D:\Python25\Lib\site-packages\django\bin\admin.py;D:\Python25;D:\Program Files\Subversion\bin:D:\Python25\Lib\site-packages\django;D:\Python25\Lib\site-packages\django\bin\flyp;D:\Python25\Tools;D:\Python25\Lib\site-packages\django\bin\flyp\settings; my LOCATION looks like this SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE flyp.settings PythonOption django.root /flyp PythonDebug On PythonPath "['D:/Python25','D:/Python25/Lib/site-packages/django/bin/flyp','D:/Python25/Lib/site-packages/django/bin/flyp/settings',] + sys.path" i AM GETTING FOLLOWING ERROR MOD_PYTHON ERROR ProcessId: 3908 Interpreter: '192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs' URI: '/flyp/' Location: '/flyp/' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/flyp/' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target result = object(arg) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 213, in handler return ModPythonHandler()(req) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 174, in __call__ self.load_middleware() File "D:\Python25\lib\site-packages\django\core\handlers\base.py", line 37, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "D:\Python25\lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 76, in __init__ raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings AND ALSO GETTING THIS ERROR WHILE CREATING DATABASE Exception exceptions.AttributeError: '_shutdown' in ignored -- 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.
ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings
MY system path is D:\Python25\Lib\site-packages\django\bin\admin.py;D:\Python25;D:\Program Files\Subversion\bin:D:\Python25\Lib\site-packages\django;D:\Python25\Lib\site-packages\django\bin\flyp;D:\Python25\Tools;D:\Python25\Lib\site-packages\django\bin\flyp\settings; my LOCATION looks like this SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE flyp.settings PythonOption django.root /flyp PythonDebug On PythonPath "['D:/Python25','D:/Python25/Lib/site-packages/django/bin/flyp','D:/Python25/Lib/site-packages/django/bin/flyp/settings',] + sys.path" i AM GETTING FOLLOWING ERROR MOD_PYTHON ERROR ProcessId: 3908 Interpreter:'192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs' URI:'/flyp/' Location: '/flyp/' Directory: None Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/flyp/' PathInfo: '' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' Traceback (most recent call last): File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target result = object(arg) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 213, in handler return ModPythonHandler()(req) File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 174, in __call__ self.load_middleware() File "D:\Python25\lib\site-packages\django\core\handlers\base.py", line 37, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "D:\Python25\lib\site-packages\django\utils\functional.py", line 276, in __getattr__ self._setup() File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "D:\Python25\lib\site-packages\django\conf\__init__.py", line 76, in __init__ raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'flyp.settings' (Is it on sys.path? Does it have syntax errors?): No module named flyp.settings AND ALSO GETTING THIS ERROR WHILE CREATING DATABASE Exception exceptions.AttributeError: '_shutdown' in ignored -- 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.
ATTRIBUTE ERROR
If i am doing anything wrong forgive me i am newbe MY error is Exception Type: AttributeError Exception Value: 'str' object has no attribute 'resolve' Exception Location: D:\Python25\lib\site-packages\django\core\urlresolvers.py in resolve, line 25 My url.py look like this from django.conf.urls.defaults import * from it.view import current_datetime # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^wap/di/sub/$",current_datetime') # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)), ) ~~~ My view.py looks like this from django.http import * import urllib def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse (message) ~~ Thank u for notification -- 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.
Attributr error
THIS IS HOW MY URL.PY LOOKS LIKE from django.conf.urls.defaults import * from it.view import current_datetime # Uncomment the next two lines to enable the admin: #from django.contrib import admin #admin.autodiscover() urlpatterns = patterns('', # Example: (r"^wap/di/sub/$",current_datetime), # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)), ) `~~~ My view .py looks like this from django.http import * import urllib from django_restapi.responder import XMLResponder def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return XMLResponder(message) But my error is Exception Value: 'XMLResponder' object has no attribute 'status_code' Exception Location: D:\Python25\lib\site-packages\django\middleware\common.py in process_response, line 94 -- 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.
Re: Attributr error
I want my final result in xml format and how can i do that? thanks for notification -- 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.
Re: Attributr error
Where should i use this please tell!! should i use in urls.py -- 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.
Re: Attributr error
HOW TO GET XML RESPONSE in following THIS IS HOW MY URL.PY LOOKS LIKE from django.conf.urls.defaults import * from it.view import current_datetime # Uncomment the next two lines to enable the admin: #from django.contrib import admin #admin.autodiscover() urlpatterns = patterns('', # Example: (r"^wap/di/sub/$",current_datetime), # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)), ) `~~~ My view .py looks like this from django.http import * import urllib from django_restapi.responder import XMLResponder def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse(message) -- 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.
Re: Attributr error
i Think serialisation would be helpful for this some one help me how to use it -- 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.
SERIALIZING
HOW TO GET XML RESPONSE in following THIS IS HOW MY URL.PY LOOKS LIKE from django.conf.urls.defaults import * from it.view import current_datetime # Uncomment the next two lines to enable the admin: #from django.contrib import admin #admin.autodiscover() urlpatterns = patterns('', # Example: (r"^wap/di/sub/$",current_datetime), # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)), ) `~~~ My view .py looks like this from django.http import * import urllib from django_restapi.responder import XMLResponder def current_datetime(request): word = request.GET['word'] message = urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse(message) -- 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.
WEB SERVICE IN DJANGO USING SOAP
Thanks for notification I am trying to develop web service using django with soap interface i checked my code in python to open wsdl file but its showing error i am sure that wsdl file dosent have any errors this is my code>>> from SOAPpy import WSDL >> server=WSDL.Proxy('D/soap/FlyppSms.wsdl') Traceback (most recent call last): File "", line 1, in File "D:\Python25\Lib\site-packages\SOAPpy\WSDL.py", line 67, in __init__ self.wsdl = reader.loadFromString(str(wsdlsource)) File "D:\Python25\Lib\site-packages\SOAPpy\wstools\WSDLTools.py", line 47, in loadFromString return self.loadFromStream(StringIO(data)) File "D:\Python25\Lib\site-packages\SOAPpy\wstools\WSDLTools.py", line 28, in loadFromStream document = DOM.loadDocument(stream) File "D:\Python25\Lib\site-packages\SOAPpy\wstools\Utility.py", line 602, in l oadDocument return xml.dom.minidom.parse(data) File "D:\Python25\Lib\site-packages\_xmlplus\dom\minidom.py", line 1915, in pa rse return expatbuilder.parse(file) File "D:\Python25\Lib\site-packages\_xmlplus\dom\expatbuilder.py", line 930, i n parse result = builder.parseFile(file) File "D:\Python25\Lib\site-packages\_xmlplus\dom\expatbuilder.py", line 207, i n parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 1 -- 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.
Re: WEB SERVICE IN DJANGO USING SOAP
encoding="UTF-8"?> should i remove this from wsdl file...? and more over i am trying to use my system as server i am refering dive into python chapter 12 introspecting wsdl and searching google i cant find weather its an client side code or server side code but i am in need of server side code do u find any refrence for me to study server side code using SOAP or REST sorry if i had asked anything wrong i am newbee -- 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.
Re: WEB SERVICE IN DJANGO USING SOAP
After opening and closing also showing me the same result i cant say not to output the BOM to generator b coz its an another person who generated and gave to me and asking me to create web service using just wsdl file and given me open choice of use rather SOAP or REST i also decided to use REST now will u refer me the tutorial to rest and also to solve above problem -- 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.
Re: WEB SERVICE IN DJANGO USING ZSI
for creating server.py from wsdl file i am using this following code i dont na weather its right but its not creating any file but its throwing error >>> wsdl2py --extended --file=D;\soap\FlyppSms.wsdl File "", line 1 wsdl2py --extended --file=D;\soap\FlyppSms.wsdl ^ SyntaxError: unexpected character after line continuation character -- 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.
Re: WEB SERVICE IN DJANGO USING ZSI
But i am not havin python intreptor i use my command prompt this way Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\ezhil>python Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on wi 32 Type "help", "copyright", "credits" or "license" for more information. >>> wsdl2py --extende --file=D:\soap\FlyppSms.wsdl File "", line 1 wsdl2py --extende --file=D:\soap\FlyppSms.wsdl ^ SyntaxError: invalid syntax >>> shouldn't i use this way -- 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.
WEB SERVICE IN DJANGO USING ZSI
To genrate sevice file from my wsdl i used following command but it shows the same D:\Python25\Scripts>wsdl2py --complexType --file=ZonedLocation.wsdl 'wsdl2py' is not recognized as an internal or external command, operable program or batch file. but my wsdl2py is in the scripts oly -- 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.
Re: WEB SERVICE IN DJANGO USING ZSI
To create server file i used this command but showing following error D:\Python25\Scripts>python wsdl2py --complexType localhost 8080 d:/soap/zz/FlypS ms.wsdl Expecting a file/url as argument (WSDL). Traceback (most recent call last): File "wsdl2py", line 9, in wsdl2py() File "D:\Python25\Lib\site-packages\ZSI\generate\commands.py", line 122, in ws dl2py sys.exit(os.EX_USAGE) AttributeError: 'module' object has no attribute 'EX_USAGE' -- 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.
Re: WEB SERVICE IN DJANGO USING ZSI
ANY one knows how to generate server.py flie from wsdl2py in ZSI -- 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.
WEB service using Restify
THANKS FOR NOTIFICATION I am trying to do webservice with RESTfull web service but i dint create models my view file looks like this from django.http import * import urllib def current_datetime(request): word = request.GET['word'] message=urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) return HttpResponse(message) My url looks like this (r'^wap/di/sub/',current_datetime ), i want to restify my view but all examples are showing oly models .py now i need help to do that THANKS -- 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.
urllib .urlopen problem
my django site was running successfully but now it s giving me the following error IO ERROR [Errno socket error] (11004, 'getaddrinfo failed' my view looks like this and i am running in proxy settings but i included that in my code proxie = {'http': 'http://192.168.1.100:8080'} word = request.GET['word'] message=urllib.urlopen('http://m.broov.com/wap/di/sub?word='+word+'&type=00submit=Submit',) socket.setdefaulttimeout(1120) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) return HttpResponse(message) ANd it would be gracefull if someone help me to build web service using RESTfull to run 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.
get request from an java API to DJango
THANKS FOR NOTIFICATION Hi i am newbie to django i am having task that want to get request from an java API and give Response to the same API (To act as an server ) So i am having WSDL file for the JAVA API I decided to do that in ZSI WEB SERVICE and i generated server file using wsdl2py cmmd and according to tutorial i am seeing i want to overrriden the class in the server file but i am getting error Type error unbound method __init__() must be called with TypeCode instance as first argument (got String instance instead)" i am getting word from that API and i am returning the same word what this error says clearly? So i am finding little bit difficult in the ZSI is there Any other method to do the above task please suggest me At last clearly now i need to get request from that API and parse it -- 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.
ZSI WEB SERVICE
__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 i got this error is there any one to say what this error says -- 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.
Re: get request from an java API to DJango
thanks for notification.Please guide me through a source to get a grasp of suds and continue working.Suggest me a point to startwith.To be honest i am completely new to this. Regards, Sami -- 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.
Re: get request from an java API to DJango
But i should act as an server will suds allow that? -- 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.
Re: ZSI WEB SERVICE
"""__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.
Re: ZSI WEB SERVICE
Ya me too in the same problem if any one find the solution please post here -- 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.
WEB SERVICE
Hi i want to do web service in using django My client is sending SOAP request and should send response as SOAP response i am now sucessful in this process using ZSI but i want to run the process in django server So i refered http://djangosnippets.org/snippets/979/ now it would be helpfull for me if i get help of running echo server using the same example -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.
Re: WEB SERVICE
HI Now i am getting some way but i still cant parse the incoming request my view looks like this at present i am trying to send the request i am getting from xml.dom import minidom import urllib import socket from django.http import HttpResponse from django.core import serializers import urllib import socket def recive_ShortMessage(request): if request.method == 'GET': ref= "Process in progress" return HttpResponse(ref) elif request.method == 'POST': print request socket.setdefaulttimeout(20) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) request.message=['brave'] print request.message XMLSerializer = serializers.get_serializer("xml") xml_serializer = XMLSerializer() xml_serializer.serialize(request) data = xml_serializer.getvalue() print data return HttpResponse(request) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.
parsing SOAP request
Hi i am working web service i am getting SOAP(POST) request from client now i am trying to parse the request xml and sending the response my soap request is http://schemas.xmlsoap.org/soap/envelope/ ">http://flypp.infy.com/sms/v2010r1_0 ">12345343661t1p1p2DICT test']}> response now i want send response as change is denoted in colors **'http://schemas.xmlsoap.org/soap/envelope/ ">http://flypp.infy.com/sms/v2010r1_0 ">12345343661t1p1p2TEXT HERE ']}> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.
Re: parsing SOAP request
Hi Now i tried to parse the incoming request and send my response i tried in the following way by just sending what request came as it as response (ECHO server).and i am very newbie i dont know how to parse the request. I used ZSI sucessfully but in that requset was handled by itself but ZSI application is not accepting in django My view looks like this : def recive_ShortMessage(request): if request.method == 'GET': ref= "Process in progress" return HttpResponse(ref) elif request.method == 'POST': print request.POST.QueryDict return HttpResponse (request.POST) But the error is org.apache.axis2.AxisFault: in xml declaration at [row,col {unknown-source}]: [1,13] (I am using java client) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.
QUERYDICT immutable
HI I am NEWBIE i am trying to run an server and my POST request is from java api(client) and i cant able to see exact error in java api its just showing HTML request is not accepting in java b coz django giving me error iin html format but by some how i manage to print request.POST from my request - -- http://schemas.xmlsoap.org/soap/envelope/ ">http://flypp.infy.com/sms/v2010r1_0 ">12345343661t1p1p2< messa ge>DICT test ']}> -- -- now i want to change just message in my request.POST (denoted by red color in above request) and i am helpless i tried the following code def recive_ShortMessage(request): if request.method == 'POST': request=request.POST.QueryDict.copy() qt=request.QueryDict.copy() print qt qt['message'] = 'I am changing it!' return HttpResponse(qt) _ _ As java api is not showing what error i am having i can know error in this program -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.
XML parsing
HI I am trying to parse my response by the following method elif request.method == 'POST': reqp=request.raw_post_data response = HttpResponse(mimetype='text/xml') response.write(reqp) print response xmldoc = minidom.parse('binary.xml') reflist = xmldoc.getElementsByTagName('message') print reflist return response But its giving me error of "TO MANY VALUE TO UNPACK" -- my request looks like this http://sc hemas.xmlsoap.org/soap/envelope/ ">http://flypp.infy.com/sms/v2010r1_0 ">1234534366< applicationID>1t1p 1p2DICT test Now my ultimate aim is to send error response to client sending me the above request without DICT in message -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.