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'
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)
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
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
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 = (
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.
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
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
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
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
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
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
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
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
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
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
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
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
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 =
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
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',
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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'),
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.
57 matches
Mail list logo