Re: Really simple python message queue

2010-11-27 Thread Venkatraman S
On Sun, Nov 28, 2010 at 12:01 PM, Anand Agarwal  wrote:

> Really simple python message 
> queue
> http://bit.ly/dHRQ1y
>
>
Self-promotion?

-- 
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.



Really simple python message queue

2010-11-27 Thread Anand Agarwal
Really simple python message
queue
http://bit.ly/dHRQ1y

-Anand

-- 
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.



Inclusion Tag Permissions

2010-11-27 Thread jayhalleaux
So I am trying to create a navbar that is altered by users logging in
and out.

It is created using an inclusion tag which takes its context.

I tried passing permissions via:
return {
'perms': context['perms'],
'user': context['user'],
etc...
}

when making the inclusion tag.

Perms is a proxy_object on logging.

In my template I tried using these variables but nothing showed up.

Let me know if you have questions.  I appreciate any help.

-- 
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 on a hosting service

2010-11-27 Thread Todd Wilson
I'm helping some friends improve a portal website they have created
using PHP, but which would be ideal for Django, in the sense that a lot
of the work they've already done, and would like to do as they improve
the site, would be easy to do in Django.  They have a hosting contract
with Intermedia (http://www.intermedia.net/) and would very much like to
keep it.  I've gotten ssh access to their server and went poking around
a bit, and, although python is available on the server (version 2.5.2),
there doesn't seem to be any support for WSGI, mod_python, FastCGI, or
the other deployment options listed in the documentation (at least I
didn't see them in /etc/apache2/mods-available/), and it doesn't look
like they support other frameworks (Rails, Drupal, Zope) either.

My question:  I've always set up my own servers and don't have any
experience with web hosting;  is there a minimal sort of request that I
could make to Intermedia that, if granted, would make it possible for me
(and presumably others) to deploy a Django site using their service, or
should I just try to convince my friends to find a different hosting
service?  It seems like there would be many to choose from:

   http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts

Thanks,

--Todd


-- 
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.



Tracking model object changes

2010-11-27 Thread rahul jain
Found very similar projecst but not sure which one to use it. Would like to
track the modified object , modified time and the user who modified it.


   - Django Audit for MongoDB 
   - AuditTrail 
   - AuditLog 
   - Django-audit 

Please let me know which one will be ideal for my case.

Thanks.

Rahul

-- 
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

2010-11-27 Thread Steve Holden
On 11/27/2010 10:37 AM, sami nathan wrote:
> 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
> 
No. You typed "python" at the command line. You need, probably, to type

wsdl2py --extende --file=D:\soap\FlyppSms.wsdl

at the command line.

regards
 Steve
-- 
DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/

-- 
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: Create an object before calling the save method

2010-11-27 Thread Christophe Pettus

On Nov 27, 2010, at 2:56 PM, bnabilos wrote:
> What I want to do is creating a title based on what I write in the
> ForeignKey field before creating the category so it can be used
> immediately.

You can do just that.  Just accept the title in a CharField, without a choices= 
option, and then create the Title based on that, then creating the category to 
refer to it.  The code would look something like this:

t = Title(title=form.cleaned_data['title'])
t.save()
   # This creates the primary key for the new Title object

c = Category(title=t)
c.save()

You can add appropriate checks if the title and category already exist, to 
handle those the way you wan tto.
--
-- Christophe Pettus
   x...@thebuild.com

-- 
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.



Create an object before calling the save method

2010-11-27 Thread bnabilos
Hello

I want to create an object in Django before calling the save method.
This object will be created from a ForeignKey Value, I've changed the
foreignkey field to look like an input field in order to write a value
instead of selecting it.

I have 2 classes in 2 different model files

class Category(models.Model):
title = models.ForeignKey(Title, verbose_name="Title")

and

class Title(models.Model):
title = models.CharField("Title", primary_key=True,
max_length=200)

When I create a category, I have to pick or write a title that already
exists in the database and when I try to create a category with a new
title I get this error :

Select a valid choice. That choice is not one of the available
choices.

What I want to do is creating a title based on what I write in the
ForeignKey field before creating the category so it can be used
immediately.

I tried to redefine the save method to save the title object before
saving the category but it didn't work.

Any help will be really appreciated.

Thank you

-- 
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.



list_editable asynchronous

2010-11-27 Thread rahul jain
How to make list _editable asynchronus ?

I would not like to save by pressing save button. Instead, as soon as I
modify the wizard it should save by itself.

Thanks.

Rahul

-- 
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: populating model values into form

2010-11-27 Thread Daniel Roseman
On Nov 27, 1:11 pm, djangobeginner 
wrote:
> Hi,
> Im a beginner here, would just like to ask how to pass and populate
> model values (from database) into a created form, I have the following
> codes
>
> 1. I already have a webpage list of all the values in a table form
> 2. If I click on any of the row with primary key id (example: clicking
> edit link), it should redirect me to a created form (in forms.py) with
> all the values populated based on the primary key id from the web
> list.
>
> How do I possibly do #2?
> Please help. thanks.
>


http://docs.djangoproject.com/en/1.2/topics/forms/modelforms/
--
DR.

-- 
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

2010-11-27 Thread sami nathan
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.



Re: WEB SERVICE IN DJANGO USING ZSI

2010-11-27 Thread Kev Dwyer
On Sat, 27 Nov 2010 20:57:17 +0530, sami nathan wrote:

> 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

1.  I think you should be executing this command from the system command 
prompt, 
not from within the python interpreter.

2.  You may need to change "D;" to "D:"

-- 
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

2010-11-27 Thread sami nathan
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: TemplateSyntaxError with block trans

2010-11-27 Thread Łukasz Rekucki
On 27 November 2010 14:12, Vyrphan  wrote:
> Hi there mates,
>
> I've created a new site, and all is running ok. Last step in my
> development plan was to add support for internacionalization (by now,
> only 2 languages)
>
> I just added blocktrans in my templates in several places, and i'm
> getting allways the same exception
>
> Invalid block tag: 'blocktrans', expected 'endblock' or 'endblock
> title'
> 1       {% extends 'public.html' %}
> 2
> 3       {% block title %}
> 4         {% blocktrans %}Page title {% endblocktrans %}
> 5       {% endblock %}
>
> ...
>
> Python and django versions:
>> python --version
> Python 2.6.5
>> django-admin.py --version
> 1.2.3
>
> Any clue about what's happening?

http://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#specifying-translation-strings-in-template-code

"To give your template access to these tags, put {% load i18n %}
toward the top of your template."

-- 
Łukasz Rekucki

-- 
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.



TemplateSyntaxError with block trans

2010-11-27 Thread Vyrphan
Hi there mates,

I've created a new site, and all is running ok. Last step in my
development plan was to add support for internacionalization (by now,
only 2 languages)

I just added blocktrans in my templates in several places, and i'm
getting allways the same exception

Invalid block tag: 'blocktrans', expected 'endblock' or 'endblock
title'
1   {% extends 'public.html' %}
2
3   {% block title %}
4 {% blocktrans %}Page title {% endblocktrans %}
5   {% endblock %}

...

Python and django versions:
> python --version
Python 2.6.5
> django-admin.py --version
1.2.3

Any clue about what's happening?

Thanks in advance

-- 
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.



populating model values into form

2010-11-27 Thread djangobeginner
Hi,
Im a beginner here, would just like to ask how to pass and populate
model values (from database) into a created form, I have the following
codes

1. I already have a webpage list of all the values in a table form
2. If I click on any of the row with primary key id (example: clicking
edit link), it should redirect me to a created form (in forms.py) with
all the values populated based on the primary key id from the web
list.

How do I possibly do #2?
Please help. thanks.

given the following:
---
models.py:
from django.db import models
import datetime

SHORT_DATE_FORMAT = "%d - %b - %y"
DATE_FORMAT= "%Y-%m-%d"
TIME_FORMAT= "%H:%M"

class Job(models.Model):
job_id = models.AutoField(primary_key=True)
job_title = models.CharField(max_length=50, verbose_name =
"Title")
job_desc = models.CharField(max_length=500, verbose_name =
"Description")
active_datetime_fr = models.DateTimeField('time')
active_datetime_to = models.DateTimeField('time')
-
views.py
def object_list(request, model):
   obj_list = model.objects.all()
   template_name = '/job_list.html'
   t = loader.get_template(template_name)
   c = RequestContext(request, {"object_list": obj_list})
   return HttpResponse(t.render(c))
-
forms.py:
from django import forms
from django.db.models.fields import AutoField
from datetime import date, datetime
import psycopg2

class JobAddForm(forms.Form):
#job_id = forms.IntegerField()
job_title = forms.CharField(label='Title', initial='',
required=True)
job_desc = forms.CharField(label='Description', initial='',
required=False)
date_fr = forms.DateField(required=True, label ="Active From
Date")
date_to = forms.DateField(required=True, label ="Active To Date")
time_to = forms.TimeField(required=True, label ="Active From
Time")
time_fr = forms.TimeField(required=True, label ="Active To Time")
-

-- 
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.



Weird session behavior with mod_python

2010-11-27 Thread Thilo-Alexander Ginkel
Hello everyone,

I am currently trying to debug some weird session handling issues for
a Django application (Review Board), which is running on top of
mod_python / Apache:

What seems to happen is that authenticated user sessions are leaking
and get re-used for new browser sessions that have never authenticated
at all and their cookies cleared, i.e., these browser sessions that
never authenticated impersonate other users (typically the user that
last logged in).

I did some preliminary debugging and noticed that the
ModPythonRequests in question already come with an authenticated user
once they reach Review Board's custom auth middleware [1], which is
placed after django.contrib.auth.middleware.AuthenticationMiddleware
in the middleware chain.

Has someone ever experienced this stange behavior? Any hints how to
best debug this issue are much appreciated!

Thanks,
Thilo

[1] 
https://github.com/reviewboard/reviewboard/blob/master/reviewboard/admin/middleware.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: settings.DEBUG=False in django 1.2.1 and no mail connection

2010-11-27 Thread Sells, Fred
Please ignore previous, it was working but getting lost in my spam
filter.

-- 
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: remember me in login

2010-11-27 Thread andy
you might also want to take a look at this "Remember me for login"
snippet from django snippets

http://djangosnippets.org/snippets/1881/

On Nov 27, 6:00 am, robos85  wrote:
> request.session.set_expiry() it's ideal for me:)
>
> On 27 Lis, 02:01, Addy Yeow  wrote:
>
> > i use thishttp://djangosnippets.org/snippets/1881/
>
> > On Sat, Nov 27, 2010 at 8:07 AM, robos85  wrote:
> > > Is there any easy way to do remember me trigger during login?
> > > I know that there is SESSION_COOKIE_AGE but it's set site-wide. Is
> > > there any possibility to set expiration at browser close or x time?
>
> > > --
> > > 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 > >  groups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.

-- 
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: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-27 Thread marty3d
The XView middleware was the culprit. After removing that, the issues
completely disappeared. For some reason it was added as default (this
could have been in 1.1, I don't know), and I never used it, so it was
no loss at all :)

Thank you!
/Martin

On Nov 26, 10:59 am, Łukasz Rekucki  wrote:
> On 26 November 2010 10:35, marty3d  wrote:
>
> > I have disabled cache and still getting the error. That
> > leaves...what? :/
>
> > I could really appreciate some help debugging this.
>
> On a closer look, this looks like:http://code.djangoproject.com/ticket/13842; 
> But then, you must have
> changed something in your code/settings (like migrating from Django
> 1.1 syndication views or adding XView).
>
> --
> Łukasz Rekucki

-- 
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: Potential bug in [Typed]ChoiceField validation mechanism

2010-11-27 Thread ethereon
Forgot to add :

The problem can be avoided if both set of values are first normalized,
as :

>>> Decimal('0.50').normalize()
Decimal('0.5')

Perhaps this should be internally taken care of, instead of relying on
the user to normalize it?

On Nov 27, 1:04 pm, ethereon  wrote:
> In brief, a [Typed]ChoiceField can reject a valid choice of type
> Decimal because it is incorrectly compared using smart_unicode.
> Decimal('0.5')==Decimal('0.50') is true, while '0.5'=='0.50' is false.
>
> Verbosely, consider a model defined like so :
>
>     class Foo(models.Model):
>
>         BAR_CHOICES = (
>             (Decimal('0.25'), 'quarter'),
>             (Decimal('0.50'), 'unit')
>         )
>
>         bar = models.DecimalField(max_digits=4, decimal_places=2,
> choices = BAR_CHOICES)
>
> and a ModelForm based on it :
>
>     class FooForm(forms.ModelForm):
>
>         class Meta:
>             model = models.Foo
>
> Now :
>     >> FooForm({'bar':'0.50'}).is_valid()
>     true
>     >> FooForm({'bar':'0.5'}).is_valid()
>     false # errors = {'bar': [u'Select a valid choice. 0.5 is not one
> of the available choices.']}
>
> This issue might arise when the choices are dynamically generated, as
> Python isn't rigorous about trailing zeros :
>
>     >>> Decimal('1.0') + Decimal('0.5')
>     Decimal('1.5')
>     >>> Decimal('1.0') + Decimal('0.50')
>     Decimal('1.50')

-- 
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.



Potential bug in [Typed]ChoiceField validation mechanism

2010-11-27 Thread ethereon
In brief, a [Typed]ChoiceField can reject a valid choice of type
Decimal because it is incorrectly compared using smart_unicode.
Decimal('0.5')==Decimal('0.50') is true, while '0.5'=='0.50' is false.

Verbosely, consider a model defined like so :

class Foo(models.Model):

BAR_CHOICES = (
(Decimal('0.25'), 'quarter'),
(Decimal('0.50'), 'unit')
)

bar = models.DecimalField(max_digits=4, decimal_places=2,
choices = BAR_CHOICES)


and a ModelForm based on it :

class FooForm(forms.ModelForm):

class Meta:
model = models.Foo

Now :
>> FooForm({'bar':'0.50'}).is_valid()
true
>> FooForm({'bar':'0.5'}).is_valid()
false # errors = {'bar': [u'Select a valid choice. 0.5 is not one
of the available choices.']}


This issue might arise when the choices are dynamically generated, as
Python isn't rigorous about trailing zeros :

>>> Decimal('1.0') + Decimal('0.5')
Decimal('1.5')
>>> Decimal('1.0') + Decimal('0.50')
Decimal('1.50')

-- 
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: remember me in login

2010-11-27 Thread robos85
request.session.set_expiry() it's ideal for me:)

On 27 Lis, 02:01, Addy Yeow  wrote:
> i use thishttp://djangosnippets.org/snippets/1881/
>
>
>
>
>
>
>
> On Sat, Nov 27, 2010 at 8:07 AM, robos85  wrote:
> > Is there any easy way to do remember me trigger during login?
> > I know that there is SESSION_COOKIE_AGE but it's set site-wide. Is
> > there any possibility to set expiration at browser close or x time?
>
> > --
> > 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 > groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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

2010-11-27 Thread Sam Lai
I don't know much about converting WSDL to SOAP/REST in Django.
Probably easier with SOAP as WSDL and SOAP are often used together.

You need to check if the first character is actually the BOM. Open the
file in a hex editor and see what the first byte is. It might not be.
A quick Google tells me expat should be able to deal with the BOM, so
it might be some other character. In any case, the first character
needs to be the < character. There can't be any visible/invisible
characters preceding it, e.g. a newline.

If the first two bytes are FE FF then it is the BOM.

On 27 November 2010 19:09, sami nathan  wrote:
> 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.
>
>

-- 
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

2010-11-27 Thread sami nathan
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.