Re: Template tag to display boolean values?

2010-04-25 Thread Dmitry Dzhus
Derek wrote: > I am looking for a way to display a boolean value, with the "on" / "off" http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#yesno -- Happy Hacking. http://sphinx.net.ru む -- You received this message because you are subscribed to the Google Groups "Django users"

Re: how to customizing fields in django’s comment app?

2010-04-20 Thread Dmitry Dzhus
Marconi wrote: > How can I customize the django builtin comment app so that the fields > url, email will be ignored and automatically populate the name with > the user's username since I'm only allowing comments from > authenticated users? Derive your own form from the builtin one, add a new

Re: using Iframes?

2009-05-30 Thread Dmitry Dzhus
ydjango wrote: > I have two django based websites and I want show pages from one > website in another. Is Iframe the best way to do it or is there some > other better. I read somewhere that Iframes should be avoided but > never got any good reasons why? You should rely on syndicated high-level

Re: How to use next with comments?

2009-05-30 Thread Dmitry Dzhus
Kevin Fullerton wrote: > I'm working with django.contrib.comments at the moment, and so far most > things are working as expected. > > I'm building the submission form using {% get_comment_form for object as > form %} and have added the following as part of the form > > > > As I understand it,

Re: Strange url tag behaviour

2009-02-11 Thread Dmitry Dzhus
Leslie Maclachlan wrote: > I would expect the url to show as: http://intranet/MV_Edit_Employee/1/ > > But, it shows up as: > > http://intranet/var/opt/django/projects/ilayer/MV_Edit_Employee/1/ > > Everything still workds, but it just looks strange to have a url showing > the absolute path on

Re: Index page using flatpages

2008-12-10 Thread Dmitry Dzhus
Nuno Machado wrote: > If I put / in the URL field, I need to write "mysite.com//" to get > access to my index page. This is not good for visitors! It works fine for me when URL of flatpage is just slash, I type in site.com and see my flatpage. Probably your Django installation is a bit old or

Re: reverse problem

2008-12-08 Thread Dmitry Dzhus
Grigory Fateyev wrote: > In all my local projects when I want to use comments contrib, got the > error [1]. Django is from last trunk, all *.pyc files from > contrib/comments were removed. What it can be? Have you wiped out `urls/` subdirectory (left there from previous Django version) from

Re: Usaing quotations in comments - please share

2008-11-09 Thread Dmitry Dzhus
nkulmati wrote: > So here's a task which I do not yet know how to solve with django. > > When users post comments and wish to include a quote of another user, > I would like them to use: > >> quoted phrase 1 > > reply to phrase 1 > >> quoted phrase 2 > > reply to phase 2 > > (similar to an e-mail

Re: Comments in reversed order

2008-10-25 Thread Dmitry Dzhus
jrivero wrote: > yes! but the previous solution was useful to paginate the result with > a another templatetag > > {% get_comment_list for entry as comment_list reversed %} > {% paginate comment_list 10 as page using comment_list_page %} > {% for comment in comment_list_page %} >

Re: django.contrib.comments and returning to the original object

2008-10-25 Thread Dmitry Dzhus
Brandon Taylor wrote: > Hi everyone, > > I'm using 1.0 and have added contrib.comments to my project which has > a blog. I can preview a comment just fine, but I would like to provide > a way for the user to get back to the original blog entry once they've > posted their comment. Hi Brandon, I

Re: Spliting a single result from a db

2008-10-22 Thread Dmitry Dzhus
Dmitry Dzhus wrote: > I've spend a lot of time playing with different approaches to breaking > big text into pieces in the past. Now I'm quite sure that any solution > which tries to split a text _automagically_ sucks no matter what is it > based on — word count, paragraphs, anyt

Re: Spliting a single result from a db

2008-10-22 Thread Dmitry Dzhus
[EMAIL PROTECTED] wrote: > HI all, > > I've just starting using django and am really impressed. In my simple > app I want to retrieve a single "article" from a db and then display > it broken into reasonable length pages (either based on word count or > a specific markup in the text). I'd

Re: Comments in reversed order

2008-10-22 Thread Dmitry Dzhus
jrivero wrote: > Is possible obtain the comments of django.contrib in reversed order? > > In old version: > {% get_free_comment_list for workgroups.workgroup group.id as > comment_list reversed %} > > But in new version the templatetag not have control of this parameter. > The method for order is

Re: middleware or view ?

2008-10-22 Thread Dmitry Dzhus
PonasNiekas wrote: > I'm about to write an app, which is going to do long running (~1 to > ~60 minutes) calculations (meanwhile, the user who triggered the > calculation will get message like "calculation in progress" or smth). > > I'm wondering what is the right place or best practice to do

Re: Error in django.contrib.comments with {% comment_form_target %}

2008-10-22 Thread Dmitry Dzhus
Brandon Taylor wrote: > I see there is an closed ticket: http://code.djangoproject.com/ticket/8571. > I have cleared out all of my .pyc files as suggested, but I'm still > getting the template error. Can anyone offer any advice? I had a similar problem which was resolved after I had cleared

Re: strategy for deploying to production server

2008-09-23 Thread Dmitry Dzhus
sotirac wrote: > Just trying to get a feel for what other developers are doing when > deploying to a production server. There are some differences between > my development machine and production server such as the location of > my media files, the database settings, and if I want to enable

Re: Comments

2008-09-21 Thread Dmitry Dzhus
Bobby Roberts wrote: > What would I attach to using this form statement as a > starting point: > > {% render_comment_form for [object] %} > > ie what should the object be? Semantically comments application is not intended for creating new first-class data on your site, so the fact that you have

Re: Adding comments in loop

2008-09-18 Thread Dmitry Dzhus
[EMAIL PROTECTED] wrote: > actually, that isn't the issue, the issue is with the {% > render_comment_form for event %} tag, i'm getting a template syntax > error: > > Invalid block tag: 'render_comment_form' > > this is right after the comment_list endfor here: > > http://dpaste.com/78918/ I

Re: Customizing new comment

2008-09-14 Thread Dmitry Dzhus
chatchai wrote: > 2. Once I authenticate user, no need to have user filling user name > and email. Unfortunately, comment form required those fields. Not really. If user is authenticated, her id is stored along with comment in DB, and you can transparently access user_name and user_email like

Re: Comments customization

2008-09-08 Thread Dmitry Dzhus
Jarek Zgoda wrote: > Is there any document with new comment framework customization tips? > I'd like to switch finally to 1.0 but I don't know how to accomplish > few things (or have ugly workarounds): > > * do not display preview page after succesful posting of comment, go > to commented

Re: OT: Google Chrome

2008-09-03 Thread Dmitry Dzhus
James Matthews wrote: > HI List, > Today Google released chrome. I have been playing around with it a little > today. Besides for seeing some funny things (try > https://www.gmail.comThanks reddit) It seems to be a very nice > browser. I would like to see where > it's path is going to go. What

Redirecting after comment deletion

2008-09-02 Thread Dmitry Dzhus
How is default «delete comment» view from new comments system meant to get `next` argument (see `contrib/comments/views/moderation.py`)? I think good way to do it is to support `next` GET request parameter, so that one could use `/delete/123/?next=/blog/entry/bla-blah` as a link to comment

Re: How to create a list of months from a date field.

2008-08-30 Thread Dmitry Dzhus
djandrow wrote: > I understand dynamic urls and templates and things, so i don't need > help with that. What i need to know is how can i get a list of months > which have entries in them, I'd apperciate any help. Use generic date-based view (under django.views.generic.date_based.) and see

Re: Hi

2008-08-23 Thread Dmitry Dzhus
manitta wrote: > But when i try giving a request it does takes a screen shot. > unfortunately am not able to see the screenshot..:( > the screenshot is getting uploaded.. all data is visible but jus the > blank page.. How do you start your application? The screenshot is taken because somehow

Re: how to display date nicely

2008-08-18 Thread Dmitry Dzhus
Will Rocisky wrote: > I have a datetime object '2008-15-06 11:12:13' > I want to display it like 'June 6, 2008 at 11:12' {{ some_datevalue_object|date:"F j, Y at H:i" }} -- Happy Hacking. http://sphinx.net.ru む --~--~-~--~~~---~--~~ You received this message