Re: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread Stephen J. Butler
For those interested, here's some code that does this in Django as request.PARAMS: https://github.com/sbutler/django-nestedparams It is extremely alpha. I wouldn't use it in your code. I did it as a proof of concept, but if other want to hack on it I'd be happy to accept pull requests. On Thu, M

Re: Jinja2 with Django 1.8c1 & cannot import name 'Environment'

2015-03-28 Thread Simon Charette
Hi Rolf, Since your `jinja2.py` file sits before your installed `jinja2` package directory in your PYTHONPATH you end up trying to import `Environement` from your the module you're defining and not the installed `jinja2` module. Rename your jinja2.py file something else and things should be wor

sidebar menu appears with every click on the main menu item before it disappears

2015-03-28 Thread Behee Trimble
Please help me to detect this problem: sidebar menu appears with every click on the main menu item. I inherited a Django app and I am trying to learn it. However, since this is a real app and in use I do not have much time to investigate in details. I really appreciate your help. I include only

Jinja2 with Django 1.8c1 & cannot import name 'Environment'

2015-03-28 Thread Rolf Brudeseth
Does anybody see what I may be doing wrong here? I followed this example: https://github.com/aaugustin/mtefd/blob/master/multiple-template-engines.rst#jinja2-backend The project is at: /www/pbs_site /www/pbs_site$ python manage.py check System check identified no issues (0 silenced). #

Re: Problem at server startup

2015-03-28 Thread Luis Zárate
What is your machine name? It had a non ASCII character? Do you use __unicode___ ? In python 3 is __str__ El sábado, 28 de marzo de 2015, Anderson Resende < andersonresend...@gmail.com> escribió: > Put this code on first line in your files.py: > > # -*- coding: utf-8 -*- > > > Maybe work! > >

Re: Strange deployment problem

2015-03-28 Thread Miloš Kozák
Sure, those credentials work. If you look at the last line of the error output you can see that django wants to use user root whereas I am using user demo -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django TCP Socket Communication

2015-03-28 Thread bobdxcool
it's a bit hard to understand what you exactly want to achieve. How can you communicate with the microcontroller? Do you connect to one of its TCP ports, and send it data, I assume. Is it done with a well-known protocol, like HTTP, or some custom one? *Yes, one of the TCP port on the micro-contro

Re: Strange deployment problem

2015-03-28 Thread Gergely Polonkai
Hello, do you have command line access on that machine? If so, can you connect to the database using the credentials in the settings file? Best, Gergely On 28 Mar 2015 14:21, "Anderson Resende" wrote: > > I don't used mysql,but in postgres for you write in a database your user > db needs permis

Re: Django TCP Socket Communication

2015-03-28 Thread Gergely Polonkai
Hello, it's a bit hard to understand what you exactly want to achieve. How can you communicate with the microcontroller? Do you connect to one of its TCP ports, and send it data, I assume. Is it done with a well-known protocol, like HTTP, or some custom one? You say that it opens a port every 5 s

Re: Problem at server startup

2015-03-28 Thread Anderson Resende
Put this code on first line in your files.py: # -*- coding: utf-8 -*- Maybe work! -- 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...@g

Re: Strange deployment problem

2015-03-28 Thread Anderson Resende
I don't used mysql,but in postgres for you write in a database your user db needs permission to write. Check that! -- 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

Re: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread Gabriel Pugliese
Probably we could get most used frameworks or parser libs from most languages to just get statistics of what is being done? I'm not saying that we need to change anything if we see some "standard", it's just for science. On Sat, Mar 28, 2015, 8:38 AM Masklinn wrote: > On 2015-03-28, at 11:37 , S

Re: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread Masklinn
On 2015-03-28, at 11:37 , Stephen J. Butler wrote: > > Let's be accurate here: what PHP, Rails, jQuery, et al. do is not > "non-standard". There's nothing wrong with their key-value pairs in > the query string. Well there is the problem that it's really not specified (so hardly a standard), the

Re: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread James Bennett
On Sat, Mar 28, 2015 at 5:37 AM, Stephen J. Butler wrote: > Let's be accurate here: what PHP, Rails, jQuery, et al. do is not > "non-standard". There's nothing wrong with their key-value pairs in > the query string. This is further illustrated by the fact that no > browser I am aware of has probl

Re: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread Stephen J. Butler
On Fri, Mar 27, 2015 at 2:50 PM, Carl Meyer wrote: > Hi Gabriel, > > On 03/27/2015 01:34 PM, Gabriel Pugliese wrote: >> @Masklinn >> That input is from jQuery's default serializer. It sends the data with >> contentType 'application/x-www-form-urlencoded; charset=UTF-8'. I just >> need to pass a da

Re: Django TCP Socket Communication

2015-03-28 Thread bobdxcool
But is that compatible with django ? On Sat, Mar 28, 2015 at 1:24 AM, François Schiettecatte [via Python] < ml-node+s6n5090799...@n6.nabble.com> wrote: > Have you looked at the ‘socket’ python library ? > > François > > > On Mar 27, 2015, at 3:05 PM, bobdxcool <[hidden email] >

RE: QueryDict and its .dict() method - why does it do that?

2015-03-28 Thread bab mis
Sent from my Windows Phone From: Simon Charette Sent: ‎3/‎28/‎2015 2:01 To: django-users@googlegroups.com Subject: Re: QueryDict and its .dict() method - why does it do that? Hi Gabriel, One thin

Re: Search user from Database

2015-03-28 Thread Chenxiong Qi
On Friday, March 27, 2015 at 11:10:19 PM UTC+8, Filipe Ximenes wrote: > > Just checking: when you say you are adding users using > > Group.users.add(user) > ​ > in this case `Group` is an instance of the Group model and NOT the actual > model, correct? > > if so, you can make a query using the s

authenticate() not working

2015-03-28 Thread Kishan Mehta
Hi all, >>My html has following input type : Password: >> user = authenticate(username=username, password=password) is not able to authenticate in views.py... Not able to login. P.S : when i do : http://groups.google.com/group/django-users. To view this discussion on the web visit https: