On 08/08/2022 10.46, xu brandy wrote:
WechatIMG75.png
An error was reported using the GITLab repository to specify template
creation projects
And you expect everyone to be able to guess which Gitlab repository
you're talking about? You even made an effort trying to hide it.
But whatever
in your template folder -> account login.py to login .html .. if your html
file is login.py
and you have to specify full path like
render(request,"accounts/login.html",context)
On Saturday, October 14, 2017 at 3:19:53 PM UTC+5:30, utpalbr...@gmail.com
wrote:
>
> my code that caused an error
Check the extension. Sometimes editor will save the file as .htm while your are
referencing .html in your views. This can give a "No templates found" exception
too.
Yingi Kem
> On 15 Oct 2017, at 11:22 AM, utpalbrahma1...@gmail.com wrote:
>
> even though i have correct to login.htmlwhile
even though i have correct to login.htmlwhile running server and when i
try to open accounts page
it pops an error show below--
"no templates found"
in my browser
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this gr
What exactly is the error you are trying to fix?
Yingi Kem
> On 14 Oct 2017, at 10:49 AM, utpalbrahma1...@gmail.com wrote:
>
> my code that caused an error :
> ///
> from django.shortcuts import render
> from django.http import HttpResponse
> from django.template import loader
> # Create your vi
What is the error?
Also in your file tree you show your templates/accounts/login.py, you want
it to be .html to match to template name in the render.
Dylan
On Sat, Oct 14, 2017 at 2:49 AM, wrote:
> my code that caused an error :
> ///
> from django.shortcuts import render
> from django.http imp
my code that caused an error :
///
from django.shortcuts import render
from django.http import HttpResponse
from django.template import loader
# Create your views here.
def home(request) :
return render(request,'login.html',context)
///
above code is in my views.py of my app name "accounts"
m
Problem solved. My fault.
For some reasons I cannot recall, I had included the url.py file in debug
mode only.
--
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-use
Not an answer just an update:
> {% comment %}
> Imagelist
> {% uncomment %}
> is not correct.
>
Correctly commented out the lines look like
{% comment %}
Imagelist
{% endcomment %}
The wrong comment out brace caused the inlude file to be ignored at all, so
no
When
DEBUG = False
my django 1.4 (recently updated) behaves weirdly.
I have a template to include that displays some menu items
Topic 1
Topic
2
Search
{% if local %}
Topic local 1
Imagelist
Topic local 2
{% endif %}
I get an error
On 25 March 2012 11:56, Homer wrote:
> I tried to create an index webpage but Django told me I had a template
> error:
>
> Invalid block tag: 'endblock', expected 'empty' or 'endfor'
>
> Here is the code of index.html:
>
> {% exten
On 25 March 2012 11:56, Homer wrote:
> I tried to create an index webpage but Django told me I had a template
> error:
>
> Invalid block tag: 'endblock', expected 'empty' or 'endfor'
>
> Here is the code of index.html:
>
> {% exten
Is there an {% endblock footer %} ?
--
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 unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For
I tried to create an index webpage but Django told me I had a template
error:
Invalid block tag: 'endblock', expected 'empty' or 'endfor'
Here is the code of index.html:
{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block conte
thanks, the template error went away but adding this code to views.py
still gives search error.
def search(request):
error = False
if 'q' in request.GET:
q = request.GET['q']
if not q:
error = True
else:
books =
site project directory. Is that correct?
>>>>
>>>>
>>>>
>>>> On Wed, Feb 1, 2012 at 12:06 PM, Ankit Rai wrote:
>>>>
>>>>> Please check your template path in settings.py.
>>>>>
>>>>>
at 7:59 PM, TANYA wrote:
>>>
>>>> the installed apps has 'mysite.books', in the path and the html
>>>> files are in a directory under mysite project directory. Is that correct?
>>>>
>>>>
>>>>
>>>> On Wed
project directory. Is that correct?
>>>
>>>
>>>
>>> On Wed, Feb 1, 2012 at 12:06 PM, Ankit Rai wrote:
>>>
>>>> Please check your template path in settings.py.
>>>>
>>>>
>>>>
>>>>
&g
t 12:06 PM, Ankit Rai wrote:
>>
>>> Please check your template path in settings.py.
>>>
>>>
>>>
>>>
>>> On Wed, Feb 1, 2012 at 5:29 PM, TANYA wrote:
>>>
>>>> In views.py, when I add this code gives template error.
>>
kit Rai wrote:
>
>> Please check your template path in settings.py.
>>
>>
>>
>>
>> On Wed, Feb 1, 2012 at 5:29 PM, TANYA wrote:
>>
>>> In views.py, when I add this code gives template error.
>>>
>>> def search(reques
eb 1, 2012 at 5:29 PM, TANYA wrote:
>
>> In views.py, when I add this code gives template error.
>>
>> def search(request):
>> error = False
>> if 'q' in request.GET:
>> q = request.GET['q']
>> if not q:
>>
In views.py, when I add this code gives template error.
def search(request):
error = False
if 'q' in request.GET:
q = request.GET['q']
if not q:
error = True
else:
books = Book.objects.filter(title__icontains=q
; > record via the admin, and get the following:
>
> > TemplateSyntaxError at /admin/expert/expertresponse/add/
> > Caught AttributeError while rendering: 'unicode' object has no
> > attribute 'date'
>
> > [snip]
>
> > Template error
>
: 'unicode' object has no
> attribute 'date'
>
> [snip]
>
> Template error
>
> In template c:\python26\lib\site-packages\django\contrib\admin
> \templates\admin\includes\fieldset.html, error at line 12
> Caught AttributeError while rendering:
So I'm working along, everything's humming fine. Then I try to add a
record via the admin, and get the following:
TemplateSyntaxError at /admin/expert/expertresponse/add/
Caught AttributeError while rendering: 'unicode' object has no
attribute 'date'
[snip]
Thanks a lot.
That's decided
On Sun, Nov 14, 2010 at 5:08 AM, Robbington wrote:
> its an ImportError which means that it couldn't find your main urls.py
> or possibly a sub urls that you are including.
>
> Out of interest, this isnt the usual mysite.polls app kind of problem,
> how did you encout
its an ImportError which means that it couldn't find your main urls.py
or possibly a sub urls that you are including.
Out of interest, this isnt the usual mysite.polls app kind of problem,
how did you encouter this error?
If you could post the entire error message that you are seeing
including th
i can't fix that error actually i don't understand this error.
my urls.py :
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', 'public.views.index'),
(r'^
Ok,
Thanks, I was just seeing if it was a more basic error.
Unfortunately with out seeing more of your code/ error message it is
hard to diagnose the problem. I have to go out now for a few hours,
but if you post the full error message someone/or myself when I get
back maybe able to help you.
It
oops Sorry
it's my real urls.py file
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', include('public.urls')),
(r'^admin/doc/', include('django.contrib
Bit confused,
You said
"But i already installed djangodocs on my INSTALLED_APPS (
'django.contrib.admindocs', "
and in my urls.py
(r'^admin/doc/', include('django.contrib.admindocs.urls')), "
But in your urls.py admin docs is clearly commented out.
#(r'^admin/doc/', include('django
Yes
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS
Hi Tsolmon,
Can you post your full urls.py file for me?
Rob
--
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...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubs
Dear comrades
i'm using Django 1.1 with Postgres.
I got a following error
ImportError: No module named urls
212223
{% block branding %}{% endblock %}2425{%
if user.is_authenticated and user.is_staff %}2627{% trans 'Welcome,' %}28
{% first
Thanks. That worked.
On Sep 28, 7:35 pm, octopusgrabbus wrote:
> I am getting a Missing Template exception
>
> Exception Type: TemplateDoesNotExist
> Exception Value:
>
> registration/login.html
>
> My urls.py looks like this:
>
> from django.conf.urls.defaults import *
> from django.cont
On Tue, Sep 28, 2010 at 7:35 PM, octopusgrabbus
wrote:
> I am getting a Missing Template exception
>
> Exception Type: TemplateDoesNotExist
> Exception Value:
>
> registration/login.html
What's your TEMPLATE_DIRS value in settings.py?
Inside your template dir you need to create the file
I am getting a Missing Template exception
Exception Type: TemplateDoesNotExist
Exception Value:
registration/login.html
My urls.py looks like this:
from django.conf.urls.defaults import *
from django.contrib.auth.views import login
.
.
.
urlpatterns = patterns('',
(r'^$', main_page)
On Dec 16, 9:47 pm, mtnpaul wrote:
> I'm not looking for an answer, just thought I would post this problem
> so if someone else gets it they'll have one place to look anyways.
>
> I had a model with some field names greater than 31 characters. Since
> most databases restrict column name length to
We have not made a final decision on our database engine. I actually
prefer Postgresql. During early development
I also am probably wrong about the "most databases" statement above .
Oracle (I believe) is limited to 30 characters (MySQL is 64).
Postgresql 7.2 had a limit of 32 characters.
On Dec
On Dec 16, 2009, at 8:55 PM, Kenneth Gonsalves wrote:
> I find this interesting - but have been unable to find any
> documentation for
> postgresql/sql that points to this 31 character limit - any clues?
By default, identifiers in PostgreSQL are limited to 63 characters,
although that can be
On Thursday 17 Dec 2009 10:17:24 am mtnpaul wrote:
> Is this information useful to the community? Should it be posted in
> another place?
>
I find this interesting - but have been unable to find any documentation for
postgresql/sql that points to this 31 character limit - any clues?
--
regards
I'm not looking for an answer, just thought I would post this problem
so if someone else gets it they'll have one place to look anyways.
I had a model with some field names greater than 31 characters. Since
most databases restrict column name length to 31 characters I would
get this error when try
e server the following
> error is shown:
>
> Template error
>
> In template /opt/local/lib/python2.4/site-packages/django/contrib/
> comments/templates/comments/form.html, error at line 2
> Caught an exception while rendering: Reverse for ' post_comment at 0x8c582cc
This works fine in my computer. but in remote server the following
error is shown:
Template error
In template /opt/local/lib/python2.4/site-packages/django/contrib/
comments/templates/comments/form.html, error at line 2
Caught an exception while rendering: Reverse for '' with argument
This works fine in my computer. but in remote server the following
error is shown:
Template error
In template /opt/local/lib/python2.4/site-packages/django/contrib/
comments/templates/comments/form.html, error at line 2
Caught an exception while rendering: Reverse for '' with argument
ion admin panel I get this error
> message:
> Request Method: GET Request
> URL:http://localhost:8000/admin/proposal/qualification/ Exception Type:
> TemplateSyntaxError Exception Value:
>
> Caught an exception while rendering: coercing to Unicode: need string
> or buf
to see the Qualification admin panel I get this error
message:
Request Method: GET Request URL:
http://localhost:8000/admin/proposal/qualification/ Exception Type:
TemplateSyntaxError Exception Value:
Caught an exception while rendering: coercing to Unicode: need string
or buffer, Skill fou
Sven Richter wrote:
> Hi,
>
> i get the following error message:
> TemplateSyntaxError at /community/profile/sveris/
> Caught an exception while rendering: Reverse for 'youriq.profile_myiq' with
> arguments '('',)' and keyword arguments '{}' not found.
>
> Original Traceback (most recent call la
Sven Richter wrote:
> when i try to call:
> {% url profile_myiq argument %}
> NoReverseMatch: Reverse for 'youriq.profile_myiq' with arguments '('',)' and
> keyword arguments '{}' not found.
> (r'^(?P\w+)/$', 'user', {} 'profile_myiq'),
The error indicates you were providing either empty str
Hi,
i get the following error message:
TemplateSyntaxError at /community/profile/sveris/
Caught an exception while rendering: Reverse for 'youriq.profile_myiq' with
arguments '('',)' and keyword arguments '{}' not found.
Original Traceback (most recent call last):
File "/usr/lib/python2.5/si
On Fri, May 30, 2008 at 11:48 AM, kamakhya <[EMAIL PROTECTED]> wrote:
>
> Everything thing worked fine on my my machine, but when I hosted on
> webspace, I
> got the following when tried to login to admin account;
>
> Template error
>
> In template /home/kgupta/d
Everything thing worked fine on my my machine, but when I hosted on
webspace, I
got the following when tried to login to admin account;
Template error
In template /home/kgupta/django_src/django/contrib/admin/templates/
admin/index.html, error at line 56
Caught an exception while rendering: no
This only occurs (as far as I have found) when I use the {% block %}
feature of a template. Anyone know of a reason why?
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
render_node
723. result = node.render(context)
File "/usr/lib/pyth
I"m trying to test mptt:
http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal
I keep getting this error:
'module' object has no attribute '__path__'
The error comes from:
C:\Python25\lib\site-packages\django\template\__init__.py in
get_library, line of code:
mod = __import__(module
oh-yea!
sudo chmod -R 755 /path-to-templates
Thanks-
Doug
On Oct 16, 10:14 am, Michael Radziej <[EMAIL PROTECTED]> wrote:
> doug schrieb:
>
>
>
> > Hey-
>
> > Why am I getting this error if the template file exists?
>
> > #
> > Template-loader postmortem
>
> > Django tried loa
doug schrieb:
> Hey-
>
>
> Why am I getting this error if the template file exists?
>
> #
> Template-loader postmortem
>
> Django tried loading these templates, in this order:
>
> * Using loader
> django.template.loaders.filesystem.load_template_source:
> o /home
Hey-
Why am I getting this error if the template file exists?
#
Template-loader postmortem
Django tried loading these templates, in this order:
* Using loader
django.template.loaders.filesystem.load_template_source:
o /home/doug/templates/blog/entry_archive.html
I've now got the TEMPLATE_DIR as 'mytemplates' and that's fixed it.
Your advice on what is an absolute and relative path was very helpful.
Many thanks.
Based on the above, could you give me some examples on what my Media
Root and URL, and Admin Media Prefix should be. I think I'm also
having is
On Oct 12, 2006, at 12:29 PM, MerMer wrote:
>
> Don,
>
> Thanks for the advice - but it's not working for me.
>
> My full path is
> "c:/python24/lib/site-packages/django/bin/mysite/mytemplates" which
> works.
>
> I've tried "/mytemplates" and "mysite/mytemplates" as the TEMPLATE_DIR
> path but the
Don,
Thanks for the advice - but it's not working for me.
My full path is
"c:/python24/lib/site-packages/django/bin/mysite/mytemplates" which
works.
I've tried "/mytemplates" and "mysite/mytemplates" as the TEMPLATE_DIR
path but they don't.
The {% extends "promotion_list.htmt"%} is not working
On Oct 12, 2006, at 8:03 AM, MerMer wrote:
>
> my settings look like the following:-
>
> TEMPLATE_DIRS = (
> "c:/python24/lib/site-packages/django/bin/mysite/mytemplates",
>
> When I set up Django I just put in the full path in the belief that
> this would make things easier while I was testin
Julio,
I not sure what directory you're refering to. The tutorial is quite
explicit that one should create your own template directory within your
site. It wouldn't make any sense if these then had to refer to base
templates elsewhere.
MerMer
--~--~-~--~~~---~--~-
my settings look like the following:-
TEMPLATE_DIRS = (
"c:/python24/lib/site-packages/django/bin/mysite/mytemplates",
When I set up Django I just put in the full path in the belief that
this would make things easier while I was testing stuff.
MerMer
--~--~-~--~~~-
On Thu, 2006-10-12 at 05:36 -0700, MerMer wrote:
> I am trying to extend a template. My parent Template is in
> mysite/mytemplates/promotions/
> and the child template is in mysite/mytemplates/polls/
>
> I get the following error saying that the template cannot be found when
> I try:-
>
> {% ex
I think templates to be inherited must be on the base template
dir... I remember reading this somewhere but can't find references
online. Can you test please?
On 10/12/06, MerMer <[EMAIL PROTECTED]> wrote:
>
> I've now moved the parent template into the same directory as the child
> template b
jango_src\django\template\loader_tags.py
in get_parent, line 58
Template error
In template
c:/python24/lib/site-packages/django/bin/mysite/mytemplates\polls/index.html,
error at line 1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
I am trying to extend a template. My parent Template is in
mysite/mytemplates/promotions/
and the child template is in mysite/mytemplates/polls/
I get the following error saying that the template cannot be found when
I try:-
{% extends "mytemplates/promotions/promotion_list.htm" %}
The error r
I forgot to mention, from a shell I can access the M2M property fine,
so it seems like a template problem:
>>> p = Person.objects.get(pk=1)
>>> p
>>> p.projects
>>> p.projects.all()
[]
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Perplexing many-to-many problem
===
When attempting to iterate a many-to-many relationship of a context
variable, I am receiving a weird template error.
Any help would be greatly appreciated!
My Models
-
Person()
projects = models.ManyToManyField(Task
Thanks to those who replied; removing the () as suggested worked.
--~--~-~--~~~---~--~~
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 unsubscri
On Wed, Jul 12, 2006 at 09:09:22AM -0700, Spider wrote:
>
> I have this loop in a template :
>{% for s in p.schedule_set.all() %}
Remove the () and it should be fine
> The template engine complains with "Could not parse the remainder: ()"
>
> Here p is a Plan object instance. Schedule has
On 7/12/06, Spider <[EMAIL PROTECTED]> wrote:
> The template engine complains with "Could not parse the remainder: ()"
When doing things like this in a template, you don't use the
parentheses; just {% for s in p.schedule_set.all %}' should work.
Basically, Django tries a few different lookupg met
I have this loop in a template :
{% for s in p.schedule_set.all() %}
The template engine complains with "Could not parse the remainder: ()"
Here p is a Plan object instance. Schedule has Plan as a many-to-one
foreign key (each Plan has 1 or more Schedules).
What I want is to loop through all
> this has nothing to do with template - a mod_python error is usually
> caused by a borked __repr__ - look for a missing comma at the end
> of a tuple
Yeah, that's it.. I'm done some tweaks to model and at some time discovered
an error in __repr__.
On Tuesday 27 Dec 2005 2:50 pm, wiz wrote:
> TemplateSyntaxError: Caught an exception while rendering.
this has nothing to do with template - a mod_python error is usually
caused by a borked __repr__ - look for a missing comma at the end
of a tuple
--
regards
kg
http://www.livejournal.com/us
> I think the way to do it is to turn TEMPLATE_DEBUG=False so you can see
> the real error message.
Nay. Don't works either with DEBUG=False. Same exception with 'raise wrapped'
thingy.
It constantly drops dead on some pages even if there a blank template...
On Tue, 27 Dec 2005 12:20:23 +0300 wiz wrote:
>
> How to deal with such errors?
>
I think the way to do it is to turn TEMPLATE_DEBUG=False so you can see
the real error message.
I often get a similar error message when exceptions happen in certain
places and the debugging template trips up wh
How to deal with such errors?
---8<--
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch
result
78 matches
Mail list logo