class Entry(models.Model):
blog = models.ForeignKey(Blog,related_name='entries')
Title = models.CharField(maxlength=250, blank=False, null=False)
Slug = models.SlugField(maxlength=250, blank=False, null=False,
prepopulate_from=('Title',))
Content = models.TextField(blank=False,
I get the above error when running an application via apache2. not
when i use the built in 'python mange.py runserver' command.
I've done a svn update with the current trunk both directly into my
site-packages directory and to another directory with an 'ln' link
inside the site-packages
> Should the example still work with the latest svn revision of
> GeoDjango? The IPython session is pasted below.
Yes, it should work. You found a bug -- I just fixed it in r6916.
There have been some significant changes to GeoDjango since FOSS4G
(e.g., GEOS & GDAL refactors, distance queries,
Hi folks,
I was going to keep quiet on this until I was a bit further along... I've
just started work on re-hashing multiple-db support to make it a bit more
flexible. The existing code is quite hard to update with trunk as it makes a
lot of changes to django's core codebase. I've also found it a
I submitted bug #6189 [1], but I thought I should ping django-users to
see if anyone has encountered this before or knows of a workaround.
In summary, despite adding "blank=True" to my fields, many of them
throw IntegrityErrors when I try to save them with blank values in the
admin
On Dec 13, 2007 12:25 AM, Derek Steinkamp <[EMAIL PROTECTED]> wrote:
>
> As an aside, I think it is a real showstopper to not include this
> feature in the main trunk... I can't believe the triage stage on the
> feature request was recently changed to "Someday/Maybe". To me it seems
> obvious
On Tue, 2007-12-11 at 15:18 -0800, crybaby wrote:
> I have a view which allows users to upload pictures and add tags,
> description to them. I have to update two tables: post and img
>
> If I want to do this by REST, how do you do this? Is REST only suited
> for manipulating one resource(one
Hi,
> However, after I have SAVED a pub, I cannot change the Person field of
> its PubAuthors from the inlined page on the Pub admin page! Here's a
> screenshot:http://code.djangoproject.com/attachment/ticket/6118/badorderedmanyto...
This is documented behaviour for the OneToOneField:
Personal Development is Bringing Artificial Intelligence to the Internet
It never ceases to amaze me... that the personal development industry is
growing as rapidly as it is. When you see that self help is being used
to raise money for charities, it doesn't come as much of a surprise.
Just an issue, I've lots of problems with Django i18n and cachés. So
if you decide not to use different urls for the language and just take
the page language from the browser or let the user to change it
manually, be careful with per-view-cache as far as I know is not i18n
friendly.
--
Antoni
On Dec 12, 1:13 pm, Milan Andric <[EMAIL PROTECTED]> wrote:
> Is there an easy way to print an object in html? Basically with
> display names and manytomany relationships resolved. (just for
> viewing)
>
> I was thinking to write something like model_to_dict(obj) that
> resolves a bunch of
>On Wed Dec 12 11:13 , Milan Andric <[EMAIL PROTECTED]> wrote:
> Is there an easy way to print an object in html? Basically with display
> names and manytomany relationships resolved. (just for viewing)
> I was thinking to write something like model_to_dict(obj) that resolves a
> bunch of
This topic has come up once or twice before, but it doesn't seem like
a solution exists. Basically I'm looking for a recommended pattern for
creating Django models that have no association with a database (i.e.
"tableless").
Curiously, ticket #419 has to do with enabling tableless models, but
it
Diino enables you to Store, Share, Access & Protect your important files.
Free online photo Album, Free online auto-matic Back-up, Free Access your
MP3 music online, 2 GB For Free!
That's right, we are happy to give you a whopping great 2GB of secure online
storage
where you can manage and share
Hello Remco,
A subset of what you are looking for is provided by this library:
* http://code.google.com/p/django-multilingual/
I found it very easy to work with hand I was able to modify flatpage
(since this was what I was looking) in a very small amount of time.
What it will bring to you :
>On Tue Dec 11 17:57 , Goldy <[EMAIL PROTECTED]> wrote:
> My Django database was created using sqlite3 and therefore produced a file
> called mydb.py. I was wondering if this file could be connected to and
> examined interactively by sqlite3 as if i had inserted the tables myself?
a very easy
On Wednesday 12 December 2007, l5x wrote:
> form_for_instance? Check:
> http://www.djangoproject.com/documentation/newforms/#generating-forms-for
>-models
That's only in the SVN version, but if we have to move from .96 to SVN to
get it then so be it.
--
Kirk Strauser
signature.asc
Hello,
I ran into a problem recently (after updating to latest svn) where I'm
assigning a list to a widgets.MultipleHiddenInput field but the list
is rendered as a string in the html form.
How do I assign a list to a multipleinput form field so it's rendered
appropriately?
The problem is
form_for_instance? Check:
http://www.djangoproject.com/documentation/newforms/#generating-forms-for-models
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Thanks for the link, it is very helpful. I see the last attachments are
the docs committed by you -- I'll be giving those a read here shortly.
As an aside, I think it is a real showstopper to not include this
feature in the main trunk... I can't believe the triage stage on the
feature request
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 = EmailField(blank=True)
>content =
ok, it fix the problem of the font_size attr but the distribution of
values is too spaced. For example, if I got two tags: politics, linux.
the count for those tags are:
politics: 6
linux: 4
when it generate the font_size attr, for "politics" the size is 6 and
for "linux" the size is 0. It can't
Ignore that question!
That was a bit stupid, the Notes are passed with the pages as
page.note_set.all()... or something to that effect.
On Dec 12, 12:34 pm, bjornkri <[EMAIL PROTECTED]> wrote:
> I've a feeling I'm going about this completely wrong...
>
> So I have a model called Page, and each
Hi,
Let's say I want to create yet another blog app, and I want to write
articles in multiple languages - English and Dutch, in this case.
Some articles will be English-only, some will be Dutch-only. Many articles
will be available in both languages.
People browsing in one language should see
Julien napisał(a):
> My Django project is served my a certain hosting company, and all the
> static data (videos, images, etc.) is served by an external server in
> another hosting company. The static data is access through an A ip
> redirection for static.mydomain.com
>
> I'd like to allow
On 12 Dec 2007, at 11:55 am, Julien wrote:
> My Django project is served my a certain hosting company, and all the
> static data (videos, images, etc.) is served by an external server in
> another hosting company. The static data is access through an A ip
> redirection for static.mydomain.com
>
Hi there,
My Django project is served my a certain hosting company, and all the
static data (videos, images, etc.) is served by an external server in
another hosting company. The static data is access through an A ip
redirection for static.mydomain.com
I'd like to allow users of the website to
I've a feeling I'm going about this completely wrong...
So I have a model called Page, and each Page can have a number of
Notes.
Now, I'm displaying the pages with a generic view, and I thought I'd
pass the Notes along as extra_context. It looks somewhat like this:
(r'^pages/(?P\d+)/$',
Hi, I'm having trouble. My model has publications and authors, and the
order of authors matters and should be specified by users of the admin
interface. To implement the ordered list, I made an intermediary model
called "PubAuthor", where the user has to enter a number for each
author to specify
VMware seems to be a good idea - but I'll probably install win2k again
from Ubuntu as main system ;-) My win-machine has gotten so bloated
and slow that it is anyways time for a new installation. That's the
reason why I wanted a new system at all.
Arch also looks lean and fast, but the docs for
Jeremy Dunck napisał(a):
> I think you want tramline.
> Or you want ticket #2070
>
> Sorry you've received no helpful response in the meantime.
>
> On Dec 7, 2007 8:58 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
>> Did anybody manage to catch in Django 413 response (request entity too
>> large),
I third it... except for the fact that this is a newby asking. Given that
fact I'd have to say (k)ubuntu. Personally I love Arch!!
Ben
On 12/12/2007, Aspersieman <[EMAIL PROTECTED]> wrote:
>
>
> Lic. José M. Rodriguez Bacallao wrote:
> > I will recommend Arch, is simple and powerful.
> >
> > On
32 matches
Mail list logo