I believe this is the page he is referring to:
http://code.djangoproject.com/wiki/NewformsAdminBranch
Another one that might be helpful:
http://code.djangoproject.com/wiki/NewformsHOWTO
--James
On Sat, Jul 19, 2008 at 1:04 PM, Ramdas S <[EMAIL PROTECTED]> wrote:
> Tom,
>
> Can you just share th
Hi Ricardo,
On Wed, Sep 16, 2009 at 12:18 PM, rvidal wrote:
> I can see that I'm using too much logic in my template but was hoping
> it would be possible without having to go into making custom tags.
>
>
If there is too much logic in the template in general there are two options.
1. Create a te
I'm having this issue as well.
Anyone know if a ticket was filed for this or have any fixes been
done? I looked in Trac and didn't anything.
If not I'll go ahead and submit a ticket.
Thanks,
--James
On 4/4/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2007-04-04 at 01:13 -0700,
Tue, 2007-06-05 at 13:01 -0400, James Punteney wrote:
> > I'm having this issue as well.
> >
> > Anyone know if a ticket was filed for this or have any fixes been
> > done? I looked in Trac and didn't anything.
> >
> > If not I'll go ahead and submit a
> My question: what if I
> have a weblog title that is identical to a post that I made 3 years
> ago and I didn't realize it? when saving, is the slugfield smart
> enough to acknowledge that there is a duplicate entry.
The slug field itself doesn't force uniqueness, but you can use
"unique=True"
I ran into this issue the other day wanting to use a foreign key value to
prepopulate a slugfield and just getting the id (if anything). According to
the documentation[1] prepopulate doesn't support foreign keys, so I ended up
going the custom javascript route in order to get it working.
--James
g, can you point me in the right direction with
> the javascript.
>
> --Merrick
>
>
> On Apr 17, 1:25 pm, "James Punteney" <[EMAIL PROTECTED]> wrote:
> > I ran into this issue the other day wanting to use a foreign key value
> to
> > prepopulate a slugfie
I used an inclusion template tag to do the same basic functionality. It's a
bit simpler and it keeps the html in the templates for easier customizing.
You can see the template tag here:
http://code.google.com/p/django-simplepages/source/browse/trunk/simplepages/templatetags/page_tags.py
The templ
Hi Rob,
Have you tried using order_with_respect to?
http://www.djangoproject.com/documentation/model_api/#order-with-respect-to
I don't know if this will do what you want, as I haven't used it, but
from the documentation it sounds pretty close to what you are looking
for at least.
--James
On 9
When you add a new field to a model you currently have to manually add
the field to the database as well.
With webfaction this is easiest to do by using the MysqlAdmin through
their control panel. If you aren't sure what type of field it needs to
be you can run the manage.py sql to get an output
I've been working on a site in development everything is working as
expected. This evening I went to set it live but when I set the debug
flag in the settings.py to False it gives me this error:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
404.html to use a
different extend template and now it's working.
Thanks,
--James
On 10/9/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2006-10-09 at 19:05 -0400, James Punteney wrote:
> > I've been working on a site in development everything is working as
Hi Tom,
Are you wanting the same 100 results you got in the first query just
ordered by title, or are you looking for a different 100 results based
on the order by title?
If you are looking for a different list of a 100 results, which is how
I'm taking your email, then you'd need to do another q
I have an animal class that with a predator and prey relationship to
itself. Each animal can have many other animals that are their
predator and many other animals that are their prey. The appropriate
part of the model is below.
class Animal(models.Model):
name = models.CharField(maxlength=200)
Thanks for the responses, and yeah Maciej is correct the m2m
relationship works fine without any errors, it's just that I can only
edit the prey relationship (as Maciej text art does a much better job
of showing than my explanation).
Right now if I add say a "rabbit" I'd have to go to edit every o
I have a photo field in a model that is a FilePathField. It works
great in that it lists the photos and the user can then choose one to
associate with the model. My question is how would you display the
selected photo in a template?
The file and image field types have the get_field_name_url to di
16 matches
Mail list logo