Re: views on one page

2012-11-16 Thread Nebros
That was exactly what i have searched for. thank you very mutch. it works now. i post here again my current code, if another needs the same help... views- def kundendaten(request): cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=MAURITIUS;DATABA

Re: views on one page

2012-11-15 Thread Vibhu Rishi
I don't think you can use 2 views on the same page. what you can do is pass 2 values to the same page to display. so in the 2nd view you will do as follows: return render_to_response("kundendaten.html", { 'row': row,'current_date': now }, context_instance=RequestContext(request)) and make sure t

Re: views on one page

2012-11-15 Thread Nebros
Are there not more intput? pls help me, I do not go any further...! Am Mittwoch, 14. November 2012 10:50:04 UTC+1 schrieb Nebros: > Good morning > I have 2 diffrent views, every one i just needet on one page... till now. > > view one-output is the time- > @csrf_protect > def

Re: views on one page

2012-11-14 Thread Nebros
I need both together, because later i need another output from another database (lotus notes (i hate it)) on the same page. Can you make a code for me? im really not good (a new user)... when one part works, maybe i know than how to implements the next database by myself. :) Am Mittwoch, 14. No

Re: views on one page

2012-11-14 Thread Martin J. Laubach
Do you actually need both as views proper? The easiest thing would be to factor out the fetching part of the kundendaten view, make that return just a dictionary, then call that and update the context in the first view. -- You received this message because you are subscribed to the Google Group

views on one page

2012-11-14 Thread Nebros
Good morning I have 2 diffrent views, every one i just needet on one page... till now. view one-output is the time- @csrf_protect def portal(request): now = datetime.datetime.now() return render_to_response('portal.html', {'current_date': now}, context_instance=Reques

Re: Multiple views on one page

2007-02-01 Thread [EMAIL PROTECTED]
Probably the easiest thing would be to send the form as you're doing, then bring the other stuff in with template tags. On Feb 1, 3:06 pm, "adamr" <[EMAIL PROTECTED]> wrote: > Yeah I think I get what you're saying now. I found a few tutorials > that used template tags to get data out of a model.

Re: Multiple views on one page

2007-02-01 Thread adamr
Yeah I think I get what you're saying now. I found a few tutorials that used template tags to get data out of a model. Do you know if there are any examples of how to do this with a form? On Feb 1, 2:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Adamr, I still think you're looking for t

Re: Multiple views on one page

2007-02-01 Thread [EMAIL PROTECTED]
Adamr, I still think you're looking for template tags. My index page, for example, just goes direct_to_template, then is filled up with various things from all over... login form, and at least three other apps. On Feb 1, 1:45 pm, "ashwoods" <[EMAIL PROTECTED]> wrote: > as far as i get it, its 1 v

Re: Multiple views on one page

2007-02-01 Thread ashwoods
as far as i get it, its 1 view per url. - a view is a response to a request, you ALWAYS get only one request, and for each posible request (url) you make one view. so if there is something you want to use over and over again in more than one view (as a form), you just make a custom tag or a conte

Re: Multiple views on one page

2007-02-01 Thread adamr
I still don't really grasp how that applies. For example, my url processor will use the included view which auto- generates the login form when I go to "accounts/login/" Alternatively, when someone goes to the index page, the url processor uses the "news" view so it can display the recent news f

Re: Multiple views on one page

2007-02-01 Thread ashwoods
i might not be understanding exactly what you mean, but i think what you want is this: http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors On Feb 1, 7:54 pm, "adamr" <[EMAIL PROTECTED]> wrote: > Sorry, django.contrib.admin.urls is the wrong view, I am trying to use >

Re: Multiple views on one page

2007-02-01 Thread [EMAIL PROTECTED]
Why not use template tags? On Feb 1, 12:54 pm, "adamr" <[EMAIL PROTECTED]> wrote: > Sorry, django.contrib.admin.urls is the wrong view, I am trying to use > the correct login view. > > On Feb 1, 1:51 pm, "adamr" <[EMAIL PROTECTED]> wrote: > > > This seems like it should be a pretty easy concept,

Re: Multiple views on one page

2007-02-01 Thread adamr
Sorry, django.contrib.admin.urls is the wrong view, I am trying to use the correct login view. On Feb 1, 1:51 pm, "adamr" <[EMAIL PROTECTED]> wrote: > This seems like it should be a pretty easy concept, but I cannot > figure it out. I've spent the past day searching for how to > incorporate multi

Multiple views on one page

2007-02-01 Thread adamr
This seems like it should be a pretty easy concept, but I cannot figure it out. I've spent the past day searching for how to incorporate multiple views on the same page with absolutely no luck. This seems like a topic that would be crucial to incorporate into the documentation and/or tutorials. O