Using COMMENTS_APP setting

2009-06-03 Thread Florian Lindner
Hello, following http://aartemenko.com/texts/optional-email-in-django- comments/ I try to configure comments in a way that the email address is not required. I changed my settings.py INSTALLED_APPS = ( [...] 'xgm.Blog.comments', ) COMMENTS_APP = 'xgm.Blog.comments'

contrib.comments: blank email

2009-06-01 Thread Florian Lindner
Hello, so far I understand the contrib.comments.models: user_email = models.EmailField(_("user's email address"), blank=True) The email field of a comment is not needed. Though my preview.html template (hat I've copied from the vanilla template and made only design modifications)

Re: Changing comments preview form

2009-01-29 Thread Florian Lindner
Am 29.01.2009 um 01:59 schrieb Malcolm Tredinnick: > > On Wed, 2009-01-28 at 19:24 +0100, Florian Lindner wrote: >> >> Am 28.01.2009 um 05:19 schrieb Malcolm Tredinnick: >> >>> >>> On Tue, 2009-01-27 at 20:11 +0100, Florian Lindner wrote

Re: Changing comments preview form

2009-01-28 Thread Florian Lindner
Am 28.01.2009 um 05:19 schrieb Malcolm Tredinnick: > > On Tue, 2009-01-27 at 20:11 +0100, Florian Lindner wrote: >> Hello, >> >> I'm playing around with the contrib.comments framework. I want to >> change the preview form. For that I've copied preview.html

Changing comments preview form

2009-01-27 Thread Florian Lindner
Hello, I'm playing around with the contrib.comments framework. I want to change the preview form. For that I've copied preview.html to xgm/Blog/ templates/comments (xgm is my project, Blog is app). My template loaders are: TEMPLATE_LOADERS = (

Re: Invalid block tag: "get_comment_count"

2009-01-21 Thread Florian Lindner
Am 20.01.2009 um 21:40 schrieb Florian Lindner: > > > Am 19.01.2009 um 22:58 schrieb Briel: > >> >> You should try playing around with the tags, trying to load comments >> different places trying some of the other comment tags to see what >> happens ect.

Re: Invalid block tag: "get_comment_count"

2009-01-20 Thread Florian Lindner
Am 19.01.2009 um 22:58 schrieb Briel: > > You should try playing around with the tags, trying to load comments > different places trying some of the other comment tags to see what > happens ect. > Also are you using the block tags? what block tags do you have where > have you placed them in

Re: Invalid block tag: "get_comment_count"

2009-01-19 Thread Florian Lindner
oes not use any non-trivial Django markup. How can I test the comments is loaded properly? Thanks, Florian > > > -Briel > > On 19 Jan., 21:01, Florian Lindner <mailingli...@xgm.de> wrote: >> Hello, >> >> I'm trying to use the comment framewo

Invalid block tag: "get_comment_count"

2009-01-19 Thread Florian Lindner
Hello, I'm trying to use the comment framework from Django 1.0.2. I've followed all the steps in http://docs.djangoproject.com/en/dev/ref/contrib/comments/ (added it to installed apps, added to urls.py and loaded in the template: {% load comments % }) but I get: TemplateSyntaxError at

Re: Invalid block tag: 'get_comment_count'

2008-12-28 Thread Florian Lindner
Am 28.12.2008 um 00:42 schrieb Russell Keith-Magee: > > On Sun, Dec 28, 2008 at 12:27 AM, Florian Lindner > <mailingli...@xgm.de> wrote: >> >> Hello, >> >> I'm trying to use the comment framework from Django 1.0.2. >> >> I've followed all th

Invalid block tag: 'get_comment_count'

2008-12-27 Thread Florian Lindner
Hello, I'm trying to use the comment framework from Django 1.0.2. I've followed all the steps in http://docs.djangoproject.com/en/dev/ref/contrib/comments/ (added it to installed apps, added to urls.py and loaded in the template) but I get: TemplateSyntaxError at /blog/1/ Invalid block

Re: Invalid block tag: render_comment_form (repost)

2008-12-05 Thread Florian Lindner
Am 04.12.2008 um 21:58 schrieb [EMAIL PROTECTED]: > > On 04.12-20:22, Florian Lindner wrote: > [ ... ] >> I use the comments framework from the newest Django SVN checkout. > > sorry to not be of more help (i've never used the comments framework) > but i can only

Invalid block tag: render_comment_form (repost)

2008-12-04 Thread Florian Lindner
Hello, since noone replied and I still found no answer I dare to repost. I use the comments framework from the newest Django SVN checkout. I have in my template: {% load comments % } [...] {% render_comment_form for object %} resulting in a Invalid block tag: 'render_comment_form' I have

Invalid block tag: render_comment_form

2008-11-30 Thread Florian Lindner
Hello, I use the comments framework from the newest Django SVN checkout. I have in my template: {% load comments % } [...] {% render_comment_form for object %} resulting in a Invalid block tag: 'render_comment_form' I have found the same error in one other posting but no solution. What is

OT: Tool to test trackbacks

2008-08-20 Thread Florian Lindner
Hello, I've added a Trackback function to my blog (written in Django). Does anyone knows a tool (internet site) which allows to send a test trackback to my blog to test it (incl. auto discovery)? Thanks, Florian --~--~-~--~~~---~--~~ You received this message

Get an absolute URL including host

2008-07-06 Thread Florian Lindner
Hello, how can I get an absolute URL including a hostname (e.g. http://www.example.org/dir/doc.html) in a template. I have an object which get_absolute_url I can use but what is the best way of getting the hostname in the template? Thanks, Florian

Join two different querysets

2008-06-24 Thread Florian Lindner
Hello, I have the following situation: A Blog has Comments and Trackbacks. Trackbacks should be shown like comments but they get a div class="Trackback" instead of class="Comment" in HTML. My idea was to join all Trackbacks and Comments and use a an additional attribute to tell them

Weird behavior with SMTP connections

2008-05-13 Thread Florian Lindner
Hello, I'm experiencing some odd behavior with SMTP connections and the functions to send mail. The relevant settings in my settings.py: ADMINS = ( ('Florian Lindner', '[EMAIL PROTECTED]'), ) EMAIL_HOST = "xgm.de" EMAIL_HOST_USER = "[EMAIL PROTECTED]" EMAIL_HOST_PAS

Delete stacked entry in admin interface

2008-05-07 Thread Florian Lindner
Hello, I have an Comment class that is part of an Entry class: class Comment(Model): blogEntry = ForeignKey(Entry, edit_inline=STACKED, num_in_admin=1) author = CharField("Name", max_length=100, core=True) authorMail = EmailField("E-Mail", blank=True) creationDate =

Problem with contrib.syndication

2008-03-02 Thread Florian Lindner
Hello, I try to create an RSS feed for my blog. I have in my application urls.py: from feeds import * feeds = { 'latest' : LatestEntries, } urlpatterns = patterns("", [...], (r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict':'feeds'}) ) in feeds.py: from

Problem with custom filter

2008-02-22 Thread Florian Lindner
Hello, I want to write a custom filter. I have a file called markdown.py inside my application directory with: register = Library() @register.filter def markdown(value, arg): print type(value) return value settings.py contains: INSTALLED_APPS = ( 'django.contrib.auth',

Filter ModelField content

2008-02-17 Thread Florian Lindner
Hello, I need to modify the date of one model field (TextField) each time before it is displayed. The modifications depend on one other field in the same Model. I think the best way to do this is to subclass TextField and override the method to get contents. My questions: 1) How is this

Re: Links to images in Blog posts

2008-02-13 Thread Florian Lindner
orever and be considerably > more flexible. Do you have any idea if it is possible to modify upload_to in a way that it uses the ID of the the object? Thanks, Florian > > > On Feb 13, 4:31 am, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> this is a repost

Links to images in Blog posts

2008-02-13 Thread Florian Lindner
Hello, this is a repost of an mail I sent some days ago. Since no one replied and I don't think that noone has an opinion about that I dare to post again. I have some problems about my blog which I would like to hear your opinion about. A user should have the possibility to upload image

Images in Blog posts

2008-02-11 Thread Florian Lindner
Hello, I have some problems about my blog which I would like to hear your opinion about. A user should have the possibility to upload image files in an post (which is represented by a Model). Images can be displayed either seperately from the text or can be embedded in the text. If

Which markup language to choose?

2008-02-06 Thread Florian Lindner
Hello, I'm writing my own blogging application for Django (yes, I want to reinvent the wheel, for learning and fun) ;-) According to documentation django.contrib.markup provides an interface to markdown, textile and restructered text. Now I wonder which one to choose for a) blog entries b)

Hosting with mod_proxy

2008-01-13 Thread Florian Lindner
Hello, what is your opinion about the following deployment configuration? The site is very low traffic. Let the django development server bound to localhost serve the pages and use mod_proxy from Apache as a front end. For me it has the advantages that it fits much better into my setup

hide fields using newforms

2007-12-30 Thread Florian Lindner
Hello, using newforms how can I set fields to be hidden (the hidden="hidden" attribute)? Thanks, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

using queryset and extra_context

2007-12-29 Thread Florian Lindner
Hello, I have this urls.py: info_dict = { "queryset": Entry.objects.all().order_by("- creationDate"), } urlpatterns = patterns("", (r'^(?P\d+)/$', 'django.views.generic.list_detail.object_detail', { info_dict, 'extra_context':{'CommentForm':CommentForm} } ) My problem is that I want

contrib.comments: Change freecomment form

2007-12-24 Thread Florian Lindner
Hello, I'm using the contrib.comment framework to use free comments for my blog. Now I want to change the form used for comment input. I have placed a file Blog-App/templates/comments/freeform.html which is a copy of django/contrib/commennts/templates/comments/freeform.html. My template

Re: get_absolute_url not working as expected

2007-12-17 Thread Florian Lindner
Am 17.12.2007 um 23:03 schrieb Jan Rademaker: > > > On Dec 17, 6:36 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> >> my code in the model: >> >>def get_absolute_url(self): >>return self.id >> >> Anyone e

Re: get_absolute_url not working as expected

2007-12-17 Thread Florian Lindner
return self.id Anyone else got an idea? I would send anyone any code he requests... Thanks! Florian > > Regarding the second issue comment the line with the decorator, more > details on that pb can be found there: > * http://code.djangoproject.com/ticket/5925 > > I

Re: get_absolute_url not working as expected

2007-12-15 Thread Florian Lindner
Am 15.12.2007 um 05:03 schrieb Alex Koshelev: > > 1) May be string is needed As I said, even when I return a constant string (return "foo") it changing nothing. > > 2) Absolute url not uri. So domain name is not needed. > > On 15 дек, 01:29, Florian Lindn

get_absolute_url not working as expected

2007-12-14 Thread Florian Lindner
Hello, I have two question regarding get_absolute_url: 1) I have the template code: {% for entry in object_list %} {{ entry.title }} {% endfor %} It's called from a .generic.list_detail.object_list. My get_absolute_url is implemented in my model: class BlogEntry(Model): def

Re: How to set ForeignKey with generic create view?

2007-12-12 Thread Florian Lindner
Am 10.12.2007 um 20:01 schrieb Florian Lindner: > > Hello, > I have this model: > > class BlogComment(Model): >blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, > num_in_admin=1) >author = CharField(max_length=100, core=True) >authorMail = EmailFie

How to set ForeignKey with generic create view?

2007-12-10 Thread Florian Lindner
Hello, I have this model: class BlogComment(Model): blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, num_in_admin=1) author = CharField(max_length=100, core=True) authorMail = EmailField(blank=True) content = TextField(core=True) Now I want to use the

How to tell generic create view about ForeignKey

2007-12-06 Thread Florian Lindner
Hello, I Have this model: class BlogComment(Model): blogEntry = ForeignKey(BlogEntry, edit_inline=STACKED, num_in_admin=1) author = CharField(max_length=100, core=True) authorMail = EmailField(blank=True) content = TextField(core=True) Now I want to use the

create_object generic view exampe

2007-12-05 Thread Florian Lindner
Hello, I'm looking for an example on how to use the django.views.generic.create_update.create_object generic view (with newforms). Can anyone point me to a good ressource? Thanks, Florian --~--~-~--~~~---~--~~ You received this message because you are

German dates (with date filter)

2007-11-09 Thread Florian Lindner
Hello, I use this line in my template: geschrieben am {{ entry.creationDate|date:"D, j.n.y, H:i" }} (geschrieben am == writen at) It produces output like "Wed, 26.9.07, 16:49" is there any way I can make this output German which means in this case to print Mi instead of Wed? My local is

Re: name 'django' is not defined

2007-11-07 Thread Florian Lindner
Am Mittwoch, 7. November 2007 schrieb Marty Alchin: > On 11/7/07, Florian Lindner <[EMAIL PROTECTED]> wrote: > > But why does the root urls.py works that also contains the line > > > > from django.conf.urls.defaults import * > > > > or the manage.py scri

name 'django' is not defined

2007-11-07 Thread Florian Lindner
Hello, I'm using Django trunk. After some weeks of paused development I started my app again today. But as soon as I access the URL defined at the root urls.py: (r"^blog/", include("xgm.Blog.urls")), I get an error: Error while importing URLconf 'xgm.Blog.urls': name 'django' is not defined

Re: name 'django' is not defined

2007-11-07 Thread Florian Lindner
Am Mittwoch, 7. November 2007 schrieb Thomas Guettler: > Am Mittwoch, 7. November 2007 15:41 schrieb Florian Lindner: > > Hello, > > I'm using Django trunk. > > > > After some weeks of paused development I started my app again today. But > > as soon as I access th

Start development: which branch?

2007-11-07 Thread Florian Lindner
Hello, I'm just about to start a project with Django (which will also be for learning Django). Should I use trunk for development? Or is there any branch better for development? (with regard to the introduction of newforms) Thanks, Florian

Re: Example for update_object

2007-10-29 Thread Florian Lindner
Am Donnerstag, 25. Oktober 2007 schrieb Nathaniel Whiteinge: > On Oct 24, 5:21 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > > I'm looking for an example on how to use the > > django.views.generic.create_update.update_object generic view. > > The create and update

Re: Example for update_object

2007-10-24 Thread Florian Lindner
Am Mittwoch, 24. Oktober 2007 schrieb tomris: > http://www.cnd-industry.com/ Is is just spam or meant serious in a way I don't understand? Regards, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Example for update_object

2007-10-24 Thread Florian Lindner
Hello, I'm looking for an example on how to use the django.views.generic.create_update.update_object generic view. Some of the concrete question I have: Is object.get_absolute_url() a function I need to implement in my model? The documentation of the view links to the manipulator and

Example for update_object

2007-10-14 Thread Florian Lindner
Hello, I'm looking for an example on how to use the django.views.generic.create_update.update_object generic view. Some of the concrete question I have: Is object.get_absolute_url() a function I need to implement in my model? The documentation of the view links to the manipulator and

Re: Design a model for a Blog

2007-09-24 Thread Florian Lindner
integer value) for url mapping If I understand correctly I prepopulate my slug field with the value from the title field (I understand you that it is the other way around). Anyway... does the slug field guarantees that the URL is unique? Regards, Florian > On 23 сент, 17:12, Florian Lindner

Design a model for a Blog

2007-09-23 Thread Florian Lindner
Hello, I am about to develop a blogging application for my site (it's also a learning Django app, so please don't point me to existing projects ;-) Since I do want to omit to change my entire app due to mistakes I had made while designing the model I would like to discuss my concept here

form variables in templates

2007-09-22 Thread Florian Lindner
Hello, can I access form variables (like request.POST["foo"]) in a template? Without writing them in the argument dictionary before. Thanks, Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

General site organization

2007-09-20 Thread Florian Lindner
Hello, I have the site xgm.de with a blog, an abbreviation database and some static pages. How would a organize such a site with Django? Create an app for the blog, an app for the DB and an app for the rest of the site or Create an app for the blog, an app for the DB and the static pages as

Re: Creating link to root

2007-09-17 Thread Florian Lindner
Am Sonntag, 16. September 2007 schrieb Christian Joergensen: > Florian Lindner wrote: > > Hello, > > a common problem I have is that I have references in my main template > > like CSS or an background image: > > > > > > > > This template is used wit

Creating link to root

2007-09-16 Thread Florian Lindner
Hello, a common problem I have is that I have references in my main template like CSS or an background image: This template is used within different paths. Therefore I need to have the styles.css availabe in every path the template could be used. An alternative would be give the entire URL

Re: Problem with generic views (404)

2007-09-16 Thread Florian Lindner
Am Sonntag, 16. September 2007 schrieb Collin Grady: > Do you actually have any Abbreviation objects? > > If you don't tell the view to allow empty results, it'll 404 if it has > nothing to show :) Yes, this was the problem, thanks! However I ran into the next problem just 5 minutes later. I

Problem with generic views (404)

2007-09-15 Thread Florian Lindner
Hello, I have an problem using generic views. My settings.py has set: TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', ) TEMPLATE_DIRS = ("/home/florian/xgm/templates/", ) I have an app

Using decoupled urls.py and generic views

2007-09-14 Thread Florian Lindner
Hello, part 3 of the tutorial introduced how to decouple URL configuration into the app dir. At part 4 [1] generic views are introduced and the decoupled URL configuration: from django.conf.urls.defaults import * urlpatterns = patterns('mysite.polls.views', (r'^$', 'index'),

Decoupling templates

2007-09-12 Thread Florian Lindner
Hello, I've just started with Django and have worked through the excellent tutorial. At chapter 2 [1] of the tutorial it says to set: TEMPLATE_DIRS = ( "/home/my_username/mytemplates", ) Which makes me putting all templates of all apps in my project into this directory (resp.