Re: (ModelForm) confusion

2014-08-03 Thread Kamal Kaur
> There where a few hooks in your view, for example: you check for > 'is_valid()' but there is no code to execute after. I've changed it a bit: > > > http://pastie.org/9431548 > > Thanks for the modifications. @Satinderpal Links are working. And yes, you got it right. Now I want that it

Re: Get latest timestamp+value from each group

2014-08-03 Thread Joshua Lyon
Thanks for the feedback. I'm not sure I would want to change the Device object directly, but I might consider a separate Snapshot object which keeps record of the latest Log object per Device. If I go down that route, I think I'll have to analyze a bit more between a One-to-One relationship

Re: What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Javier Guerra Giraldez
On Sun, Aug 3, 2014 at 9:03 PM, Malik Rumi wrote: > Is this a Linux thing? on it's about the PATH variable. it's usually considered less safe to include '.' (the current directory) in PATH. Of course, that doesn't stop MS to put it right in the head of the default PATH value. -- Javier --

Re: What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Lachlan Musicman
Not really, it's a Nix thing (ie, OSX and BSD as well as linux). Basically, if you set the file to be executable (chmod +x) then ./filename is a way of executing using the default file association (.py is python usually). The ./ bit indicates "look in the folder we are in" - if the file is not in

What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Malik Rumi
Is this a Linux thing? -- 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 django-use

Re: django-socketio fails - even in example project - appreciate a clue

2014-08-03 Thread Arthur Alvim
I was trying to do some example too but using gevent+socket.io . -- Atenciosamente - Arthur Alvim [ arth.al...@gmail.com ] IFPE - Tecnólogo em Análise e Desenvolvimento de Sistemas UFPE CIn - Mestre em Ciência da Computação "Partilha os teus conhecimentos. É a forma de conseguires a imortalida

Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
Matt, This is what I got in Windows PowerShell: C:\Anaconda\python.exe: can't open file '2.7.6': [Errno 2] No such file or directory. Thanks. Xuan On Thursday, July 24, 2014 4:07:26 PM UTC-4, Matt Gushee wrote: > > Hi, Liu Xuan-- > > What result do you get when you do the following? > > Pyt

Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
Matt, If I typed python in Windows Powershell, I got the following: Python 2.7.6 | Anaconda 1.9.1 (32-bit)| (default, Nov 11 2013, 10:50:31) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. Thanks. Xuan On Thursday, July 24, 2014

django-socketio fails - even in example project - appreciate a clue

2014-08-03 Thread esatterwh...@wi.rr.com
The error sound pretty simple. You user doesn't have the required permission to bind to port 834. You,ll either need to run it a sudden or change the port it runs on to a higher port. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

How to modify subpackage in django project

2014-08-03 Thread Chong Li
I am running into a problem that I need to change a subpakcage of a big third party package. the big package, lets say foo, includes many subpackages, and I want to modify one of them, lets say bar. After weighing many options, I decide to dynamically change sys.modules when my django project

Modify a subpackage behavior

2014-08-03 Thread Chong Li
I am running into a problem that I need to change a subpakcage of a big third party package in django. the big package, lets say foo, includes many subpackages, and I want to modify one of them, lets say bar. After weighing many options, I decide to dynamically change sys.modules when my djang

Re: Going throught the Django tutorial help pls

2014-08-03 Thread Babatunde Akinyanmi
Perhaps you should show your model definition and the complete traceback. A wild guess though, did you syncdb? On 2 Aug 2014 20:23, "Michael Carey" wrote: > FieldError at /polls/ > > Cannot resolve keyword 'name' into field. Choices are: choice, id, pub_date, > question > > > > > > > > > > > >

Re: Image upload problem with UserProfile and my form

2014-08-03 Thread Pepsodent Cola
Hi, No luck the image still points to the wrong location. There was a link however when clicked it says this. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000*/accounts/profile/* 1406912993_56_tumblr_m5xo9h5X3E1qgfdhto1_500.gif I'm suspecting it's how my url confs ar

django-socketio fails - even in example project - appreciate a clue

2014-08-03 Thread Antony Gelberg
Hi all, I'm relatively new to django, and trying to implement a basic proof-of-concept with django-socketio. I saw this error in the app that I was writing, and only after a while banging my head against the wall, realized that it wasn't a problem in my code. The same error happens when running