Hi,
On Nov 27, 2:06 pm, architecture <[EMAIL PROTECTED]> wrote:
> download this file from the internet
>
> Apress.Practical.Django.Projects.Jun.2008.pdf
>
Not trying to be holier than thou here, but suggesting on an official
Django mailing list to pirate a book written by one of the Django core
y,
incorporating much of Malcolms comments (thanks again, we were
overwhelmed by the depth and sheer insightfulness of your answer!).
We'll hold that presentation to our bosses tomorrow, let's see how it
goes. If anything, I have the feeling that this whole thing will
someday make
Hi,
I'm not sure, but it's possible that the first request is redirected
from
http://ddm/incunabula/zozo/authorartist
to
http://ddm/incunabula/zozo/authorartist/ <-- note slash
If you have CommonMiddleware loaded and settings.APPEND_SLASH is True,
Django will automatically redirect URLs with
Hi,
On Feb 4, 10:08 pm, djandrow wrote:
> Hello everyone,
>
> [...]
>
> I created a file in Htdocs then in that created the project with the
> views and urls.py and the others.
> But if I go
> onhttp://localhost:8080/myproject/helloorhttp://localhost:8080/myproject/hello/I
> get a 404 not foun
Hi,
I've written a form ImageField that is cropable with the help of a
javascript cropper. In the course of saving the cropped image, I have
to reopen the image file a couple of times in different modes in the
"clean"-method of the ImageField. Unfortunately, despite the docs
saying something diff
Hi,
On Feb 12, 11:03 am, Rhoel_in_Asia wrote:
> HI folks, having a torrid time trying to get geoDjango running on
> Ubuntu 8.10
[...]
try GEOS 3.0.3 (the version that the GeoDjango docs recommend), it
compiled without issue for me both on 8.04 and 8.10.
http://download.osgeo.org/geos/geos-3.0.
Hi,
On Jul 24, 8:41 am, Matthias Kestenholz
wrote:
> if request.method == 'POST':
> # initialize forms with request.POST and prefix
> if form1.is_valid() and form2.is_valid() and form3.is_valid():
> # save the data from the individual forms
> else:
> #
>
Just a little
On Jul 24, 10:37 am, Benjamin Wohlwend wrote:
>
> if all(f.is_valid() for f in (form1, form2, form3)):
> # ok, save
>
Oops, forgot to mention that I had to implement my own version of all
(), which doesn't short cut:
def really_all(iter):
all_true = True
Hi,
On Aug 14, 8:54 pm, sniper wrote:
> I am asking this because in the admin page, the list page uses digg
> style paging.
Like everything else that comes with Django, the admin app is open
source, so nothing stops you from having a peek. This particular
functionality can be found in django/co
Hi,
I'm trying to generate documentation for my django project with sphinx
[1] and autodoc[2]. It's mostly working, but I can't get sphinx to
pick up my model field definitions (with the exception of related
fields like m2m or ForeignKey). I asked in the IRC channel of sphinx
(#pocoo on freenode)
Hi,
I develop and maintain several Django sites that are all part of the
same organization. Some of them are more of the Intranet-type (e.g.
only for internal use), others are publicly accessible (e.g. a CMS).
My problem is that certain data from the Intranet sites have to be
displayed on a publi
Hi,
On Oct 27, 11:44 am, Graham Dumpleton
wrote:
>
> One could simply overlay URLs from one instance over another.
>
> For example, using mod_wsgi you should be able to do:
>
> WSGIScriptAlias / /some/path/public/site.wsgi
> WSGIScriptAlias /staff-members /some/path/intranet/site.wsgi/staff
Hi,
currently, when a form in the admin has collapsed fieldsets, those
fieldsets are expanded on submit. As I find this rather distracting
and couldn't find an explanation why this should be desired behavior,
I suspected that this is probably a hard to find bug somewhere in
between CSS, HTML and D
Hi Adrian,
if you use Apache, you can use mod_xsendfile[1] (other servers have
similar functionalities). Then you write somethink like this in your
view:
import mimetypes
[...]
mimetype, encoding = mimetypes.guess_type(path)
response = HttpResponse("", content_type=mimetype)
r
Sorry for the bump, but does no one have an explanation for this weird
behavior? The question comes up regularly when I show the admin
interface to a client.
On 23 Nov., 16:57, Benjamin Wohlwend wrote:
> Hi,
>
> currently, when a form in the admin has collapsed fieldsets, those
> f
Hi,
On 25 Nov., 16:14, Tom Evans wrote:
> On Mon, Nov 23, 2009 at 3:57 PM, Benjamin Wohlwend wrote:
>
> > From a
> > technical view, both the client and the server couldn't care less if
> > the form fields are visible or not, they process them all the same.
>
&g
Hi,
I have a base model A and two models B and C inheriting from the base
model. I'm using django-polymorphic[1] since it very conveniently
returns a list of B and C when querying on A. The requirement came up
that model C needs a GeometryField, and now I'm stuck. Both GeoDjango
and django-polymor
that the
RecurringEvent table would mostly consist of NULLs. Also, I'm not sure
if the get_data-method is really such a good idea, especially in
respect to performance.
What do you think?
Kind regards,
Benjamin Wohlwend
--~--~-~--~~~---~--~~
You received this
Hi Malcom,
thanks for your thorough answer!
On Apr 6, 6:29 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2008-04-05 at 02:49 -0700, Benjamin Wohlwend wrote:
>
> > I'm tending to the second design, since I would be able to combine
> > both event types i
Hi,
I have recently updated a fairly high-traffic website from Django 1.0 to
1.3. I added the csrf token to every form on the website, but nevertheless
we regularly hear back from users that get the dreaded 403 error on form
submits. I added some logging to the csrf error view (thanks Sentry to
Hi,
I have a bit of a problem with inherited reverse relations and django model
inheritance. Consider these models:
class Content(models.Model):
display = models.BooleanField()
class Link(Content):
url = models.URLField()
class Teaser(Content):
text = models.TextField()
link
Hi Tom,
On Wednesday, June 12, 2013 10:25:24 AM UTC+2, Tomáš Ehrlich wrote:
>
> Hi Benjamin,
> you can create explicit OneToOne field with parent_link=True
>
> https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.OneToOneField.parent_link
>
>
> Then you can set different r
22 matches
Mail list logo