Re: how to use get_queryset in my code

2012-11-21 Thread Nebros
yes, i copied all data in the correct folder, but it didnt work. but thats not more my problem... i changed row = cursor.fetchall() into row = cursor.fetchone() this give me out the correct data into the correct column of my table. my next problem there is, why it doesent work with fetchall o

Re: how to use get_queryset in my code

2012-11-21 Thread ?manu*
On Wednesday, November 21, 2012 7:53:59 AM UTC+1, Nebros wrote: > Its not a problem of the version, my pycharm gave no error, but it was not > possible to generate the model... by generating there was always an > error, like it cant find an class or something else > Are you sure the problem is

Re: how to use get_queryset in my code

2012-11-20 Thread Nebros
Its not a problem of the version, my pycharm gave no error, but it was not possible to generate the model... by generating there was always an error, like it cant find an class or something else. Am Dienstag, 20. November 2012 19:35:36 UTC+1 schrieb Martin J. Laubach: > I tryed first this par

Re: how to use get_queryset in my code

2012-11-20 Thread Martin J. Laubach
> > I tryed first this part with db models. but mssql doesnt work on it... > BTW, why? I see there's a django-mssql, that should allow you to connect to the database. Doesn't it work with your version? I've never tried it though, I just googled around a bit... -- You received this messag

Re: how to use get_queryset in my code

2012-11-20 Thread Tom Evans
On Tue, Nov 20, 2012 at 2:07 PM, Nebros wrote: > so pls just help me by this problem, cause i do not know everything about > programming with django. The problem is that there is a lot going wrong in your code than just not knowing Django. I would recommend some python training, or a good book o

Re: how to use get_queryset in my code

2012-11-20 Thread Nebros
I tryed first this part with db models. but mssql doesnt work on it... i cant generate the model by themself. thats why i made it by my own. in addition, the next part of my program is to implements lotus notes db... i can do it on the same way, thats why i try to do this. And yes, i create my o

Re: how to use get_queryset in my code

2012-11-20 Thread Martin J. Laubach
Okay. You seem to be rather confused about the django approach to things I'm afraid. (a) You use raw sql instead of django's ORM mapper. That's okayish, but then you're on your own for building your queries and have to manually do validation and escaping and whatnot, which is, as you notice

Re: how to use get_queryset in my code

2012-11-20 Thread Nebros
Ok, what is my task... I have my first page called "Portal". i can give there in a variable, and can send the value with this form to the next page. I tryed now to use this value as a variable you can see here: AND (x.t_user = %r)" %x this %x have to be my value of page one, i have given. I

Re: how to use get_queryset in my code

2012-11-20 Thread Daniel Roseman
On Tuesday, 20 November 2012 07:25:55 UTC, Nebros wrote: > I can really need your help, i don't have found the solution till now. :( > You've had no replies because no-one can understand what you're asking. Something about querysets, but you seem to be using raw SQL in your code, for no appare

Re: how to use get_queryset in my code

2012-11-19 Thread Nebros
I can really need your help, i don't have found the solution till now. :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/l397ya2KOJgJ. To post to this gro

Re: how to use get_queryset in my code

2012-11-19 Thread Nebros
It will be very helpful, if anyone can help me. I need it for my work and I cant find the solution... :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GV

how to use get_queryset in my code

2012-11-19 Thread Nebros
Good morning I tryed to use a form to give a variable "x" to my filter... what i have: startig page Portal- {% include "header.html" %} Kunde {% include "header2.html" %} Kunde {% block content %}Zeit der Aktualisierung {{ current_date }}{% endblock %}