On 11/19/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> This has never been tried, to my knowledge. It would be possible --
> and relatively easy -- to do if there were a DB-API-compliant ZODB
> library. Is there one? I know nothing about ZODB, other than the fact
> that it's associated with Zop
On 11/19/05, bruno de chez modulix en face <[EMAIL PROTECTED]> wrote:
> I made a quick search (google, the Django wiki, this group...) on the
> topic (Django +zodb) but did not found anythink relevant. Did anyone
> ever tried ? Any pointer ?
This has never been tried, to my knowledge. It would be
On 11/19/05, Ben Butler-Cole <[EMAIL PROTECTED]> wrote:
> Is it possible to get Django to connect to MySQL via a Unix socket file
> rather than on a TCP/IP port? I know that MySQLdb supports it, so I
> expect it's just a case of changing the way MySQLdb is called. If no
> one has done this before
On 11/19/05, wrb <[EMAIL PROTECTED]> wrote:
> I'm looking to generate (based on form requests) basic bar charts, pie
> charts, etc. inside of a my django app. Anyone try or suggest how
> django might interact with the likes of matplotlib. I read the
> documentation about generating PDFs, which s
On Saturday 19 Nov 2005 7:42 pm, bruno de chez modulix en face wrote:
> I made a quick search (google, the Django wiki, this group...) on the
> topic (Django +zodb) but did not found anythink relevant
it shows that people have inherrent good sense
--
regards
kg
http://www.livejournal.com/users
"PythonistL" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I also tried django.views.static.serve with the images. An image file
> is found ( HTTP/1.0 200 OK) but the image is distorted( damaged). Why?
Do you use Windows?
Thanks,
Eugene
On 11/19/05, hugo <[EMAIL PROTECTED]> wrote:
This is not a new restriction introduced by Django, it's a very common restriction all over the internet protocols. So maybe we shouldn't try to solve the worlds problems all at once with Django, we still need stuff to do with
2.0 ;-)I didn't mean to im
>... which doesn't work for a bunch of people around the world =). One
>alternative is to let people create what they think is a username using
Since when is it impossible for people to select a 7bit ascii username?
Sure, it might not be one you like, but I never heard of any keyboard
that disall
Is it possible to get Django to connect to MySQL via a Unix socket file
rather than on a TCP/IP port? I know that MySQLdb supports it, so I
expect it's just a case of changing the way MySQLdb is called. If no
one has done this before then I'll do it myself and submit a patch.
Ben
I'm looking to generate (based on form requests) basic bar charts, pie
charts, etc. inside of a my django app. Anyone try or suggest how
django might interact with the likes of matplotlib. I read the
documentation about generating PDFs, which should be very similar, but
I wanted to see if others
On 11/19/05, hugo <[EMAIL PROTECTED]> wrote:
So it's much better to stick to 7bit chars for user names. You can setthe users real name in Django, though - and there you can use allcharacters you want.
... which doesn't work for a bunch of people around the world =).
One alternative is to let peopl
On 11/19/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 11/19/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > And so it becomes very obvious that I'm new to this whole web
> > programming thing. Thank you for your patient explanations!
>
> Hey Bryan,
>
> Thank *you* for asking the questio
On Fri, 18 Nov 2005 22:13:56 -0600 Adrian Holovaty wrote:
> That sounds cool! Yeah, toss it on the Web if you get a chance -- I'm
> sure some people could find use in it.
Here it is:
http://lukeplant.me.uk/resources/djangovalidator/
Luke
--
"Oh, look. I appear to be lying at the bottom of a
On 11/19/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> And so it becomes very obvious that I'm new to this whole web
> programming thing. Thank you for your patient explanations!
Hey Bryan,
Thank *you* for asking the question! I've updated the tutorial and
URLconf documents so that they mentio
Thank you ALL for the explanation.
I checked http://code.djangoproject.com/ticket/810 to try
django.views.static.serve and it worked with CSS.
.
But I found out that in CSS file I can not use
p.
EntryField
{...
...
...
}
but must use
p.EntryField
{...
...
...
}
I also tried django.views.stati
Adrian Holovaty wrote:
> * All the model modules have to live *directly* within the models
> directory -- so the multi-level example you gave wouldn't work.
Thanks, that's what I wanted to know. Multi-level models would have
been nice, but judging from the open tickets there are much more
importa
[Richie]
>def process_request(self, request):
>if 'prefetch' in request.META.get('HTTP_X_MOZ', '').lower():
>response = HttpResponseForbidden()
>response['Vary'] = 'x-moz'
>return response
[Georg]
> Actually that will break all vary-header handling
On 11/19/05, Andreas Stuhlmüller <[EMAIL PROTECTED]> wrote:
> Are there any guidelines for managing large applications with Django?
> Most of the time it is possible to split those into several smaller
> apps, but sometimes it isn't - what is the recommended way to handle
> large apps? For example
On 11/19/05, Afternoon <[EMAIL PROTECTED]> wrote:
> My problem is that on some pages I see the username no problem, on
> others it's not there. user.is_anonymous always returns false, but the
> values of user.first_name or user.username varies with no pattern. It's
> reproducible on specific views
> Alternatively, if every page of your site has *separate* logic about
> presentation, which is required to be editable in the admin, then
> you'll want to create a "page" model, which has foreign keys to the
> types of content it's displaying, a field for the URL, and fields
> representing the or
On Nov 19, 2005, at 10:21 AM, Bryan Murdock wrote:
And so it becomes very obvious that I'm new to this whole web
programming thing. Thank you for your patient explanations!
No problem =) I just hope I didn't come across as condescending.
What am I doing? I'm just trying to make use of the
Jesus Christ, why would you want to use ZODB as a backend if you're
not using Zope? The mind boggles ;)
The closest thing I have seen is my own Django-Zope bridge, but that
is more for pulling HTML generated by Django into a Zope-driven
interface, and does not deal with the ZODB directly
On 11/19/05, Jeffrey E. Forcier <[EMAIL PROTECTED]> wrote:
>
> Sune is correct--your problem stems from a misunderstanding of what a
> URL really is :) Anything after a '?' character is not truly part of
> the URL, but instead defines GET parameters which are sent to the
> resulting view.
>
> In o
You seem to be pretty on top of things since you're already poking at
the internals of the model module magic, but just in case, I want to
make sure you've seen this:
http://www.djangoproject.com/documentation/model_api/#models-across-
files
and the section immediately following it.
Als
I can't help you on the whole problem (managing large applications),
but restricting to having a model in multiple files, see here:
http://www.djangoproject.com/documentation/model_api/#models-in-multiple-files
Basically it's more or less the first option you proposed.
Cheers,
Emanuele
Sune is correct--your problem stems from a misunderstanding of what a
URL really is :) Anything after a '?' character is not truly part of
the URL, but instead defines GET parameters which are sent to the
resulting view.
In other words, a URL (Universal Resource Locator) defines the
loc
Hi
I made a quick search (google, the Django wiki, this group...) on the
topic (Django +zodb) but did not found anythink relevant. Did anyone
ever tried ? Any pointer ?
TIA
I've just started using Django, so this may be a lame question.
I have created a couple of test apps and have been playing with
authentication etc. I want to just display the user name in the same
way as the admin (I even lifted the line of code from
django/contrib/admin/templates/admin/base.html
>I cannot add a user with an username that contains an umlaut >with the
>default admin-interface, though. How could I change that?
As with all usernames in computing, it's best not to do that. Reason:
usernames are often used in situations where you can't specify the
string encoding and so the sy
>> Secondly, there may be some things to consider with web caches. I
>> think you should add a vary header to indicate that the response will
>> vary depending on the value of the HTTP_X_MOZ header, or some such.
>
>Good point, thanks:
>
>def process_request(self, request):
>if 'prefe
>behavior. GWA *only* issues GET requests, and if an app >modifies
>data based on a GET, then the app should be considered >broken.
Actually the problem goes deeper: GWA can crawl areas that normally
can't be crawled, because they are behind logins. So GWS will hit pages
that were never meant to
Are there any guidelines for managing large applications with Django?
Most of the time it is possible to split those into several smaller
apps, but sometimes it isn't - what is the recommended way to handle
large apps? For example, does Django support splitting the models file
into several package
On 11/19/05, Bryan Murdock <[EMAIL PROTECTED]> wrote:
> How do you write a urlpattern to match something like this:
>
> /accounts/login/?next=/add_object/
The parameters are not matched against the url patterns, in
your view-func you can get it as request.GET['next'].
/s
33 matches
Mail list logo