Re: TemplateSyntaxError

2019-06-02 Thread anchal agarwal
You were rightthe error resolved when I removed curly braces from the if statement. Thanks alot !! On 01-Jun-2019 11:26 am, "sagar ninave" wrote: > you do not have ended for loop > > On Fri, May 31, 2019 at 7:41 PM anchal agarwal > wrote: > >> I am creating a simple form in which when a user

Re: TemplateSyntaxError

2019-05-31 Thread sagar ninave
you do not have ended for loop On Fri, May 31, 2019 at 7:41 PM anchal agarwal wrote: > I am creating a simple form in which when a user will select a particular > song and press Favorite button a star image will get pop up in front of > that song. > But it is showing TemplateSyntaxError. > Pleas

Re: TemplateSyntaxError when using inbuilt views

2016-08-13 Thread Constantine Covtushenko
Hi Piyush, Welcome to community! Can you please give us your template snipped? Regards, On Sat, Aug 13, 2016 at 6:48 AM, Piyush Rungta wrote: > Hello this is my first time here. > So I am trying to create directory index to serve static files uploaded by > users by using inbuilt view by addi

Re: TemplateSyntaxError at /

2016-07-09 Thread Malik Rumi
God damn. That was it - something silly and obvious, but only to a fresh set of eyes. Thank you! On Sat, Jul 9, 2016 at 6:44 PM, James Schneider wrote: > > On Jul 9, 2016 6:38 PM, "Malik Rumi" wrote: > > > > > > Invalid template name in 'extends' tag: ''. Got this from the > 'baseX.html' variab

Re: TemplateSyntaxError at /

2016-07-09 Thread James Schneider
On Jul 9, 2016 6:38 PM, "Malik Rumi" wrote: > > > Invalid template name in 'extends' tag: ''. Got this from the 'baseX.html' variable. > > The first line in index.html is: > {% extends baseX.html %} > Try adding quotes around "baseX.html", your referring to it as a variable, not as the name of th

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-13 Thread 'Tom Evans' via Django users
On Fri, Nov 13, 2015 at 12:14 AM, James Schneider wrote: > On Thu, Nov 12, 2015 at 5:10 AM, Jose Paul wrote: >> >> I am just running DJango 1.8 test cases ,here is start of the error trace > > I suspect one of your tests is rendering a template. Do you have a reference > to a template tag anywher

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-12 Thread James Schneider
On Thu, Nov 12, 2015 at 5:10 AM, Jose Paul wrote: > I am just running DJango 1.8 test cases ,here is start of the error trace . > > = > ERROR: test_load06 (template_tests.syntax_tests.test_load.LoadTagTests) > ---

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-12 Thread Jose Paul
I am just running DJango 1.8 test cases ,here is start of the error trace . = ERROR: test_load06 (template_tests.syntax_tests.test_load.LoadTagTests) -- Traceback

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-11 Thread James Schneider
On Nov 11, 2015 4:33 AM, "Jose Paul" wrote: > >getting following error ,can someone help me to understand this > > . > compiled_result = compile_func(self, token) > File "C:\Python27\lib\site-packages\django\template\defaulttags.py", line 1140, in load > (taglib, e)) > TemplateSy

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-06 Thread Alasdair Nicol
On 05/03/15 17:23, Carsten Fuchs wrote: If you use single quotes and render the template, it outputs 'Hello', not 'Hello, how are you?' as expected. As expected? Why please? Docs say that with single or double quotes, the values are treated as string literals. Sorry, I wasn't clear. By 'as ex

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Carsten Fuchs
Hi Vijay, hi Alasdair, many thanks for your quick replies! I've thus just filed a bug: https://code.djangoproject.com/ticket/24451 Am 05.03.2015 um 17:53 schrieb Alasdair Nicol: I think the reason is that the cycle tag supports an older syntax for backwards compatibility reasons. Yes, that wa

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Alasdair Nicol
Hi Carsten, Vijay On 05/03/15 16:24, Carsten Fuchs wrote: > Dear Django fellows, > > using Django 1.7.5, I have a problem with commas in string literals in > the cycle tag, e.g. with > > {% cycle "Hello, how are you?" "Fine!" %}. I can reproduce the problem with your sample code. I think t

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Alasdair Nicol
On 05/03/15 16:53, Alasdair Nicol wrote: {% with hello="Hello, how are you?" {% cycle hello "Fine!" %}. {% endwith %} Oops, that should have read: {% with hello="Hello, how are you?" %} {% cycle hello "Fine!" %}. {% endwith %} -- Alasdair Nicol Developer, MEMSET mail: alasd...@memset.com we

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Vijay Khemlani
Changing the double quotes for single quotes seems to do the trick, but I don't know why it works On Thu, Mar 5, 2015 at 1:24 PM, Carsten Fuchs wrote: > Dear Django fellows, > > using Django 1.7.5, I have a problem with commas in string literals in the > cycle tag, e.g. with > > {% cycle "He

Re: TemplateSyntaxError

2014-10-08 Thread Erik Cederstrand
Den 08/10/2014 kl. 06.04 skrev Petar Pilipovic : > Hi all, I am currently under going a blog tutorial from > http://matthewdaly.co.uk/blog/2014/01/02/django-blog-tutorial-the-next-generation-part-2/, > and I am stuck whit makrdown, I am aware that Django not supporting it any > more, but to kee

Re: TemplateSyntaxError: 'if' statement improperly formatted

2012-03-21 Thread Lee Sparks
Its also important to use {% endifequal %} So...went passing to HTML templates {% ifequal rowvalue "Blue" %} Its Blue {% endifequal %} L. On Sunday, 3 January 2010 17:34:22 UTC, Biju Varghese wrote: > > hi >If you want to compare the value you have to use ifequal or > ifnotequal tag in

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
It sure seems like #2 that I mentioned before is the issue. Your context processor is overriding the 'user' template context variable that the admin uses. I just looked at some admin templates and they definitely use the 'user' variable. Name it something else or add logic to the context process

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
On Tue, Dec 20, 2011 at 11:09 PM, Divick Kishore wrote: > On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis > wrote: > > It sounds like your custom user template context variable might be > causing a > > conflict with the default if you're also using django.contrib.auth > (which is > > what the admi

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
Hi Branton, On Wed, Dec 21, 2011 at 11:09 AM, Branton Davis wrote: > > That stack trace is unrelated to the other problem.  Somewhere (guessing > gifts/urls.py) you've referenced a view > at gifts.views.ajax_handle_wishinvite, which doesn't exist.  Check > gifts/views.py for a method named 'ajax_

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
On Dec 21, 7:05 am, Karen Tracey wrote: > People would be able to help you more effectively if you included the stack > trace that goes with the exception. > > Karen > --http://tracey.org/kmt/ The stack trace for the error is: ERROR Caught AttributeError while rendering: 'User' object has no at

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis wrote: > It sounds like your custom user template context variable might be causing a > conflict with the default if you're also using django.contrib.auth (which is > what the admin uses by default).  I'm guessing that the admin > views/templates use

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Karen Tracey
People would be able to help you more effectively if you included the stack trace that goes with the exception. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g

Re: TemplateSyntaxError at /admin/

2011-10-08 Thread Tempomental
That did it! Thanks =) On Oct 8, 4:49 pm, Shawn Milochik wrote: > See your urlpatterns section that has the prefix 'myapp.views.' It's at the > bottom of your e-mail. > > You have some stuff in there that doesn't belong there. It should be broken > out into another "urlpatterns += patterns(...)"

Re: TemplateSyntaxError at /admin/

2011-10-08 Thread Shawn Milochik
See your urlpatterns section that has the prefix 'myapp.views.' It's at the bottom of your e-mail. You have some stuff in there that doesn't belong there. It should be broken out into another "urlpatterns += patterns(...)" section that has no prefix or the correct prefix. -- You received this me

Re: TemplateSyntaxError at /polls/updatepath/ Caught AttributeError while rendering: 'RawQuerySet' object has no attribute 'all'

2011-02-11 Thread Ian Clelland
On Thu, Feb 10, 2011 at 9:10 AM, hank23 wrote: > So when I go to build the entries for my drop down list then I would > iterate over the query results like you suggested and at that point > where I iterate over the results then I can also set the different > select option attributes (html option t

Re: TemplateSyntaxError at /polls/updatepath/ Caught AttributeError while rendering: 'RawQuerySet' object has no attribute 'all'

2011-02-10 Thread hank23
So when I go to build the entries for my drop down list then I would iterate over the query results like you suggested and at that point where I iterate over the results then I can also set the different select option attributes (html option tag attributes - value and visible-choice) to the variou

Re: TemplateSyntaxError at /polls/updatepath/ Caught AttributeError while rendering: 'RawQuerySet' object has no attribute 'all'

2011-02-10 Thread Ian Clelland
all() is a method on a Manager instance, that returns a QuerySet containing every row in the table, without filtering. It is used because you can't iterate over a Manager, only over a QuerySet. As an example, if MyModel is a model, then MyModel.objects is a Manager. If you tried to do this in pyth

Re: TemplateSyntaxError at /admin/

2011-01-07 Thread victorkendy
hi there hank23 to fix the problem you just need to send the queryset parameter to the constructor of the ModelChoiceField pollquestions = forms.ModelChoiceField(queryset=SomeModel, ...other stuff...) works but pollquestions = forms.ModelChoiceField(...other stuff without queryset...) raises the

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
The addchoice screen (addchoice.html) code follows below. I included it just in case something might be wrong with it that could be related to or causing this problem, because some of its code is also doing some new things that I've not done before, so there are likely errors in it as well. Here's

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
OK here's the entire views.py code: # Create your views here. from django.http import Http404 from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404 from django.http import HttpResponseRedirect, HttpResponse from django.core.urlresolvers import reverse from django.t

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread Dan Fairs
Hi, > Near the top of my views.py I do have "from django import forms", so > I'm guessing that based on previous comments that this is ok. Do I > also need to import my specific named-form which IO created for the > new screen/view from my polls.forms.py module? If so is this syntax > correct: >

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
Near the top of my views.py I do have "from django import forms", so I'm guessing that based on previous comments that this is ok. Do I also need to import my specific named-form which IO created for the new screen/view from my polls.forms.py module? If so is this syntax correct: from polls.forms

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread Dan Fairs
Hi, > TemplateSyntaxError at /admin/ > Caught ViewDoesNotExist while rendering: Tried addchoice in module > polls.views. Error was: 'module' object has no attribute 'form'Request > Method: GET > Request URL: http://127.0.0.1:8000/admin/ > Django Version: 1.2.4 > Exception Type: TemplateSyntaxError

Re: TemplateSyntaxError with block trans

2010-11-27 Thread Łukasz Rekucki
On 27 November 2010 14:12, Vyrphan wrote: > Hi there mates, > > I've created a new site, and all is running ok. Last step in my > development plan was to add support for internacionalization (by now, > only 2 languages) > > I just added blocktrans in my templates in several places, and i'm > getti

Re: TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber'

2010-09-30 Thread prakashadm
Hello i have removed from {% load humanize %} from my mail activation code.. then it's given me below error Thanks Prakash On Sep 30, 5:56 pm, Daniel Roseman wrote: > On Sep 30, 1:14 pm, prakashadm wrote: > > > Hello friends, > > > I have getting below error > > > TemplateSyntaxError at /accoun

Re: TemplateSyntaxError at /accounts/register/ Invalid filter: 'apnumber'

2010-09-30 Thread Daniel Roseman
On Sep 30, 1:14 pm, prakashadm wrote: > Hello friends, > > I have getting below error > > TemplateSyntaxError at /accounts/register/ > > Invalid filter: 'apnumber' > > i am working on simple user registration of page.any budy have idea > abt it? > > http://www.stonemind.net/blog/2007/04/13/django-

Re: TemplateSyntaxError in the admin pages

2010-04-06 Thread Karen Tracey
On Tue, Apr 6, 2010 at 2:17 AM, Martin Lundberg wrote: > Ah, great! Do you know the ticket or changeset for it? Curious to peek and > learn a little :) > http://code.djangoproject.com/ticket/11461 Karen -- You received this message because you are subscribed to the Google Groups "Django users

Re: TemplateSyntaxError in the admin pages

2010-04-05 Thread Martin Lundberg
Ah, great! Do you know the ticket or changeset for it? Curious to peek and learn a little :) On Mon, Apr 5, 2010 at 2:23 PM, Karen Tracey wrote: > 2010/4/5 Tomasz Zieliński > >> that 'raise wrapped' line is placed in catch-all handler, which >> >> means that >> probably some of your code called

Re: TemplateSyntaxError in the admin pages

2010-04-05 Thread Karen Tracey
2010/4/5 Tomasz Zieliński > that 'raise wrapped' line is placed in catch-all handler, which > means that > probably some of your code called during template rendering is > broken, > Django catches it and re-raises as TemplateSyntaxError which, > unfortunately, > is vague about ther real problem.

Re: TemplateSyntaxError in the admin pages

2010-04-05 Thread Martin Lundberg
Thanks Thomasz! You were correct. It was my __unicode__ function in my model which did something wrong. 2010/4/5 Tomasz Zieliński > > > On 5 Kwi, 10:25, Martin Lundberg wrote: > > > File "/home/marlun/.virtualenvs/django/lib/python2.6/site-packages/ > > django/template/debug.py" in render_node

Re: TemplateSyntaxError in the admin pages

2010-04-05 Thread Tomasz Zieliński
On 5 Kwi, 10:25, Martin Lundberg wrote: > File "/home/marlun/.virtualenvs/django/lib/python2.6/site-packages/ > django/template/debug.py" in render_node >   81.             raise wrapped > > Exception Type: TemplateSyntaxError at /admin/timetrack/work/ > Exception Value: Caught an exception whi

Re: TemplateSyntaxError Caught UnicodeEncodeError while rendering

2010-03-30 Thread Alessandro Pasotti
2010/3/30 Karen Tracey > On Tue, Mar 30, 2010 at 5:45 PM, Alessandro Pasotti wrote: > >> Hello, >> >> >> Exception Type: TemplateSyntaxError at >> /resource/news/un-nuovo-ostello-sulla-francigena/ >> Exception Value: Caught UnicodeEncodeError while rendering: 'ascii' codec >> can't encode charact

Re: TemplateSyntaxError Caught UnicodeEncodeError while rendering

2010-03-30 Thread Karen Tracey
On Tue, Mar 30, 2010 at 5:45 PM, Alessandro Pasotti wrote: > Hello, > > I need some help with a strange problem, the traceback says: > > > File "/usr/lib/python2.5/site-packages/django/core/files/storage.py" in > size > 216. return os.path.getsize(self.path(name)) > File "/usr/lib/python

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-02-01 Thread John Abraham
I get the same error in the admin interface after manually removing a field from one of my classes. I removed it in models.py and in the database. The class in question works fine, but for some reason a dependent class (one that refers to the other with a foreign key) has it's admin form broken.

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Karen Tracey
On Sun, Jan 31, 2010 at 2:39 PM, Martin J. Laubach > wrote: > > 1.(r'^admin/', include(admin.site.urls)), > > That looks like it. > No, that is the correct way to specify admin urls for 1.1 and up. No quotes around admin.site.urls. One way the reported error can happen is when what is in

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> 1.    (r'^admin/', include(admin.site.urls)), That looks like it. > I tried putting include('admin.site.urls')) but it could not find > 'admin.site.urls' Do you have 'django.contrib.admin' in INSTALLED_APPS? mjl -- You received this message because you are subscribed to the Goog

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
In my urls.py I see only two possible places where I do not have quotes, 1.(r'^admin/', include(admin.site.urls)), I tried putting include('admin.site.urls')) but it could not find 'admin.site.urls' 2. (r'^register/$', register,{'opensource':True}), True is not in quotes. But it is workin

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> Caught an exception while rendering: 'module' object has no attribute > 'rindex' Sounds you are using foo.bar instead of 'foo.bar' somewhere (ie. module instead of string). mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-03 Thread Biju Varghese
hi If you want to compare the value you have to use ifequal or ifnotequal tag in template language. if you use "if" this will check only weather the variable is empty or not -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-02 Thread Shawn Milochik
On Jan 2, 2010, at 8:54 PM, Ramiro Morales wrote: > On Sat, Jan 2, 2010 at 10:33 PM, dhruvg wrote: >> >> Could you elaborate? >> The documentation indicates that complex expressions follow Python >> exactly. > > I suspect you are using django 1.1.x and reading theDjango SVN trunk > documentati

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-02 Thread Ramiro Morales
On Sat, Jan 2, 2010 at 10:33 PM, dhruvg wrote: > > Could you elaborate? > The documentation indicates that complex expressions follow Python > exactly. I suspect you are using django 1.1.x and reading theDjango SVN trunk documentation. -- Ramiro Morales  |  http://rmorales.net -- You received

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-02 Thread dhruvg
Could you elaborate? The documentation indicates that complex expressions follow Python exactly. or and not in ==, !=, <, >,``<=``, >= (This follows Python exactly). So, for example, the following complex if tag: {% if a == b or c == d and e %} ..will be interpreted as: (a == b) or ((c == d) and

Re: TemplateSyntaxError: 'if' statement improperly formatted

2010-01-02 Thread Shawn Milochik
The problem is that you're using Python syntax instead of template tags. http://docs.djangoproject.com/en/dev/ref/templates/builtins/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroup

Re: TemplateSyntaxError: 'property' object is not iterable

2009-12-18 Thread Chris Curvey
Never mind. Me am a moron. Had a totally different programming error elsewhere. It works as is it should. On Dec 17, 4:12 pm, Chris Curvey wrote: > I have my class definition that looks like > > class Foo: >    def get_bars(self): >       bars = [] >        # do something to collect bar instan

Re: TemplateSyntaxError

2009-11-10 Thread Daniel Roseman
On Nov 10, 3:02 pm, Zeynel wrote: > Thanks. I will try what you suggested. But I am almost there with the > admin, the only thing is I need to change the date format so that it > takes only the year. Now DateField requires month, day and year. I > tried this > > year_graduated = models.DateField(

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
Thanks. I will try what you suggested. But I am almost there with the admin, the only thing is I need to change the date format so that it takes only the year. Now DateField requires month, day and year. I tried this year_graduated = models.DateField('Year graduated', input_formats= ['%Y']) as i

Re: TemplateSyntaxError

2009-11-10 Thread Monika Sulik
When you execute manage.py sql wkw, the output is just how your current models translate into SQL. To see what's actually in the database you should do manage.py dbshell and then use whatever command your database supports (\d wkw_lawyer in PostgreSQL and DESCRIBE wkw_lawyer in MySQL). Try doing

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
Ok, thanks. I started over and created a new project sw1 and module wkw1, and now it all works. But now I noticed that, the "initial" field in "Lawyer" is required. But I want it to be optional. Do I need to start over again to make that change :( And also in the "Year Graduated" field I just nee

Re: TemplateSyntaxError

2009-11-10 Thread Daniel Roseman
On Nov 10, 12:57 pm, Zeynel wrote: > Hi Tim, > > Yes, I syncdb several times. > > C:\sw\sw>manage.py syncdb > > C:\sw\sw>manage.py sql wkw > > BEGIN; > CREATE TABLE "wkw_school" ( >     "id" integer NOT NULL PRIMARY KEY, >     "school" varchar(200) NOT NULL > ) > ; > CREATE TABLE "wkw_lawyer" ( >

Re: TemplateSyntaxError

2009-11-10 Thread Zeynel
Hi Tim, Yes, I syncdb several times. C:\sw\sw>manage.py syncdb C:\sw\sw>manage.py sql wkw BEGIN; CREATE TABLE "wkw_school" ( "id" integer NOT NULL PRIMARY KEY, "school" varchar(200) NOT NULL ) ; CREATE TABLE "wkw_lawyer" ( "id" integer NOT NULL PRIMARY KEY, "school_id" integer

Re: TemplateSyntaxError

2009-11-10 Thread Tim Chase
> (I changed "Education" to "School" because in the admin panel it > showed up as "Educations". I think "Schools" makes more sense.) Did you remember to syncdb afterwards? I'd be interested to see if the SQL you showed is what the tables in the DB actually look like. > Any ideas why Lawyer li

Re: TemplateSyntaxError: VariableDoesNotExist

2009-09-25 Thread Florian Schweikert
2009/9/24 Brian McKeever > > I would write a custom tag that wraps ugettext but checks for None. > > http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-custom-template-filters > http://docs.djangoproject.com/en/dev/topics/i18n/#standard-translation > > On Sep 24, 10:14 am, F

Re: TemplateSyntaxError: VariableDoesNotExist

2009-09-24 Thread Brian McKeever
I would write a custom tag that wraps ugettext but checks for None. http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-custom-template-filters http://docs.djangoproject.com/en/dev/topics/i18n/#standard-translation On Sep 24, 10:14 am, Florian Schweikert wrote: > Hello, > >

Re: TemplateSyntaxError at /admin/ Caught an exception while rendering: (1146, "Table 'winzees.django_admin_log' doesn't exist")

2009-09-10 Thread s.molinari
Yes you were right, silly me! Thanks eheh On 28 Aug, 14:12, Karen Tracey wrote: > On Aug 28, 7:57 am, "s.molinari" wrote: > > > Hiya! > > I tried to access the django admin page and I got that error. How do i > > fix it? I am stuck... > > I am new at using django as well... just to let you know

Re: TemplateSyntaxError at /admin/ Caught an exception while rendering: (1146, "Table 'winzees.django_admin_log' doesn't exist")

2009-08-28 Thread Karen Tracey
On Aug 28, 7:57 am, "s.molinari" wrote: > Hiya! > I tried to access the django admin page and I got that error. How do i > fix it? I am stuck... > I am new at using django as well... just to let you know ;) > > [snip] > Exception Type: TemplateSyntaxError at /admin/ > Exception Value: Caught an e

Re: TemplateSyntaxError No such column

2009-07-10 Thread nixon66
Problem solved!!! On Jul 10, 5:41 pm, nixon66 wrote: > Getting errors when I try to render a template. Django indicates that > it is a problem in the template and tells me that there is no such > column as "aid.id". There is no column called ID in either my > template, view or model. Any suggest

Re: TemplateSyntaxError: No module named urls

2009-07-09 Thread diogobaeder
SOLVED. It was a wrong URL mapping, in the frontend, that I was not seing, and the stack trace didn't give me a clue of where it was... but thanks, anyway... Diogo On Jul 9, 3:35 am, diogobaeder wrote: > I searched for this kind of error in this group, but there were only > old posts, from when

Re: TemplateSyntaxError

2009-05-28 Thread googletorp
You can do validation inside the template to check the data and raise errors accordingly. You can also check the data so you should be able to check if instance.property.id is a valid value and then only use it, if it is. It all comes down to how you would like your template tag to function. In so

Re: TemplateSyntaxError "Invalid block tag: 'include'"

2009-04-20 Thread Renato Untalan
Nevermind! I figured it out. Just for reference for those with a similar problem: "extends" and "include" aren't part of 'Template' and must be separately included: from django.template import Template, Context, loader from django.http import HttpResponse def render(request): admin_te

Re: TemplateSyntaxError: Settings issue?

2009-04-16 Thread Aneesh
Thanks BN, your intuition was spot on. It was a python path problem. Adding the following line to my dispatch.fcgi file did the trick. sys.path += ['/path/to/my/project'] It seems that "manage.py runserver" took care of this in my dev environment, so the issue didn't come up. On Apr 16, 10:43 

Re: TemplateSyntaxError: Settings issue?

2009-04-16 Thread Brian Neal
On Apr 16, 11:33 am, Aneesh K wrote: > > Why is the TemplateSyntaxError raised, and why don't I see this > problem on my development server? > > Thanks! > Aneesh Could be a python path problem? Put the directory that has your application in it on the python path. I think when you do the manage.p

Re: TemplateSyntaxError (newbie)

2009-03-17 Thread PaulE
Indeed I am using 1.0. Thanks for the info regarding the admin urls. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubs

Re: TemplateSyntaxError (newbie)

2009-03-17 Thread Malcolm Tredinnick
On Tue, 2009-03-17 at 18:03 -0700, PaulE wrote: > Malcolm, > > Thanks for the quick reply. > Problem solved - after reading your reply. > I changed > (r'^cms/(.*)', include('cms.urls')), > to > (r'^cms/', include('cms.urls')), > and it works fine. > > I still don't quite understand b

Re: TemplateSyntaxError (newbie)

2009-03-17 Thread Alex Gaynor
On Tue, Mar 17, 2009 at 9:03 PM, PaulE wrote: > > Malcolm, > > Thanks for the quick reply. > Problem solved - after reading your reply. > I changed >(r'^cms/(.*)', include('cms.urls')), > to >(r'^cms/', include('cms.urls')), > and it works fine. > > I still don't quite understand beca

Re: TemplateSyntaxError (newbie)

2009-03-17 Thread PaulE
Malcolm, Thanks for the quick reply. Problem solved - after reading your reply. I changed (r'^cms/(.*)', include('cms.urls')), to (r'^cms/', include('cms.urls')), and it works fine. I still don't quite understand because this *admin* url works fine http://localhost:8000/admin/ wh

Re: TemplateSyntaxError (newbie)

2009-03-17 Thread Malcolm Tredinnick
On Tue, 2009-03-17 at 16:47 -0700, PaulE wrote: > All, > > I am > - learning python and django simultaneously. > - an experienced developer > - a bit frustrated > > While working my way through > "Python Web Development with Django" > I stumble on a TemplateSyntaxError when trying to > view

Re: TemplateSyntaxError on unicode strings

2009-03-09 Thread juanefren
Thanks for your replies, It worked. On Mar 8, 6:16 pm, Malcolm Tredinnick wrote: > On Sun, 2009-03-08 at 18:01 -0700, juanefren wrote: > > Right I would mean 1.1 alpha. Looking with more details I found that > > error only appears when I use my class __str__ method, for example in > > my Address

Re: TemplateSyntaxError on unicode strings

2009-03-08 Thread Malcolm Tredinnick
On Sun, 2009-03-08 at 18:01 -0700, juanefren wrote: > Right I would mean 1.1 alpha. Looking with more details I found that > error only appears when I use my class __str__ method, for example in > my Address Class I have > > class MyClass(models.Model): > string1 = models.CharField(max_length

Re: TemplateSyntaxError on unicode strings

2009-03-08 Thread juanefren
Right I would mean 1.1 alpha. Looking with more details I found that error only appears when I use my class __str__ method, for example in my Address Class I have class MyClass(models.Model): string1 = models.CharField(max_length = 100, null=True) string2 = models.CharField(max_length = 1

Re: TemplateSyntaxError on unicode strings

2009-03-07 Thread Karen Tracey
On Sat, Mar 7, 2009 at 3:07 PM, juanefren wrote: > > I am using django 1.1 and MYSQL 5.0 with collation utf8_unicode_ci > Django 1.1 doesn't exist yet, so I guess you are either running 1.1 alpha1 or an SVN trunk checkout. I doubt the specific version really matters here (since full unicode s

Re: TemplateSyntaxError No module name utils

2008-12-10 Thread Milan Andric
On Dec 10, 8:52 pm, Milan Andric <[EMAIL PROTECTED]> wrote: > I'm getting one of those bubbly exceptions coming through the template > that are tricky to debug. > > TemplateSyntaxError at / > Caught an exception while rendering: Could not import > journalism_mm.workshops.views. Error was: No mod

Re: TemplateSyntaxError: Caught an exception while rendering: coercing to Unicode: need string or buffer, long found

2008-09-15 Thread Daniel Roseman
On Sep 15, 7:33 pm, SnappyDjangoUser <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I am receiving an obscure TemplateSyntaxError (Caught an exception > while rendering: coercing to Unicode: need string or buffer, long > found ) when rending a ModelForm that has a foreign key back to a > specific tabl

Re: TemplateSyntaxError Invalid block tag: 'include_admin_script' on add user

2008-09-04 Thread Karen Tracey
2008/9/4 KillaBee <[EMAIL PROTECTED]> > > At the site admin, when I click on the add user I get this error. > > TemplateSyntaxError at /admin/auth/user/add/ > > Invalid block tag: 'include_admin_script' > > Request Method: GET > Request URL:http://10.0.0.20:8000/admin/auth/user/add/ >

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
On Sep 4, 3:53 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote: > > It might have been in part a caching problem in Firefox: to clarify, > > I'm testing this on my laptop running Ubuntu 8.04 using apache2 with > > local name resol

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 10:00 AM, simong <[EMAIL PROTECTED]> wrote: > It might have been in part a caching problem in Firefox: to clarify, > I'm testing this on my laptop running Ubuntu 8.04 using apache2 with > local name resolution using names against localhost, which is fairly > non-standard but

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread simong
On Sep 4, 2:02 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 7:04 AM, simong <[EMAIL PROTECTED]> wrote: > > > I am trying to migrate a project to 1.0 and I'm currently updating the > > admin system. When I try to load the /admin/ URL I get this error: > > > Exception Type:

Re: TemplateSyntaxError 'No module named admin_urls' in 1.0 stable

2008-09-04 Thread Karen Tracey
On Thu, Sep 4, 2008 at 7:04 AM, simong <[EMAIL PROTECTED]> wrote: > > I am trying to migrate a project to 1.0 and I'm currently updating the > admin system. When I try to load the /admin/ URL I get this error: > > Exception Type: TemplateSyntaxError > Exception Value:Caught an exce

Re: TemplateSyntaxError when moving from 0.96.1 to SVN

2008-04-14 Thread Gonzalo Delgado
El Sun, 13 Apr 2008 19:42:19 -0300 "Ramiro Morales" <[EMAIL PROTECTED]> escribió: > > On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado > <[EMAIL PROTECTED]> wrote: > > Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The > > first error I get is this one (when trying to load

Re: TemplateSyntaxError when moving from 0.96.1 to SVN

2008-04-13 Thread Ramiro Morales
On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado <[EMAIL PROTECTED]> wrote: > Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The > first error I get is this one (when trying to load the admin interface in a > small project): > > TemplateSyntaxError at /admin > Template u

Re: TemplateSyntaxError exception catches all the rest

2008-04-04 Thread Karen Tracey
On Fri, Apr 4, 2008 at 7:25 AM, Simone Cittadini <[EMAIL PROTECTED]> wrote: > > When my app throws some exception I'm no more viewing the nicely > formatted html. > Actually I'm no more viewing the trace of the exception, all I see, no > matter what the error is, is attached below: > (I haven'

Re: TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems

2008-03-25 Thread jmDesktop
I found the poster at the devshed article is only partially right. It is those directories that are missing, but you need them from the .96 version. I found them here: http://code.djangoproject.com/browser/django/branches/0.96-bugfixes/django/contrib/admin On Mar 25, 10:53 am, jmDesktop <[EM

Re: TemplateSyntaxError after svn-updating

2007-09-20 Thread Filipe Correia
Just sorted it out. I've added the template's root dir to TEMPLATE_DIRS and started simply using: {% extends "common/searchForm.html" %} cheers, Filipe On Sep 19, 5:31 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hello, > > I've svn updated my working copy of django and started getting the >

Re: TemplateSyntaxError

2005-08-08 Thread Brantley
Thanks

Re: TemplateSyntaxError

2005-08-08 Thread Adrian Holovaty
On 8/8/05, Brantley <[EMAIL PROTECTED]> wrote: > Here's my conf, if you'd like, and everything's pointing to the correct > location, I know that it's not the tutorial suggested directory layout: Check out the "Multiple Django installations on the same Apache" section on this page: http://www.djan

Re: TemplateSyntaxError

2005-08-08 Thread Brantley
Yessir, running both with Apache and mod_python. Here's my conf, if you'd like, and everything's pointing to the correct location, I know that it's not the tutorial suggested directory layout: ServerAlias magic.deadwisdom.com ServerSignature On SetHandler python-program PythonHandler dja

Re: TemplateSyntaxError

2005-08-08 Thread Adrian Holovaty
On 8/8/05, Brantley <[EMAIL PROTECTED]> wrote: > I keep getting a TemplateSyntaxError randomly. When I'm working with > the admin side of my site, I'll often get this error > "TemplateSyntaxError: Template 'base_site' cannot be extended, because > it doesn't exist". It's entirely random, so I ca