Re: Template problem

2012-07-18 Thread Иван Земцов
add grappelli in installed_apps settings.py On 18 July 2012 04:38, Eli_West wrote: > why I posted this question, i dont know plz help lol > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https

Re: Template problem

2012-07-17 Thread Eli_West
why I posted this question, i dont know plz help lol -- 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/-/m68NaOa1yXoJ. To post to this group, send email to djan

Template problem

2012-07-17 Thread chhots
added grappelli theam for django admin and getting this error why i dont know plz help 'url' is not a valid tag library: Template library url not found, tried django.templatetags.url,grappelli.dashboard.templatetags.url,grappelli.templatetags.url,django.contrib.admin.templatetags.url -- You rec

Re: generic views template problem

2010-11-29 Thread Daniel Roseman
On Nov 29, 7:08 pm, Carlos Aboim wrote: > Guys, > Someone can tell me what is happening with my generic > views? > > I have the templates in my application folder 'templates' in the root > my project. > This folder is referenced in settings such as: > TEMPLATE_DIRS = ( >     os.path.join (PROJECT_

generic views template problem

2010-11-29 Thread Carlos Aboim
Guys, Someone can tell me what is happening with my generic views? I have the templates in my application folder 'templates' in the root my project. This folder is referenced in settings such as: TEMPLATE_DIRS = ( os.path.join (PROJECT_ROOT_PATH, 'templates') ) and I am calling a generic view

Newbie template problem

2010-09-22 Thread Brendon
Hi all, How do i get the actual data for a form field in the DJango template? field.data does not seem to work all the time. I saw the following: http://yuji.wordpress.com/2008/06/12/django-how-to-get-only-the-data-from-a-form-field/ which is exactly what i want to do, but field.data seems to re

Re: template problem with login.html

2010-09-17 Thread failuch
style of html documents depends on browser defaults which may take precedence other your styles. I rememer vaquely that there are browser rendering and some other component rendering which affect resulted document appearence. Try different browser at least. On Sep 17, 2:19 pm, ozgur yilmaz wrot

template problem with login.html

2010-09-17 Thread ozgur yilmaz
Hi, I built a site with django. Now i have a stupid (i couldnt understand) problem. Everything works perfect but when i try to login and registration/login.html is rendered, there is a margin at the top of the login.html. And the font size increases 1 or 2 points. Font family and other css elemen

Re: nested template problem

2008-12-19 Thread marco ghidinelli
On Thu, Dec 18, 2008 at 11:42:19AM -0800, bruno desthuilliers wrote: > > i'm trying to display a nested array with no luck. > > > > that's my tries: > > > > --- python manage.py shell --- > > from django.template import Template, Context > > list_parts = { > >

Re: nested template problem

2008-12-18 Thread bruno desthuilliers
On 18 déc, 18:31, marco ghidinelli wrote: > hello. > > Does django template engine supports nested dictionary? Yes, indeed. > i'm trying to display a nested array with no luck. > > that's my tries: > > --- python manage.py shell --- > from django.template import

nested template problem

2008-12-18 Thread marco ghidinelli
hello. Does django template engine supports nested dictionary? i'm trying to display a nested array with no luck. that's my tries: --- python manage.py shell --- from django.template import Template, Context list_parts = { 'root': {'value': [{'tag': 'a'},

Template Problem with SelectDateWidget

2008-10-25 Thread Manuel Held
Hi all, i have a little Problem with the order of the SelectDateWidget in the Templates. It always as Month - Day - Year. How can i Access the Form Fields separately in the Template? Thanks in advance. Manuel --~--~-~--~~~---~--~~ You received this message beca

Re: varible reference in template problem

2008-10-06 Thread Daniel Roseman
On Oct 6, 12:46 pm, Stephen Cheng <[EMAIL PROTECTED]> wrote: > Hi django friends > > I got a problem with varible reference in template. the case is like > this: > > I pass a map to a template, I am trying to get map[key], in the case > the key= modelA.id, then I have to use map.modelA.id, then it

varible reference in template problem

2008-10-06 Thread Stephen Cheng
Hi django friends I got a problem with varible reference in template. the case is like this: I pass a map to a template, I am trying to get map[key], in the case the key= modelA.id, then I have to use map.modelA.id, then it won't work. How can I conquer this? Can I assign modelA.id to another v

Re: Template problem with dates(field, kind, order='ASC')

2008-09-13 Thread djandrow
Sorry, must have forgotton that part, it just wasn't displaying anything, its was cos I was archive.datetime, when archive was already a dateime object. Now I've changed it to {{ archive }} its fine. Thanks guys, Andrew --~--~-~--~~~---~--~~ You received this mes

Re: Template problem with dates(field, kind, order='ASC')

2008-09-13 Thread Daniel Roseman
On Sep 13, 10:49 pm, djandrow <[EMAIL PROTECTED]> wrote: > This is probably really really obvious. I have the following statement > in my views.py: > > archive_list = Entry.objects.dates('entry_date', 'month', > order='DESC') > > then I have; > > {% for archive in archive_list %} > > {{ archive.da

Re: Template problem with dates(field, kind, order='ASC')

2008-09-13 Thread Matthias Kestenholz
On Sat, Sep 13, 2008 at 11:49 PM, djandrow <[EMAIL PROTECTED]> wrote: > > This is probably really really obvious. I have the following statement > in my views.py: > > archive_list = Entry.objects.dates('entry_date', 'month', > order='DESC') > > then I have; > > {% for archive in archive_list %} >

Template problem with dates(field, kind, order='ASC')

2008-09-13 Thread djandrow
This is probably really really obvious. I have the following statement in my views.py: archive_list = Entry.objects.dates('entry_date', 'month', order='DESC') then I have; {% for archive in archive_list %} {{ archive.datetime }} {% endfor %} in my template, i am 99.9% my problem is with {{ a

Template problem

2008-03-26 Thread django
hi, I have a candidate model and a voting model. Voting model is basically thumps up and down. I want to show my voting status in my Candidate profile.. Right now this is what I am doing 1) /template/ candidate/view_candidatelist.html 2) /template/vote/ view_vote.html view_candidatelist gives me

Template problem

2008-03-26 Thread django
hi, I have a candidate model and a voting model. Voting model is basically thumps up and down. I want to show my voting status in my Candidate profile.. Right now this is what I am doing 1) /template/ candidate/view_candidatelist.html 2) /template/vote/ view_vote.html view_candidatelist gives me

Re: Model and Template Problem

2007-10-29 Thread niklas.voss
I solved it. I just used a ForeignKey... i had forgotten, there is already a possibility to do that. Thank you for your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Model and Template Problem

2007-10-28 Thread Malcolm Tredinnick
On Mon, 2007-10-29 at 11:53 +1100, Malcolm Tredinnick wrote: > On Sun, 2007-10-28 at 14:45 -0700, niklas.voss wrote: > > I have a Problem, i have one Model, which has some Data, and another > > Model, which has some Data. > > Let's call it Model1 and Model2! The Problem ist there is a Field in > >

Re: Model and Template Problem

2007-10-28 Thread Malcolm Tredinnick
On Sun, 2007-10-28 at 14:45 -0700, niklas.voss wrote: > I have a Problem, i have one Model, which has some Data, and another > Model, which has some Data. > Let's call it Model1 and Model2! The Problem ist there is a Field in > Model1 which has an ID of a Model2-Object and Model1 has a function >

Model and Template Problem

2007-10-28 Thread niklas.voss
I have a Problem, i have one Model, which has some Data, and another Model, which has some Data. Let's call it Model1 and Model2! The Problem ist there is a Field in Model1 which has an ID of a Model2-Object and Model1 has a function that return the Model2-Object with that ID, too. How can i call

Re: template problem in windows

2007-10-08 Thread Dushyant Sharma
yes thanks mike mostly i work in linux but i had to see some work on windows and this problem was little strange. but all well now. thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: template problem in windows

2007-10-08 Thread Mike H
Hi Dushyant, From the default settings.py : TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. '', ) so you need to have

template problem in windows

2007-10-08 Thread Dushyant Sharma
i have found this during working with django on windws. if i create folder like template, backup (start characters t, b etc) it wont work because template folder settings in the SETTINGS.py will be TEMPLATE_DIRS = ( 'c:\myproject\template', } it would not work because \t is tab character

Re: Painfully simple template problem

2007-08-14 Thread Wiley
Thanks - I knew there was a reason I felt stupid asking that question. It's clear now. On Aug 14, 10:15 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > You've got your inheritance backwards. > > Rendering base.html never uses base_header.html. > Renderig base_header.html would use the code from

Re: Painfully simple template problem

2007-08-14 Thread Jeremy Dunck
You've got your inheritance backwards. Rendering base.html never uses base_header.html. Renderig base_header.html would use the code from base.html, but override the contents of block header. On 8/14/07, Wiley <[EMAIL PROTECTED]> wrote: > > Sorry for the newbie question here, I've searched the g

Painfully simple template problem

2007-08-14 Thread Wiley
Sorry for the newbie question here, I've searched the group and all the documentation I can find. I'm sure I'm missing something basic. Here's the principle that I don't understand behind the practical question I'm going to ask: When a view only renders a single template, how does django "know"

Databrowse Template Problem

2007-06-03 Thread J.P. Cummins
I get the following error when loading the databrowse application: TemplateDoesNotExist at /databrowse/ (...) Using loader django.template.loaders.app_directories.load_template_source: /usr/lib/python2.4/site-packages/django/contrib/admin/templates/databrowse/homepage.html (File does not exist)

Re: Template Problem

2007-03-14 Thread samira
Thanks a lot. My problem solved. On Mar 14, 2:09 pm, "ScottB" <[EMAIL PROTECTED]> wrote: > Hi Samira. > > On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote: > > > Hi every Body, can any body help me? I want to have two folders for my > > templates. One it for general template and other for t

Re: Template Problem

2007-03-14 Thread ScottB
Hi Samira. On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote: > Hi every Body, can any body help me? I want to have two folders for my > templates. One it for general template and other for template related > to member for example. How I can extend from general folder in > member ? Not sur

Template Problem

2007-03-11 Thread samira
Hi every Body, can any body help me? I want to have two folders for my templates. One it for general template and other for template related to member for example. How I can extend from general folder in member ? Regards Samira --~--~-~--~~~---~--~~ You received t

Re: Need help - Template problem

2007-02-22 Thread Joseph Heck
I was confused by this a couple of times as well - it *looks* like you can specify the width and size of those form fields from inside the model, but CSS is the best way to do it. Each form field will have it's own ID - in the case of "{{form.username}}" you should expect to see the form id "id_use

Re: Need help - Template problem

2007-02-22 Thread [EMAIL PROTECTED]
Each one is given an ID based on it's name. Just use CSS on those IDs to set the width you want. On Feb 22, 4:14 am, "VirusRaja" <[EMAIL PROTECTED]> wrote: > Dear all, > > Am new to django, i have a problem i don't know how it will work in > Django, > i have created a user model, which has user d

Need help - Template problem

2007-02-22 Thread VirusRaja
Dear all, Am new to django, i have a problem i don't know how it will work in Django, i have created a user model, which has user data, in my template if i use the model tags {{form.username}} my webpage alighments is not coming up properly, I need to set the sizes for the controls. is there any

Re: ifequal template problem

2006-07-29 Thread can xiang
Hi, carlos I just come across the same problem with ifequal and bring into the same solution with yours that I think is silly too. I just want to convert the auto-generated id into string to have a simple correct ifequal test. I simply can not convert strings into integer because strings

Re: ifequal template problem

2006-07-18 Thread Carlos Yoder
OK, I fixed it, by defining a 'computed' method that returns the int value in str form. So silly! def prva_registracija_mm_str (self): return str(self.prva_registracija_mm) Ohwell :-) On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Forgot to say, I have the same l

Re: ifequal template problem

2006-07-17 Thread Carlos Yoder
Forgot to say, I have the same logic working with no problem, but for a CharField, so this issue must be related to the field's datatype... On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm using a object_detail generic view to display some data. One of > the object's fie

ifequal template problem

2006-07-17 Thread Carlos Yoder
Hello there, I'm using a object_detail generic view to display some data. One of the object's fields is an IntegerField, with choices limited to MONTHS, a tuple of tuples mapping the values. Now, on the template I want to expand the stored values to the 'human_readable' val, using somehting like

Re: template problem

2006-04-16 Thread Ian Clelland
On 4/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I tried a bit more, and found out that: > - {{var}} and {% if %} (and maybe some more) work. > - {% extends %} and {% block %} throw the exception above. > > what can I do to make "extends" and "block" work ? I believe that you can't use

template problem

2006-04-16 Thread [EMAIL PROTECTED]
hi, I'd like to use the django-template-system without the rest of django. so I tried a small example, which worked: import os os.environ["DJANGO_SETTINGS_MODULE"] = "__main__" #or appr. settings.py from django.core.template import * t = Template( """Hello {{name}} print t.render( {"name": "Phil