Re: Selecting values from database

2013-07-24 Thread Christian Erhardt
Just do be clear... you are mixing strings and numbers in one table on different rows? I think your data structure is wrong and you will not be able to achieve what you're trying. I'd would be easy if the table would look like this: +-+ |Activities | +-+---+ |A

Re: new field in models

2013-07-24 Thread Christian Erhardt
I'd go with Satinderpal Singh advice. Use South. It takes some time to get used to it, but when you realize how it's working, it absolutely awesome Am Montag, 22. Juli 2013 09:53:00 UTC+2 schrieb Harjot Mann: > > In django when we add a new field in existing class, we need to drop > the table a

Re: Reverse Lookup Failure on password change/reset views

2013-07-24 Thread Peter
> used the url tag in the template wrong - it changed between two django versions Thanks Christian, but I'm pretty sure the reverse is being invoked from the Django auth code (django.contrib.auth.password_reset) , not my template; nevertheless the template I'm using (registration/password_reset

Re: Reverse Lookup Failure on password change/reset views

2013-07-24 Thread Peter
On Wednesday, July 24, 2013 4:46:07 PM UTC+9:30, Peter wrote: > > > django.contrib.auth.password_reset > Sorry, that should be: django.contrib.auth.views.password_reset -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Reverse Lookup Failure on password change/reset views

2013-07-24 Thread Peter
> Sorry, that should be: django.contrib.auth.views.password_reset In fact, I'm pretty sure it's this line of code in auth:: File "/usr/local/lib/python2.7/ dist-packages/django/contrib/auth/views.py" in password_reset 147. post_reset_redirect = reverse('django.contrib.auth.views.passw

custom management commands django

2013-07-24 Thread navnath gadakh
i have created crontab for custom management command like this :* * * * * /usr/lib/python2.7 /media/Sonisons/SOrigin/instaShare/src/instaShare/manage.py cronjobs >>/home/navnath/tt.txt 2>&1 But error is: /bin/sh: 1: /usr/lib/python2.7: Permission denied I have done chmod 777 - R /usr/lib/pyth

Re: custom management commands django

2013-07-24 Thread Brett Parker
On 24 Jul 01:28, navnath gadakh wrote: > i have created crontab for custom management command like this :* * * * * > /usr/lib/python2.7 > /media/Sonisons/SOrigin/instaShare/src/instaShare/manage.py cronjobs > >>/home/navnath/tt.txt 2>&1 > But error is: > /bin/sh: 1: /usr/lib/python2.7: Permiss

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-07-24 Thread Wasil Sergejczyk
https://twitter.com/raphaelbarrois/status/337924659666362368 worked for me, after i updated from 1.0.3 to 1.9.14 понедельник, 15 апреля 2013 г., 1:44:25 UTC+6 пользователь Ben Holloway написал: > > using uWSGI 1.0.4 for reference > > On Sunday, April 14, 2013 1:43:26 PM UTC-6, budl...@gmail.com w

Make a realtime video and Teleconsultation

2013-07-24 Thread Christina
I want to upload the realtime image/ video to my website. I have one ultrasound machine,I will transfer ultrasound video/image using video grabber and transfer to my laptop. I want to upload this image/ video to my website as realtime,is that possible? I'm beginner,previously already developed on

Object Model

2013-07-24 Thread Sivaprakash Shanmugam
Hi I'm new to DJango framework I fairly understand how the basics works. I want to define an object (typically getter setter in Java) in which I want to fill data to create my own response through web service. But I could only see the Model which are related to DB. How to do it? Thank you -

Problem with profile

2013-07-24 Thread r . vaseev
When i try to submit filled form it redirects me to login page with my form which perceives as incorrect. What it may come from? #views.py from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.shortcuts import render, ge

Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
I have spent hours trying to find the answer to this. What makes it even more frustrating is that I'm new to django development and not a real programmer by trade (I am a UNIX admin) so I am struggling to label what I am trying to do so that I can search for an answer. Here's what I have:

Re: Make a realtime video and Teleconsultation

2013-07-24 Thread Rafael E. Ferrero
2013/7/24 Christina > I want to upload the realtime image/ video to my website. > I have one ultrasound machine,I will transfer ultrasound video/image using > video grabber and transfer to my laptop. > I want to upload this image/ video to my website as realtime,is that > possible? > I'm beginner

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-24 Thread Carsten Fuchs
Hi all, Am 15.07.2013 17:41, schrieb Carsten Fuchs: we have two queries/QuerySets Q_a and Q_b, each of which use INNER joins in the generated SQL when evaluated individually. When I use a Q object to "OR" these two QuerySets, the INNER joins turn into LEFT OUTER joins -- which in turn cause a h

Re: Object Model

2013-07-24 Thread Daniel Roseman
On Wednesday, 24 July 2013 04:32:51 UTC-7, Sivaprakash Shanmugam wrote: > Hi > > I'm new to DJango framework I fairly understand how the basics works. I > want to define an object (typically getter setter in Java) in which I want > to fill data to create my own response through web service. But

Re: Reverse Lookup Failure on password change/reset views

2013-07-24 Thread Daniel Roseman
On Wednesday, 24 July 2013 00:26:44 UTC-7, Peter wrote: > > > Sorry, that should be: django.contrib.auth.views.password_reset > > In fact, I'm pretty sure it's this line of code in auth:: > > File "/usr/local/lib/python2.7/ > dist-packages/django/contrib/auth/views.py" in password_reset > 147.

Re: Backwards in the relationship chain?

2013-07-24 Thread Bill Freeman
First, is this a pre-existing data base whose format you are stuck with? While your models probably can be made to work, it is more common to let Django take care of creating a single primary key in a model (called "id" (lower case) by default). Also, while ForeignKey fields are implemented by st

Re: Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
Thank you so much for the reply and help. I am not stuck with this database format and can change it as necessary. I will modify it as you suggested (let Django create the primary key, remove the ID suffix from the column names, etc.). I will then look for the managers as you suggested. I d

Re: Backwards in the relationship chain?

2013-07-24 Thread Chris Ryan
Sorry. I should have typed the ID as lower case id in {% if user.Family. id = object.Teacher.id.Family. id %} On Wednesday, July 24, 2013 3:28:52 PM UTC-4, Chris Ryan wrote: > > Thank you so much for the reply and help. I am not st

Should anyone be using Django 1.3 in production at this point?

2013-07-24 Thread Bjorn Tipling
The django downloads section says versions of Django 1.3 are no longer supported with bug and security fixes. Obviously nobody ought to start a new project with Django 1.3, but is it critical to update? Since the release updates are broken down by version, it isn't clear to me if any of the iss

Re: Backwards in the relationship chain?

2013-07-24 Thread Bill Freeman
On Wed, Jul 24, 2013 at 3:28 PM, Chris Ryan wrote: > Thank you so much for the reply and help. I am not stuck with this > database format and can change it as necessary. I will modify it as you > suggested (let Django create the primary key, remove the ID suffix from the > column names, etc.).

Re: Backwards in the relationship chain?

2013-07-24 Thread Bill Freeman
On Wed, Jul 24, 2013 at 3:30 PM, Chris Ryan wrote: > Sorry. I should have typed the ID as lower case id in > > {% if user.Family. id = > object.Teacher.id.Family. > id %} > > Well, you may be confused there. The upper case version is

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Daniel Oźminkowski
Hello again, I just had a WTF moment. I kept trying to access 192.168.1.4/admin which opened 0.0.0.0:8000 consistently for the last couple of hours (notice this is not localhost). Then I've read somewhere: "check with curl what kind of reponse you get directly from gunicorn". So I did and it was f

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Avraham Serour
Well, if it works on incognito mode you should try cleaning your cookies On Jul 24, 2013 11:33 PM, "Daniel Oźminkowski" wrote: > Hello again, > > I just had a WTF moment. I kept trying to access 192.168.1.4/admin which > opened 0.0.0.0:8000 consistently for the last couple of hours (notice > this

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Mike Doroshenko II
I think this is a bug in Django. I am not using Nginx or Gunicorn and am also experiencing the same issue. http://sandbox.junior.evandro.dev.tecknoquest.com/ On that page the "Customer Service Django App " link works with and without a slas

Re: Should anyone be using Django 1.3 in production at this point?

2013-07-24 Thread Russell Keith-Magee
On Thu, Jul 25, 2013 at 3:03 AM, Bjorn Tipling wrote: > The django downloads section says versions of Django 1.3 are no longer > supported with bug and security fixes. Obviously nobody ought to start a > new project with Django 1.3, but is it critical to update? Since the > release updates are bro

server error (500)

2013-07-24 Thread Oliver
*If I set DEBUG = False, I get this* It worked!Congratulations on your first Django-powered page. Of course, you haven't actually done any work yet. Here's what to do next: - If you plan to use a database, edit the DATABASES setting in mysite/settings.py. - Start your first app by runn

Re: Object Model

2013-07-24 Thread Ovnicraft
On Wed, Jul 24, 2013 at 6:32 AM, Sivaprakash Shanmugam < sivaprakashshanmu...@gmail.com> wrote: > Hi > > I'm new to DJango framework I fairly understand how the basics works. I > want to define an object (typically getter setter in Java) in which I want > to fill data to create my own response thr