Hi guys,
Can someone please tell me what can be done with the site feature in
admin?
And now I'm on it: from the ducumentation I understand that it is
possible to use admin interface parts in your own apps by calling
classes. Am I correct?
--~--~-~--~~~---~--~~
Y
I'm going to try to do the same thing as well. I have a vague idea that
I have to write a custom view for it, but I'm still trying to figure
out the right way to do it. Any pointers?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Have you seen this Fredrik?
http://djangoutils.python-hosting.com/wiki/Utils
--~--~-~--~~~---~--~~
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
Hi All,
The docs mentioned that you can override the default template for a
paticular flat page. I need to do this but do not know how ( though
I'm trying to figure it out)
Grateful for any assistance.
Sincerely
--~--~-~--~~~---~--~~
You received this message
On 3 Mar 2006, at 10:02 am, [EMAIL PROTECTED] wrote:
>
> Hi All,
>
> The docs mentioned that you can override the default template for a
> paticular flat page. I need to do this but do not know how ( though
> I'm trying to figure it out)
>
> Grateful for any assistance.
When you add the page y
I wrote a custom tag to loop through a list of tuples and give a
seperate variable for each key and value. I want it to do the
following.
list=[('one',1),('two',2)]
for a,b in list:
return a,b #return these to context variables.
{{a}} = {{b}}
Right now the custom tag is very bare, it doesn't
To create hierarchical menu's, the first thing I thought about was
some kind of parent child relation on just one table but then you have
to submit many queries. A better approach wil be the Modified Preorder
Tree Traversal. See:
http://www.sitepoint.com/print/hierarchical-data-database
On the Dj
Adrian said:
> I've never used Dreamhost, but I'll just toss in my two cents that
> having a dedicated server, with root access, is well worth it.
> ... it's still kinda-sorta affordable in the grand scheme
> of things if you're serious about making Web apps.
I totally agree. It's great to have r
pbx wrote:
> Adrian said:
>> I've never used Dreamhost, but I'll just toss in my two cents that
>> having a dedicated server, with root access, is well worth it.
>> ... it's still kinda-sorta affordable in the grand scheme
>> of things if you're serious about making Web apps.
>
> I totally agre
Graham King wrote:
>
> I totally agree too ! The freedom of your own server (VPS) is well
> worth it. I've used linode.com for over a year now and I love it. You
> end up getting better at system administration skills (setting MySQL,
> Apache, etc) and get a much better understanding of how
First of all, do you need a template tag for this? Can't you say
{% for item in mylist %}
{{item|slice:"0"}} = {{item|slice:"1"}}
{% endfor %}
If you want to create a for-loop-like template tag, you need some
additional machinery. It's best to use class ForNode and def do_for()
from defaulttags
At least the FlatPages app in Django's contrib uses the site feature.
--~--~-~--~~~---~--~~
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 unsub
You're not alone. I need this too and couldn't find a solution.
--~--~-~--~~~---~--~~
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
In my model I have Papers and Persons. One Paper usually has multiple
Persons as authors, and they have to be in a determined order. Every
Person can of course be author for multiple Papers.
On top of all, I'd like to be able to edit authors inline and
re-arrange their order for every Paper in ad
On 3/3/06, Rob Slotboom <[EMAIL PROTECTED]> wrote:
> Can someone please tell me what can be done with the site feature in
> admin?
/me thinks maybe documenting the sites app should go into
LittleEasyImprovements on the wiki...
--
"May the forces of evil become confused on the way to your house.
Hi Folks,
I think there are two ways of doing what I want to do. Essentially what
I want to do is be able to have read-only tables in the admin interface
(these tables get populated from an external app), but I'd like the
flexibility to be able to view the data in them from within the admin
appli
A site I'm developing could greatly benefit by having a user rating
added to it... e.g. a 1-5 star rating for each post and then being
able to display the top ten posts (perhaps additionally such as top
ten added this week, or top ten on subject X, etc.) or other such
"user scoring" uses.
Before
On 3/3/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
> Or, ideas/thoughts/comments gladly accepted on how to structure the
> models and views-code for this.
Take a look at the comments app distributed with Django
(django.contrib.comments), which has a rating system built in to it.
--
"May the for
On Fri, Mar 03, 2006 at 03:02:32PM -0600, James Bennett wrote:
> Take a look at the comments app distributed with Django
> (django.contrib.comments), which has a rating system built in to it.
Thanks, but it seems to me that it does a user voting (one up, or one
down) rather than "I give this a 3
Hi, everybody
I just created a simple data entry application in django, and I want to
use contrib admin as the data input interface and the admin user
management, I want the system log which staff user input the every
single line data. I know there is an action history. But I still want
there is
Thanks a lot Konstantin
:) it works
--~--~-~--~~~---~--~~
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 emai
Hi. I'm just starting to use Django and I'm loving it.
Don't you think it would be great if Django was ported to Boo (
http://boo.codehaus.org/ ) ?
If you don't know Boo, here are some of the main features:
- Python-like syntax
- Power of static typing with the ease-of-use of type inference
- I
On 3/3/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
> Thanks, but it seems to me that it does a user voting (one up, or one
> down) rather than "I give this a 3 star rating". This voting scheme
> generates an int value that can easily be ordered_by, but I don't think
> it's a user-friendly as, e.g
On Fri, Mar 03, 2006 at 04:50:37PM -0600, James Bennett wrote:
> If it were an up-or-down, the ratings fields probably wouldn't be
> PositiveSmallintegerFields, and the comments module's
> get_rating_options method probably wouldn't use a 1-10 rating scale as
> the example in its docstring ;)
:-)
Hi there-
I am getting the following exception. It doesn't show up in django's
flashy exception display, but just as text (because it happens while
rendering).
Dunno why it happens. But it usually happens after I add some sort of
relation information and then try to look at it through admin.
On 3/3/06, wizeman <[EMAIL PROTECTED]> wrote:
>
> Hi. I'm just starting to use Django and I'm loving it.
>
> Don't you think it would be great if Django was ported to Boo (
> http://boo.codehaus.org/ ) ?
Err, knock yourself out porting it if you want (as it's BSD licensed
after all), but I don't t
On Fri, 2006-03-03 at 17:12 -0600, Alan Bailey wrote:
> Hi there-
>
> I am getting the following exception. It doesn't show up in django's
> flashy exception display, but just as text (because it happens while
> rendering).
>
> Dunno why it happens. But it usually happens after I add some sort
On Friday 03 March 2006 14:45, wizeman wrote:
> If you don't know Boo, here are some of the main features:
>
> - Python-like syntax
> - Power of static typing with the ease-of-use of type inference
> - It's compiled, so type mismatches are caught right after changing
> something
> - It runs on the
Does anyone have any idea why a couple of messages (such as the one
I'm including below) from a couple of different people have several
lines combined making it very tough to read Or, more to the
point, what can be done about this?
Thanks
--
Glenn
On Fri, Mar 03, 2006 at 06:36:43PM -05
On 3/3/06, Tom Tobin <[EMAIL PROTECTED]> wrote:
> Err, knock yourself out porting it if you want (as it's BSD licensed
> after all), but I don't think you'll see many of us jumping to switch
> from Python anytime soon. ;-)
That's a much more measured response than my initial one (which I was
sma
On 3/3/06, Glenn Tenney <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any idea why a couple of messages (such as the one
> I'm including below) from a couple of different people have several
> lines combined making it very tough to read Or, more to the
> point, what can be done about this?
On Fri, 2006-03-03 at 15:53 -0800, Glenn Tenney wrote:
> Does anyone have any idea why a couple of messages (such as the one
> I'm including below) from a couple of different people have several
> lines combined making it very tough to read Or, more to the
> point, what can be done about thi
wizeman wrote:
>
> I think one of the big advantages is the static typing feature. It's
> great, because if you change a variable or method name (or type) in one
> of your classes, and forget to change the method calls in other
> classes, the error(s) would be caught at compile-time instead of
>
Hi there
I'd like to add the filter function to my own view much in the same way
admin interface does it - i.e. filter based on the values of multiple
model fields. I am puzzled how to define the URL pattern and how the
matched pattern data gets passed to the view. Let's say I have 3
fields, each
On Friday 03 March 2006 01:01, Malcolm Tredinnick wrote:
> Unfortunately, Meta.ordering seems to want a real field, not a method
> (which Admin.list_display can take) or a property.
>
> So am I missing something, or is this even a common need for other
> people?
Meta.ordering does ordering in th
Hi, three models that concern this issue are Photo, Tag, and PhotoTag.
Tag represents the model for all tags:
class PhotoTag( meta.Model ):
tid = meta.ForeignKey( Tag, core = True )
pid = meta.ForeignKey( Photo, core = True, verbose_name = "Photo
Tag", edit_
class META:
# fol
Sorry - some edit_inline, etc. got cut off in the paste.
--~--~-~--~~~---~--~~
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 t
Ok, I was thinking more in an academic perspective instead of a
real-world one.
Think about it. Python was an esoteric language in the beginning. And
Boo isn't that esoteric, it can be thought of as an extension to the
Python syntax.
And virtually all .NET libraries can be used in Boo, it runs on
On 3/3/06, wizeman <[EMAIL PROTECTED]> wrote:
>
> Ok, I was thinking more in an academic perspective instead of a
> real-world one.
>
> Think about it. Python was an esoteric language in the beginning. And
> Boo isn't that esoteric, it can be thought of as an extension to the
> Python syntax.
Iro
Jeremy Dunck wrote:
> IronPython -is- Python, runs on .Net, and is coming along nicely.
Yes, IronPython is also cool. You know when you look at something and
you say - wow, this is a great idea and it would be great if everyone
realizes that? I had that feeling with Python right away, but only in
I'v written a expression tag, it can be used to calculate python
expression and save the result to a template variable. I think it
maybe some useful for someone.
---utiltags.py---
from django import template
import re
register = templat
It seems you can also say
{{item.list.0}} = {{item.list.1}}
--~--~-~--~~~---~--~~
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 fro
42 matches
Mail list logo