Re: Cannot get xml using xmlhttprequest GET from an external javascript document

2015-03-14 Thread Tim Graham
Not sure your question is best suited for this mailing list as this seems to be a JavaScript question and not Django related, but maybe you are running into the the same-origin policy: http://en.wikipedia.org/wiki/Same-origin_policy It helps to include a code snippet as it's difficult to

Cannot get xml using xmlhttprequest GET from an external javascript document

2015-03-14 Thread Chen Kun
I tested the link and the link returns me a XML in the browser. In my external javascript document, I try to use get XMLhttprequest to get the document but it fails. The readystate=4 but status=0. Does anyone know the reason? Thanks. -- You received this message because you are subscribed to

Re: TEMPLATE_CONTEXT_PROCESSORS missing in settings.py

2015-03-14 Thread Thế Giới Âm Nhạc
thank you, it is helpful for me. thank you very much :) On Saturday, June 22, 2013 at 8:24:27 AM UTC+7, asa...@princeton.edu wrote: > > Thank you! I'm always amazed at how quickly and accurately people respond > in this group--much appreciated. > > Alok > > On Friday, June 21, 2013 9:18:59 PM

Re: [Python] Problem with arguments given

2015-03-14 Thread Babatunde Akinyanmi
On 14 Mar 2015 12:22, "John" wrote: > > > Dariusz, > > You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. > In other words, you have to first create

Re: [Python] Problem with arguments given

2015-03-14 Thread Anderson Resende
Change your method: def ask_number(self,question,low,high): response=None while response not in range(low,high): response=int(input(question)) change self to class: This way you can call the method directly from Hand. @classmethod def

Re: establish database connectivity to Mysql database using django

2015-03-14 Thread Gerald Klein
http://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html On Sat, Mar 14, 2015 at 9:52 AM, Shichand Chandran < shichandchandran...@gmail.com> wrote: > could some one help us > > -- > You received this message because you are subscribed to the Google Groups > "Django

establish database connectivity to Mysql database using django

2015-03-14 Thread Shichand Chandran
could some one help us -- 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 post to this group, send email to

Re: [Python] Problem with arguments given

2015-03-14 Thread John
Dariusz, You've declared ask_number() as an instance method in class Hand. You are calling it as if it was a class method. See https://docs.python.org/3.1/tutorial/classes.html. John On 14/03/15 08:30, Dariusz Mysior wrote: > Mam jeden problem nie wiem dlaczego mam bład > I have problem with

How to split the settings on per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed the system which works for single user. But, now, all models can be seen by admin user. I must split the user on per-user on admin web page. One can not see each other's admin page. Could you tell me how do you set settings?

How to split the models on per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed the system which works for a single user. For later plan, I would split the models on per-user. This is the model below which I must split on per-user. class Questions(models.Model): qid = models.IntegerField(

How to split the models on a per-user.

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed system which develop. But, the system has designed mistook the logical design. I must split the models on a per-user. This is the model below which I must split on a per-user. class Questions(models.Model): qid =

How to split admin on a per-user

2015-03-14 Thread Sugita Shinsuke
Hi there. I use Django 1.6 version. I have already developed system which develop. But, now, all models can be seen by admin user. I must split the user on a per-user on admin web page. I want to not see a model that each other is owned by another user. Could you tell me how do you set

[Python] Problem with arguments given

2015-03-14 Thread Dariusz Mysior
Mam jeden problem nie wiem dlaczego mam bład I have problem with this bug :/ Traceback (most recent call last): > File "C:\Python31\makao.py", line 23, in > nr_players=Hand.ask_number("Ilu graczy ma wziąść udział w grze > (2-5):",low=2,high=5) > TypeError: ask_number() takes exactly 4

Re: Django 1.7 I just installed postgres, it works but I cannot see my data in postgres database

2015-03-14 Thread Sabine Maennel
Thanks everybody, I will try to change the database and user name. I found the data. I had two installations of postgres. I appreciate your help in this Sabine Am Freitag, 13. März 2015 14:30:49 UTC+1 schrieb John Fabiani: > > Have you

How can i collect profile information (E.g.: user_id and name..etc.) from database.

2015-03-14 Thread 'Yip Terence' via Django users
DearAll, How can i collect profile information (E.g.: user_id and name..etc.) from MySQL database? Thanks and Regards, Terence -- 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