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
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
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
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
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
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
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.
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
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
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
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
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
>
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,
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
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
15 matches
Mail list logo