Re: django template

2014-07-16 Thread Andreas Kuhne
Hi, Sure, but I won't always be able to answer :-) Regards, Andréas 2014-07-16 13:49 GMT+02:00 ngangsia akumbo : > Thanks bro for this inside , can i always contact u personally if i had >> some issues please. >> > > I am from western Africa - Cameroon. > > Thanks in

Re: django template

2014-07-16 Thread ngangsia akumbo
> > Thanks bro for this inside , can i always contact u personally if i had > some issues please. > I am from western Africa - Cameroon. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: django template

2014-07-16 Thread ngangsia akumbo
> > Thanks bro for this inside , can i always contact u personally if i had > some issues please. > I am from western Africa - Cameroon. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: django template

2014-07-16 Thread Andreas Kuhne
Hi again, You can create separate base files, but you will have to save each under different names. For example if you had an app called website, you could have a website_base.html that has {% extends "base.html" %} in it. As to how to link them together? What do you mean? Each app should

Re: django template

2014-07-16 Thread ngangsia akumbo
After creating these app with their html files , how do i link them together ? I am sorry if the question is stupid On Wednesday, July 16, 2014 10:11:45 AM UTC+1, Andréas Kühne wrote: > > Hi, > > All of your templates are available in all of your apps. So you can use a > template from one app

Re: django template

2014-07-16 Thread ngangsia akumbo
ok can i create a seperate base.html in other app and link that app to the main base.html file. because after creating all these html files which links back to the main base.html, how would i link them? Thanks On Wednesday, July 16, 2014 10:11:45 AM UTC+1, Andréas Kühne wrote: > > Hi, > >

Re: django template

2014-07-16 Thread Andreas Kuhne
Hi, All of your templates are available in all of your apps. So you can use a template from one app in another app (our website is created this way). In other words you can continue to use the same base.html for the second app as well. Regards, Andréas 2014-07-16 9:47 GMT+02:00 ngangsia akumbo

django template

2014-07-16 Thread ngangsia akumbo
Good Morning Django Users I have a question. I am building a website for django and this site will consist of separate apps. I have created the first app already with a base.html file. OK, when i am creating the second app will it inherit from the base.html template or i will have to create a

problem with variable which comes up in my Django template

2014-06-27 Thread Jun Tanaka
Hello everyone, I have a problem with a variable in my Django template showing up. Somehow it shows two different variable when it is mod_wsgi and it is runserver. One possibility is that the cache keep the old html. So I use disable cache mode in Chrome. F12 => setting => disable

Re: Django Template - problema

2014-05-31 Thread Erick Brockes
It worked. Thank you very much 2014-05-31 4:33 GMT-03:00 Kelvin Wong : > At the very top of the models.py file add: > > # -*- coding: utf-8 -*- > from __future__ import unicode_literals > > I'm not sure this will work, but it might. > > K > > > > On Friday, May 30, 2014

Re: Django Template - problema

2014-05-31 Thread Kelvin Wong
At the very top of the models.py file add: # -*- coding: utf-8 -*- from __future__ import unicode_literals I'm not sure this will work, but it might. K On Friday, May 30, 2014 8:35:58 PM UTC-7, ebrockes wrote: > > Problem solved by replacing on models.py: > > TIPO_CONJUGE = ( >

Re: Django Template - problema

2014-05-30 Thread Erick Brockes
Problem solved by replacing on models.py: TIPO_CONJUGE = ( ('CA', _('Casados')), ('UE', _('União estável')), ('OU', _('Outros')), ) by TIPO_CONJUGE = ( ('CA', _('Casados')), ('UE', _('Uniao estavel')), ('OU', _('Outros')), ) I'll see how

Re: Django Template - problema

2014-05-30 Thread Erick Brockes
Kevin, Thank you. If you don't mind, I'm kind of new in django. I've got the following response in the browser: {'tipo_conjuge': } Could you help me out on how to proceed? 2014-05-30 18:45 GMT-03:00 Kelvin Wong : > In relacaoconjugetipouniao_form.html > > Add this

Re: Django Template - problema

2014-05-30 Thread Kelvin Wong
In relacaoconjugetipouniao_form.html Add this tag...then refresh... {{ form.fields }} Should give you more info about what fields are in the form and what widget they are using. ie. 'tipo_conjuge': django.forms.fields.TypedChoiceField object Also check your html source in a browser.

Fwd: Django Template - problema

2014-05-30 Thread Erick Brockes
I have the following problem. The field "tipo_conjuge" is not showing as I wanted. Could somebody tell me what is the problem? Best regards, Erick url. py ... url(r'relacao/(?P\d+)/$', login_required(CreateTipoRelacaoView.as_view()), name='cadastrarRelacaoTipo'), ... views.py ... class

Re: Django Template Based If Statement Issue

2014-05-12 Thread donarb
On Monday, May 12, 2014 3:37:47 PM UTC-7, G Z wrote: > > ok its still not putting out the vm data i get > > > Grant - google.com - 7029855378 - zuk...@gmail.com - 2332 > oakland st > - - > > > {% for customer in customers %} > {{ customer.NAME }} - {{

Re: Django Template Based If Statement Issue

2014-05-12 Thread G Z
> > ok its still not putting out the vm data i get Grant - google.com - 7029855378 - zuk...@gmail.com - 2332 oakland st - - {% for customer in customers %} {{ customer.NAME }} - {{ customer.WEBSITE }} - {{customer.PHONE}} - {{ customer.EMAIL }} - {{

Re: Django Template Based If Statement Issue

2014-05-12 Thread G Z
this is my models from django.db import models # Create your models here. class Customer(models.Model): NAME = models.CharField(max_length=200) WEBSITE = models.CharField(max_length=200) PHONE = models.CharField(max_length=200) EMAIL = models.CharField(max_length=200)

Re: Django Template Based If Statement Issue

2014-05-12 Thread G Z
also thank you so much for your help. On Monday, May 12, 2014 4:00:27 PM UTC-6, Tom Evans wrote: > > On Mon, May 12, 2014 at 10:47 PM, G Z > wrote: > > I'm just trying to associate each vm tied to the customers id and > display > > the vms under the customer that are

Re: Django Template Based If Statement Issue

2014-05-12 Thread Tom Evans
On Mon, May 12, 2014 at 10:47 PM, G Z wrote: > I'm just trying to associate each vm tied to the customers id and display > the vms under the customer that are associated with his id. > Normally, you would have some sort of relationship between those models, and the template

Re: Django Template Based If Statement Issue

2014-05-12 Thread G Z
so as you can see when ever the vm field customer id matches the customers name i want to display the vm with the customer. To create a table of vms that each customer has. I also will be associating a third database with vmspecs to each vm. I know there is an easier way to do this with django

Re: Django Template Based If Statement Issue

2014-05-12 Thread G Z
I'm just trying to associate each vm tied to the customers id and display the vms under the customer that are associated with his id. On Monday, May 12, 2014 3:02:34 PM UTC-6, G Z wrote: > > Views.py > > > from django.shortcuts import render > from django.http import HttpResponse > from

Re: Django Template Based If Statement Issue

2014-05-12 Thread Tom Evans
On Mon, May 12, 2014 at 10:02 PM, G Z wrote: > Views.py > > > from django.shortcuts import render > from django.http import HttpResponse > from vmware.models import Customer > from django.shortcuts import render_to_response > from vmware.models import Vms > > def index(request):

Django Template Based If Statement Issue

2014-05-12 Thread G Z
Views.py from django.shortcuts import render from django.http import HttpResponse from vmware.models import Customer from django.shortcuts import render_to_response from vmware.models import Vms def index(request): customers = Customer.objects.all vms = Vms.objects.all

Re: Different content type objects in django template

2014-03-06 Thread Daniel Roseman
On Thursday, 6 March 2014 18:33:36 UTC, Robin Lery wrote: > > I am having a hard time to understand ContentType. I am learning from a > tutorial, this is the link . I have synced the database, and its working in > the admin. But when I try to load the ContentType objects in the template, > I

Different content type objects in django template

2014-03-06 Thread Robin Lery
I am having a hard time to understand ContentType. I am learning from a tutorial, this is the link . I have synced the database, and its working in the admin. But when I try to load the ContentType objects in the template, I get nothing. When I see the page source, the get_rendered_method is not

Re: How to display file extension in django template ?

2014-02-07 Thread werefrog
Hello, In that case, I would use a filter that returnos.path.splitext(myfile.path)[1] (the result will be '.jpeg' with your example). Regards, Michel -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: How to display file extension in django template ?

2014-02-07 Thread Russell Keith-Magee
On Fri, Feb 7, 2014 at 3:25 PM, Ashish Tiwari wrote: > It's a simple question but i'm not able to find easily. > How can I display the file extension of uploaded file in template ? > > ex : uploaded-filename.jpeg > {{file.}} will display "jpeg" in template. > There

How to display file extension in django template ?

2014-02-07 Thread Ashish Tiwari
It's a simple question but i'm not able to find easily. How can I display the file extension of uploaded file in template ? ex : uploaded-filename.jpeg {{file.}} will display "jpeg" in template. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: render .txt file in django template

2014-01-30 Thread C. Kirby
t; 1.Load the file in your view >> 2. Read it into a context variable. >> 3. Render the context variable in your template >> >> On Thursday, January 30, 2014 3:29:29 PM UTC-6, Fatih Tiryakioglu wrote: >>> >>> Hi all, >>> >>> Could you please show me

Re: render .txt file in django template

2014-01-30 Thread Fatih Tiryakioglu
view > 2. Read it into a context variable. > 3. Render the context variable in your template > > On Thursday, January 30, 2014 3:29:29 PM UTC-6, Fatih Tiryakioglu wrote: >> >> Hi all, >> >> Could you please show me how can I render .txt static files (they are >&

Re: render .txt file in django template

2014-01-30 Thread C. Kirby
UTC-6, Fatih Tiryakioglu wrote: > > Hi all, > > Could you please show me how can I render .txt static files (they are user > comments) in django template? I couldn't resolve that issue for a month.. > > I appreciate your help. > > > -- > > -- You received thi

render .txt file in django template

2014-01-30 Thread Fatih Tiryakioglu
Hi all, Could you please show me how can I render .txt static files (they are user comments) in django template? I couldn't resolve that issue for a month.. I appreciate your help. -- -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: how to load and render "static .txt file content" from django template

2013-12-07 Thread François Schiettecatte
com> wrote: > > On 2013-12-07, at 4:16 AM, Fatih Tiryakioglu <fatih...@gmail.com> wrote: > >> Hi all, >> >> I want to render a static .txt file from django template, but I can't load >> it. I tried some combinations. Here is some of them: >> >

Re: how to load and render "static .txt file content" from django template

2013-12-07 Thread Tom Lockhart
On 2013-12-07, at 4:16 AM, Fatih Tiryakioglu <fatih...@gmail.com> wrote: > Hi all, > > I want to render a static .txt file from django template, but I can't load > it. I tried some combinations. Here is some of them: > > > > > >

how to load and render "static .txt file content" from django template

2013-12-07 Thread Fatih Tiryakioglu
Hi all, I want to render a static .txt file from django template, but I can't load it. I tried some combinations. Here is some of them: src="shortcut/to/text-file.txt" How can I load the context of this file? Thanks all. Note: I can render static image

Re: variable in django template

2013-10-23 Thread Leonardo Giordani
; > Le 23 oct. 2013 07:01, "Harjot Mann" <harjotmann1...@gmail.com> a écrit : > > > > > I want to initialize a varibale in django template from zero, which I > > want to comapre with the some job_no whihc is coming from database. I > > am not getting hoe to de

Re: variable in django template

2013-10-23 Thread Nicolas Pantel
Take a look at the "{@ with @}" template tag in the documentation. Use {@ with myVariable=someValue @} ... {@ endwith @}. NicoP Le 23 oct. 2013 07:01, "Harjot Mann" <harjotmann1...@gmail.com> a écrit : > > I want to initialize a varibale in django template from

Re: variable in django template

2013-10-23 Thread Leonardo Giordani
Coderwall profile <https://coderwall.com/lgiordani> 2013/10/23 Harjot Mann <harjotmann1...@gmail.com> > I want to initialize a varibale in django template from zero, which I > want to comapre with the some job_no whihc is coming from database. I > am not getting ho

variable in django template

2013-10-22 Thread Harjot Mann
I want to initialize a varibale in django template from zero, which I want to comapre with the some job_no whihc is coming from database. I am not getting hoe to decalre a variable. Please help me . -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http

Re: new django template

2013-09-29 Thread Frédéric Bouin
an also what is telling the browser to load the information from contact.html in name.html, my name.html file is completely empty and its still loading the contact information. On Sunday, September 29, 2013 7:46:54 PM UTC-4, Frédéric Bouin wrote: > > ok, this seems to load the contact template

Re: new django template

2013-09-29 Thread Frédéric Bouin
ok, this seems to load the contact template now, but why does it try to find name.html rather than contact.html? Where does this name.html file come from? no other page seems to depend on it to open. Thanks for the help On Saturday, September 28, 2013 4:10:54 PM UTC-4, +Emmanuel wrote: > >

Re: new django template

2013-09-28 Thread +Emmanuel
>From the error message, there should be a template named 'name.html' under the folder '/en/contact' which should be under the templates folder. Create a folder 'en' within the templates folder. Then create another folder 'contact' within the 'en' folder. Put your 'name.html' file in the

new django template

2013-09-27 Thread Frédéric Bouin
I am trying to edit some things in django and am running into a few problems as I am quite new to it. I am working off an existing django configuration with templates that currently work, but I don't really understand how to create new templates. If I create a new .html file in my templates

Re: django template string and int comparison behavior

2013-09-20 Thread J Y
That makes a lot of sense. Thanks for the explanation. I will use the view to convert it to an int. Jack On Tuesday, September 17, 2013 1:00:01 PM UTC-7, ke1g wrote: > > Yes, this is the expected behavior. The GET parameter is a string, being > something that is just parsed out of the query

Re: django template string and int comparison behavior

2013-09-17 Thread Bill Freeman
Yes, this is the expected behavior. The GET parameter is a string, being something that is just parsed out of the query parameter portion of the URL (which is, itself, a string). There is nothing to inform the code that parses the query parameters which of the things that might look like numbers

django template string and int comparison behavior

2013-09-17 Thread J Y
I am building a search form that provides a drop down list, and then on the search results, I am redisplaying the search form, but with the search parameters already pre-selected, so this is what I attempted to do: {% for item in object_list %} {{ item.name }}

Re: Any API for dojo/jquery in django template language ?? For dojo i need urgently , thanks

2013-09-17 Thread Nikolas Stevenson-Molnar
I'm not sure I understand your question. You can use jQuery and/or Dojo in your Django template the same as you would anywhere else. If you want nice integration between Django forms and Dojo dijits, you might be interested in Dojango: https://github.com/klipstein/dojango/ _Nik On 9/16/2013 11:06

Re: django template string and int comparison behavior

2013-09-17 Thread Rafael Durán Castañeda
Hi, I don´t think using requests objects into templates is a good idea, use request object in the view so you source the template context with whatever you need. HTH El 17/09/2013, a las 20:50, J Y escribió: > I am building a search form that provides a drop down list,

Any API for dojo/jquery in django template language ?? For dojo i need urgently , thanks

2013-09-17 Thread bab mis
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
= {{ obj}} in obj info = {{ obj.title }}, {{ obj.abstract }} {% endfor %} {% endfor %} {% endfor %} Linked question using default_factory: http://stackoverflow.com/questions/4764110/django-template-cant-loop-defaultdict Thanks! On Monday, August 26, 2013 12:46:30 PM UTC+2

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
;, ], 2: [], 3: > [, , ]})) > groups = (2, defaultdict(, {1: []})) > groups = (3, defaultdict(, {1: []})) > > > (Linked question: > http://stackoverflow.com/questions/18406126/django-template-loop-collections-defaultdictlambda-collections-defaultdictlis > ) > >

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Thomas Scrace
On Monday, 26 August 2013, Daviddd wrote: > Sincerely, I don't know how I can create the dict without using > defaultdict. > > D > You can create it using a defaultdict if you want to, but once it is created, and before you pass it to the template, loop through all the values of your outer dict

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
Thanks Tom for replying! The code used to create the dict is: my_dict = collections.defaultdict(lambda: collections.defaultdict(list)) for obj in queryset: my_dict[int(obj.position.split('-')[0])][int(obj.position.split('-')[2])].append(obj) Basically I have one field in the queryset

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-24 Thread Thomas Scrace
On 23 Aug 2013, at 16:58, Daviddd wrote: > In my template I tried: > > {% for key, groups in queryset.iteritems %} > groups = {{ groups }} > {% for group_key, cols in groups.iteritems %} > cols = {{ group_key }} > {% for objs in cols %} >

django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-23 Thread Daviddd
, defaultdict(, {1: [, , ], 2: [], 3: [, , ]})) groups = (2, defaultdict(, {1: []})) groups = (3, defaultdict(, {1: []})) (Linked question: http://stackoverflow.com/questions/18406126/django-template-loop-collections-defaultdictlambda-collections-defaultdictlis ) I'm not able to spot the error. Thanks

Re: how to print json object in django template?

2013-08-13 Thread Charly Román
{{ jsonobject|safe }} 2013/8/13 navnath gadakh : > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to

how to print json object in django template?

2013-08-13 Thread navnath gadakh
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.

Re: django template prints

2013-07-17 Thread Lukas Nemec
If you have some DB model where is the data saved, you can do this from project.app.models import NameOfModel # try this, but if it will not work, look at django models help filtered_data = NameOfModel.objects.filter(job_id___gt=29).filter(job_id__lt=401) for d in filtered_data: print d

django template prints

2013-07-16 Thread Harjot Mann
In my project the lab reports, reciepts, and bills are made from html templates but thse are not saved anywhere but now I need to take the print outs of all the reports which are made till now for example form job_id 30 to 400. I want to make function for this so that it can be done in a one

Re: Using Html FrameSet in Django Template

2013-04-23 Thread Tom Evans
On Tue, Apr 23, 2013 at 2:59 PM, Nac Temha wrote: > Hi, > I want use frameset in template. But I am getting error. How can I use > frameset in template? > > My example: > … > > output is: > first.html, didn't match any of these. > second.html, didn't match any of

Using Html FrameSet in Django Template

2013-04-23 Thread Nac Temha
Hi, I want use frameset in template. But I am getting error. How can I use frameset in template? My example: fisrt.html template one second.html template two main.html

Re: IDE to practice django template language

2013-04-21 Thread frocco
PyCharm is what I use and recommend. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: IDE to practice django template language

2013-04-20 Thread sparky
I second PyCharm, I'm new to Django too it works well for me :) On Friday, April 19, 2013 2:03:19 AM UTC+1, Srinivasa Rao wrote: > > Hi, I am new to this djnago, can you suggest any > development environment to practice template language. thanks,Srini -- You received this message because you

Re: IDE to practice django template language

2013-04-20 Thread yati sagade
I would suggest the OP to gather from this thread that a reaching general consensus about this topic is impossible, and would request others to stop the thread here, as there's no point continuing except that the OP might possibly come to know about stuff they previously did not, but the Web is

IDE to practice django template language

2013-04-20 Thread Michael Hernandez
Emacs???. IM not being a smart ### . I just feel it has everything you need. Like terminal Shell. It is bad for multiethnic files like html with Javascript in it. Unless you customize it further -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: IDE to practice django template language

2013-04-19 Thread william ratcliff
For Wing (professional) you can debug templates, which can be useful. William On Fri, Apr 19, 2013 at 10:02 AM, Thomas Weholt wrote: > I have no experience in WingIDE, but PyCharm supports django development > with intregrated starting of server, running of unittests,

Re: IDE to practice django template language

2013-04-19 Thread Thomas Weholt
I have no experience in WingIDE, but PyCharm supports django development with intregrated starting of server, running of unittests, running of commands like syncdb etc. That was a terribly sales-pitch, but search google or youtube and you'll find videos demonstrating its features. Thomas On

Re: IDE to practice django template language

2013-04-19 Thread Tim Cook
On Fri, Apr 19, 2013 at 9:01 AM, Thomas Weholt wrote: > PyCharm! Allthough commercial - it's great and really worth the prize, and > now is on sale for half prize! > > > Hi Thomas, I am a long time WingIDE user and although it supports Django quite well I am wondering if

Re: IDE to practice django template language

2013-04-19 Thread Thomas Weholt
PyCharm! Allthough commercial - it's great and really worth the prize, and now is on sale for half prize! On Fri, Apr 19, 2013 at 1:52 PM, Avraham Serour wrote: > I really like pycharm , you should > give it a try > > > On Fri, Apr 19,

Re: IDE to practice django template language

2013-04-19 Thread Avraham Serour
I really like pycharm , you should give it a try On Fri, Apr 19, 2013 at 6:42 AM, Apokalyptica Painkiller < apokalyptic...@gmail.com> wrote: > Now i'm using this: http://ninja-ide.org/. I don't know if this is what > you need, but why don't you try it. > >

Re: IDE to practice django template language

2013-04-18 Thread Apokalyptica Painkiller
Now i'm using this: http://ninja-ide.org/. I don't know if this is what you need, but why don't you try it. See you 2013/4/18 Srinivasa Rao > Hi, I am new to this djnago, can you suggest any > development environment to practice template language. thanks,Srini > > -- >

IDE to practice django template language

2013-04-18 Thread Srinivasa Rao
Hi, I am new to this djnago, can you suggest any development environment to practice template language. thanks,Srini -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Vim Django template syntax checker

2012-11-27 Thread Tom Evans
k too well when checking partial HTML > documents (which is often the case with Django because of template > inheritance) and it certainly does not like the Django template tags in HTML > documents. > > Does anyone know of a decent syntax checker for Vim that has full support > for

Vim Django template syntax checker

2012-11-26 Thread Some Developer
inheritance) and it certainly does not like the Django template tags in HTML documents. Does anyone know of a decent syntax checker for Vim that has full support for Django templates and partial HTML documents? As an aside I'm always on the look out for ways to improve my Vim configuration

Re: post method problem in django template

2012-09-17 Thread Navnath Gadakh
On Monday, September 17, 2012 10:36:55 PM UTC+5:30, Navnath Gadakh wrote: > > i have used one HTML select box in my template having name of product as > two string but when i send this value by post method in view it takes only > one string?plz help > how to submit form using jquery?

post method problem in django template

2012-09-17 Thread Navnath Gadakh
i have used one HTML select box in my template having name of product as two string but when i send this value by post method in view it takes only one string?plz help -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

django-template-minimizer

2012-09-04 Thread Charles Kaminski
The django-template-minimizer project is a manage.py command to minimize your django templates after development. Instead of minimizing your html every time you serve it up, minimize your templates just once. Please take a look at this beta project, try it out, and send me feedback

Re: Sample Django template scrolling table

2012-08-05 Thread Melvyn Sopacua
On 5-8-2012 21:57, Charles Norton wrote: > I simply want to display rows of data in a table. If I scroll past the nth > row, I'd like another row > to pop up from the bottom. Similarly, I'd like to have another row pushd > down from the top > if I am scrolling up. Is this pure for the

Re: Sample Django template scrolling table

2012-08-05 Thread Charles Norton
sunderstanding your question > :) > > On Fri, Aug 3, 2012 at 3:08 PM, Charles Norton > <octopusgrab...@gmail.com>wrote: > >> I would like to create a simple table in a Django template that can >> scroll. I am interested in finding a sample from which I can learn.

Re: Sample Django template scrolling table

2012-08-03 Thread Kurtis Mullins
les Norton <octopusgrab...@gmail.com>wrote: > I would like to create a simple table in a Django template that can > scroll. I am interested in finding a sample from which I can learn. If > someone would point me to a sample, I would appreciate it. > > The application would be having

Sample Django template scrolling table

2012-08-03 Thread Charles Norton
I would like to create a simple table in a Django template that can scroll. I am interested in finding a sample from which I can learn. If someone would point me to a sample, I would appreciate it. The application would be having a 10 line table, 55 water meter information rows, and being

Re: javascript in django template not executed when request is sent via ajax

2012-07-01 Thread Larry Martell
On Fri, Jun 29, 2012 at 2:45 PM, Larry Martell <larry.mart...@gmail.com> wrote: > I have a django template that has some javascript/jQuery code in it > that defines some keyup event handers. If a user goes to the URL > directly the javascript is executed, and the event handers

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Larry Martell
On Sat, Jun 30, 2012 at 11:54 AM, Psamathos wrote: > If your web server is in fact serving the content with the incorrect > Content-Type header (You can verify this by inspecting the response in the > Net tab of Firebug or Chrome) jQuery can convert the response

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Bill Freeman
ld (according to docs) parse script parts >>> correctly. >>> >>> >>> On Fri, Jun 29, 2012 at 11:45 PM, Larry Martell <larry.mart...@gmail.com> >>> wrote: >>>> >>>> I have a django template that has some javascript/jQuery code i

Re: javascript in django template not executed when request is sent via ajax

2012-06-30 Thread Psamathos
If your web server is in fact serving the content with the incorrect Content-Type header (You can verify this by inspecting the response in the Net tab of Firebug or Chrome) jQuery can convert the response regardless of the content-type if you specify a two space-separated values in your

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Larry Martell
ording to docs) parse script parts >> correctly. >> >> >> On Fri, Jun 29, 2012 at 11:45 PM, Larry Martell <larry.mart...@gmail.com> >> wrote: >>> >>> I have a django template that has some javascript/jQuery code in it >>> that

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Larry Martell
opacity: 1.0 }); style_preview_table(); } And I have verified that all the non javascript portions of the template are executed, but none of the javascript ones are. > > On Fri, Jun 29, 2012 at 11:45 PM, Larry Martell <larry.mart...@gmail.com> > wrote: >> >>

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
jax queries so make sure that your $.ajax() has dataType > attribute to set as 'html'. It should (according to docs) parse script > parts correctly. > > > On Fri, Jun 29, 2012 at 11:45 PM, Larry Martell > <larry.mart...@gmail.com>wrote: > >> I have a django template that h

Re: javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Jani Tiainen
that your $.ajax() has dataType attribute to set as 'html'. It should (according to docs) parse script parts correctly. On Fri, Jun 29, 2012 at 11:45 PM, Larry Martell <larry.mart...@gmail.com>wrote: > I have a django template that has some javascript/jQuery code in it > that defines some

javascript in django template not executed when request is sent via ajax

2012-06-29 Thread Larry Martell
I have a django template that has some javascript/jQuery code in it that defines some keyup event handers. If a user goes to the URL directly the javascript is executed, and the event handers all work fine. There is also a field that they can type in that triggers the same URL request to be sent

Re: How to add Google Map Markers With Django Template Tags

2012-05-31 Thread Daniele Procida
On 31 May 2012, at 21:21, DF wrote: That's interesting, but mine seems like it could be less involved. This is what I attempted, which failed: http://dpaste.org/55T9x/ Well, you don't need all the other stuff I discussed, but the key thing is: given some variable (in my example it was

Re: How to add Google Map Markers With Django Template Tags

2012-05-31 Thread DF
That's interesting, but mine seems like it could be less involved. This is what I attempted, which failed: http://dpaste.org/55T9x/ On Thursday, May 31, 2012 12:32:26 PM UTC-4, DF wrote: > > I'm trying to place markers based on the latitude and longitude stored in > a model on a Google Map

Re: How to add Google Map Markers With Django Template Tags

2012-05-31 Thread Daniele Procida
On Thu, May 31, 2012, DF wrote: >Any insight on how to properly loop through items in a stored Django object >with lat, lon info and place these on a Google Map using the API would be >very appreciated. I do it like this:

How to add Google Map Markers With Django Template Tags

2012-05-31 Thread DF
I'm trying to place markers based on the latitude and longitude stored in a model on a Google Map using the API and HTML5 geolocation. The issue is how to loop through the lat/lon info for each object stored in the database within JavaScript tags using template keywords, which I'm not sure can

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Daniel Roseman
ing template rendering when > trying to implement Django template system. So I guess I must have a > config snag somewhere in Django. > > > > Here is the error message... > > Error during template rendering > > In template /data/templates/polls/index.html, error at li

Re: Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Marcin Tustin
: Mac OS X Version 10.6.8 > Python: 2.6.1 > Django: 1.4 > > Issue: system throwing an error message during template rendering when > trying to implement Django template system. So I guess I must have a > config snag somewhere in Django. > > > > Here is the erro

Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Bob Loblaw
I was cruising along fine, but am stuck now... Any help would be greatly appreciated OS: Mac OS X Version 10.6.8 Python: 2.6.1 Django: 1.4 Issue: system throwing an error message during template rendering when trying to implement Django template system. So I guess I must have a config snag

Re: Does Django Template Support Nested Tags?

2012-05-11 Thread Wally Yu
                               .. > >                                              {% for step in steps %} > >                                              .. > >                                              {% endfor %} > >                                            

Re: Does Django Template Support Nested Tags?

2012-05-11 Thread azizmb.in
{% for step in steps %} > .. > {% endfor %} > .. > {% endfor %

<    1   2   3   4   5   6   >