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
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
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
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_
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
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
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
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
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 = {
> >
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
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'},
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
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
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
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
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
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 %}
>
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
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
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
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
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
> >
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
>
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
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.
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
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
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
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
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"
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)
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
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
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
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
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
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
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
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
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
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
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
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
43 matches
Mail list logo