On Sun, 29 Aug 2010 16:08:45 -0700 (PDT)
Cody Django wrote:
> I'd like to have the comment form contain a captcha if the user is
> logged in.
Do you mean "have the comment form contain a captcha if the user *is
not* logged in?
-E
--
You received this message because you are subscribed to the G
Hi All,
I have a model CampaignYear that is registered with django-reversion so that
when a CampaignYear instance is saved a django-reversion Version object is
also saved. This worked great until I wanted to do the following:
add a field to CampaignYear, last_editor(), that queries the latest V
Hi,
I am reading Practical Django Projects but am unable to find the online
source code. Does anyone know where this is located? I would think that
it would be at http://www.apress.com/book/view/1590599969. However, that
doesn't seem to be the case.
Thanks,
Evan
--~--~-~--~~
Hi,
I have a archive index generic view that is working at /portfolio/.
I also have a http://code.google.com/p/django-contact-form/ contact form
at /contact/.
I want to have the form currently located at /contact/ be on the same
page as my generic view at /portfolio/.
I am wondering what is th
Russell Keith-Magee wrote:
> The only real solution at present is to avoid serializing content
> types whenever possible (i.e., by not dumping the contenttypes
> application). If your fixture already has content types, manually
> delete them from the fixture before loading.
How can I go about man
Hi,
I am trying to loaddata from a file, bmdata.xml and getting an error:
Problem installing fixture 'bmdata.xml': duplicate key violates unique
constraint "django_content_type_app_label_key"
I understand that there is a conflict in the fixture data. However, I
don't know how to solve it. I only
Hi,
I am having some trouble trying to setup Django SVN on a shared web host
with lighttpd and flup (Joyent's Shared Accelerator).
I have setup lighttpd and it runs seemingly fine.
I am unable to get the fastcgi socket to be created with the runfcgi
command. In particular, the command I am test
Hi,
I ran across a problem today with the list view of my blog. I am using
markdown to create html tags for my post. In the list view I use the
template tag truncate to cut off the number of words. This leaves open
the html tags that markdown created.
I am wondering what ways people get around t
Hi,
Here I have a context processor --> http://dpaste.com/18402/
I have {{ base_path }} in one of my templates but it isn't returning
anything. I am not sure if I can use request.path the way I am using it.
Any ideas?
Thanks,
Evan
--~--~-~--~~~---~--~~
You recei
Hi,
I am trying to get pygments and markdown highlighting working on my blog.
When I try and save a post that has ` in it I get an attribute error.
My models are (more beautifully here http://dpaste.com/17230/) ignore
the _highlight_python_code part. that was from a previous attempt:
from djan
Hi,
I am trying setup pygments and markdown described here:
http://www.unessa.net/en/hoyci/2006/11/highlighting-code-using-pygments-and-beautiful-soup/
My Model.py is:
(Also here http://dpaste.com/hold/16731/)
-
from django.db import models
import datetime
# Create your models here.
class
Hi,
I was implementing tags on my blog and ran into this problem:
Under the administration page I can create and view tags. I can also
view a list of entries and try and create an entry. When I try and
create an entry I can fill out the entry form and save it. The data is
saved and appears on my
Florian Apolloner wrote:
> After editing your code, you will need to touch fcgi file
Can you be more explicit. I know the location of a lighttpd.sh init
file. But I am not sure if there is a fcgi file somewhere?
Evan
--~--~-~--~~~---~--~~
You received this message
Hello,
I am running Django with lighttpd. I will make a change in the code and
try and refresh the page through firefox. The page will reload but error
page shows me the old code. I can refresh it 20-30 times before it will
reload the new code. It seems as if something is being cached. I don't
th
Fabien Schwob wrote:
> Hello,
>
> I'm currently hosting my Django websites on a dedicated server and it
> works fine. I restart Apache when I make modifications since I'm alone
> on the box.
>
> But I've made evangelism for Django and I've convinced some friends to
> use it. So I would like to
I am trying to use generic views for a hand built weblog app.
I am getting a template error of "Could not parse the remainder: %
object.title %"
My blog/urls.py is:
-
from django.conf.urls.defaults import *
from binarymanipulations.blog.models import Entry
info_dict = {
'queryset':
James Bennett wrote:
> On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote:
>> I don't know how to pass the context processor with HttpResponse so my
>> template can do the ifequal. If someone can send me in the right
>> direction it would be glorious.
>
> H
Hi,
I am trying to follow the DRY principle. For the navigation of my site I
want to have a single template. My problem is that I need a way to
change the class of the nav links depending on what page is currently
being visited.
I want to try and do something of this sort: In my template do a if
Hey,
I am attempting to create a blog from scratch (it sounds like a great
way to learn something but it is a lot more work if it is the first
project you've done.)
I have a models.py:
-
class Entry(models.Model):
title = models.CharField(maxlength=255, core=True)
pub_date = models.D
risomt wrote:
> http://binarymanipulations.com:8157/polls/1/vote/ displays the Poll's
> title and all of the poll's choices correctly - start from there
I am not sure of how to start. I have been looking around with my views
and models and templates but as the novice I am, I haven't found
anything
Hello,
I am running django 0.95. I am going through the tutorial. My problem is
this:
I have 4 polls. If I run python manage.py shell and Poll.objects.all()
it shows them. Unfortunately when I go mysite/polls
(http://binarymanipulations.com:8157/polls/) it says "No polls are
available." Also if
21 matches
Mail list logo