Re: compiler

2012-11-05 Thread Markus Christen
one where you have the backslash.) > > On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen > > > wrote: > >> Good Morning >> I have downloaded files, that can helps by my mssql-odbc connection. This >> is my downloaded file: >> >> http://code.google.com/p

compiler

2012-10-31 Thread Markus Christen
Good Morning I have downloaded files, that can helps by my mssql-odbc connection. This is my downloaded file: http://code.google.com/p/django-pyodbc/source/browse/trunk/sql_server/pyodbc/compiler.py?r=190 On lines 188 and 273, i become the message "'return' outside of function". It's not a spac

Re: Database setup

2012-10-30 Thread Markus Christen
> > What i know now: > > -- > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'baan5c', > 'USER': '***', > 'PASSWORD': '*', > 'HOST': 'MAURITIUS', > 'PORT': '1433', >

Re: Database setup

2012-10-29 Thread Markus Christen
EDIT: I have a second to implements. Its a Lotus Notes DB, and for the userauth there is a file on my computer. I tryed it with the odbc of IBM: --- import pyodbc conn = pyodbc.connect('DRIVER={Lotus Notes SQL Driver (*.nsf)};SERVER=Wind/Sefa

Database setup

2012-10-29 Thread Markus Christen
Good Morning First i made an odbc connect liek this: - import pyodbc cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=MAURITIUS;DATABASE=baan5c;UID=***;PWD=*') cursor = cnxn.cursor() cursor.execute("SELECT x.t_name, y.t_mail FROM tttaa

Re: implement of view

2012-10-25 Thread Markus Christen
> > How can i create 2 views on one page? >> def sql(request): and def portal(request): >> > -- 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/-/xneUlf_fSGA

Re: implement of view

2012-10-25 Thread Markus Christen
Hmm ok, i can use return render_to_response("sql.html", { 'row': row }) and when i call now http://127.0.0.1:8000/sql/, i can see the correct data. But i will call http://127.0.0.1:8000/portal/ and try to implements the sql code in this page. I have by base.html in addition now " {% incl

Re: implement of view

2012-10-25 Thread Markus Christen
Ok, when i use now http://127.0.0.1:8000/sql/, the output is Kundendaten [('bla Hansruedi (THA) ', 'hansruedi@blubb.ch ')]. i have in base.html now " {% include "sql.html" %}" in addition. when i use now http://127.0.0.1:8000/portal/, my output is just: Kundendaten . how can i fix this pro

Re: implement of view

2012-10-24 Thread Markus Christen
> > Thank you for this page. I take my time today, to learn on it. :) > -- 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/-/a9kvWj-zSjAJ. To post to this group

Re: implement of view

2012-10-24 Thread Markus Christen
> > Thank you for your answer. i have chapter 1-4 of > http://www.djangobook.com/en/2.0/index.html done, but not much time to go > throught the hole book atm. i will try it with your code. :) > -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: implement of view

2012-10-24 Thread Markus Christen
> > I forgot, sql is now hardcodet and i have to change it. on first page i > have to give the filter and the username... > -- 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/m

implement of view

2012-10-24 Thread Markus Christen
Hi all i have there a little problem and my knowhow with django is not existent. ^^ What i have... --- urls.py - from django.conf.urls import patterns, include, url from klasse.views import portal, sql urlpatterns = patterns('', (r'^portal/$', portal), (r'^sql/$', sql)

WebPage with MsSql access

2012-10-17 Thread Markus Christen
Hi all I have to make a WebPage with Django. It must be possible to connect from the page to the mssql database. i have an odbc program know atm, and this works... - import pyodbc cnxn = pyodbc.connect('DRIVER={SQL Server}; SERVER=MAURITIUS;DATABASE=baan5c;UID=portal;PWD=P0rtalReader') cur

Django - Lotus Notes

2012-09-25 Thread Markus Christen
I have to create a web-service and i hope it works with Django. My plan is connecting to a Lotus Notes database. Can this work? If yes, how? Else no, how can i do this, witch programm do i need? I will programm it based on a Python language. I am a new programmer and used Python just for one we