On 6/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> currently my django logfile looks like:
> [06/Jun/2006 05:48:36] "GET /1/Image/17 HTTP/1.1" 301 0
> [06/Jun/2006 05:48:36] "GET /1/Image/17/ HTTP/1.1" 200 10026
> [06/Jun/2006 05:48:36] "GET /css/base.css HTTP/1.1" 304 0
> [06/Jun/2006 05:4
Hi,
currently my django logfile looks like:
[06/Jun/2006 05:48:36] "GET /1/Image/17 HTTP/1.1" 301 0
[06/Jun/2006 05:48:36] "GET /1/Image/17/ HTTP/1.1" 200 10026
[06/Jun/2006 05:48:36] "GET /css/base.css HTTP/1.1" 304 0
[06/Jun/2006 05:48:36] "GET /images/20050828174505_1_1_1.jpg HTTP/1.1"
200 420
I thought I did that by FTP'ing the Django files from my local pc to my
shared hosting account. Before I did that, I deleted the django
directory on the shared account. I wasn't sure if just ftp'ing the
files would suffice, so I wiped out the .91 version that was there.
No apologies are necessary
On Mon, 2006-06-05 at 19:49 -0700, keukaman wrote:
> Thanks Malcolm. I did as you suggested and got the error
>
> ImportError: No module named django
>
> I guess there's an installation problem.
I guess this should be easy to fix, but just in case you are still
stuck, let's back up a couple of
Hi John,
The $ at the end of a regular expression means that it is the end of
the string and nothing else comes after it.
So '^polls/' would match 'polls/things' where '^polls/$' wouldn't.
On a similar note the ^ character means the beginning of a string.
On 06/06/2006, at 12:26 PM, John M w
Thanks Malcolm. I did as you suggested and got the error
ImportError: No module named django
I guess there's an installation problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
On Jun 5, 2006, at 10:26 PM, John M wrote:
>
> Ok, so im gong through the turtorial and trying to adopt it to my own
> project, and I see this in urlpatterns:
>
> (r`^polls/$'),
> (r'^polls/(\d+)/$')
>
> how does that differ from
>
> (r'^polls/'),
> (r'^polls/(\d+)/$')
>
> Note th
On 6/5/06, John M <[EMAIL PROTECTED]> wrote:
> (r`^polls/$'),
> (r'^polls/(\d+)/$')
>
> how does that differ from
>
> (r'^polls/'),
> (r'^polls/(\d+)/$')
The strings in the first element of the tuple are regular expressions
(aka regex). That's a complex but powerful text matching
On Mon, 2006-06-05 at 19:26 -0700, John M wrote:
> Ok, so im gong through the turtorial and trying to adopt it to my own
> project, and I see this in urlpatterns:
>
> (r`^polls/$'),
> (r'^polls/(\d+)/$')
>
> how does that differ from
>
> (r'^polls/'),
> (r'^polls/(\d+)/$')
>
>
$ in a regular expression means "match the end of the line." What this
means is that the first one, ^polls/$, means "match any url that starts
and ends with polls/". If you omit the $, it means "match any url that
starts with polls/, but ends with anything". So in your second example,
the first re
$ is part of the regular expression. It matches the end of the line. ^
matches the beginning
So, '^polls/(\d+)/$' would match
polls/1234/
but not
polls/1234/1
because the ending is wrong, and not
the_polls/1234/
because the beginning is wrong
You can read more about this at http://d
Did you svn update from previous trunk to magic-removal? I experienced
this because svn update left a directory urls in
django/contrib/admin/urls/, so i think there was some type of conflict
with the urls.py that is now directly in the django/contrib/admin/
GinTon escribió:
> Solved after of
On Mon, 2006-06-05 at 19:21 -0700, keukaman wrote:
> Thanks for the direction.
>
> When I try to run django-admin.py startproject I get
> "Permission Denied".
Since django-admin.py tries to write some files into the current
directory, do you have write permissions for the location where you are
Ok, so im gong through the turtorial and trying to adopt it to my own
project, and I see this in urlpatterns:
(r`^polls/$'),
(r'^polls/(\d+)/$')
how does that differ from
(r'^polls/'),
(r'^polls/(\d+)/$')
Note the $ is missing from the first line of the second example.
When y
Thanks for the direction.
When I try to run django-admin.py startproject I get
"Permission Denied".
I'm a bit unclear about the "import django" part of your comment. Below
is from my httpd.conf file for Apache:
SetHandler python-program
PythonHandler django.core.handlers.modpython
Set
On Mon, 2006-06-05 at 17:57 -0700, keukaman wrote:
> Thanks Adrian. I tried this approach and got a bunch of python errors
> when trying to access my website. I manually deleted the contents of
> the original django directory. Then I put the trunk django directory in
> it's place. is there a step
Thanks Adrian. I tried this approach and got a bunch of python errors
when trying to access my website. I manually deleted the contents of
the original django directory. Then I put the trunk django directory in
it's place. is there a step I may be missing? Do I need to run an
install package?
--
1) RSS feed on code.djangoproject.com doesn't work for several weeks
now. Probably Trac administrator should push a few buttons.
2) Django community feed is not updated for a week now.
Thanks,
Eugene
--~--~-~--~~~---~--~~
You received this message because you
Hi Alloy.
Yes, it's a bug.
more details here:
http://code.djangoproject.com/ticket/639
basically you have to check for self.imatge != '' before doing anything
with the file.
cheers,
arthur
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Hello,
I'm trying to convert an image using PIL but I have lots of problems
with that. I have reduced my model to the simplest one, as I'm getting
a "file not foun error" on PIL
class Imatges( models.Model ):
imatge = models.ImageField( upload_to='fotos' )
def _before_save(self):
Don't put the title in the song model- just have a Title model instead of Alias.
Then you just list the titles...
--
Derek
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
> Again, can we just let this thread die? Per the Wikipedia entry on
> him, Ilias has been banned from posting to this list.
This does not feel right. Though I understand the reasons that may have
led the admins to this decision, it's always a failure when a community
cannot evolve a way to handl
On Monday 05 June 2006 14:02, Chris H wrote:
> The full error is:
> TypeError at /admin/catalog/item/add/
> __deepcopy__() takes exactly 2 arguments (1 given)
Adrian fixed it in svn, my bad sorry.
Luke
--
"Whoever calls on the name of the LORD will be saved." (Romans 10:13)
Luke Plant || L.Pl
On Monday 05 June 2006 14:57, benj wrote:
> def index(request):
> titles = list(Alias.objects.all()) + list( Song.objects.all())
> titles.sort(lambda x, y: cmp(x.title, y.title)
> return render_to_response('songs/index.html', {'titles': titles})
>
>
> This gives me lists of objects wi
On 6/5/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote:
> I didn't know Wikipedia administered this list? Sure, the entry does
> point out he has had a few problems on the mailinglists, a lot owing
> up to his own behaviour. However, see below.
The Wikipedia article is not the authori
On 6/5/06, James Bennett <[EMAIL PROTECTED]> wrote:
> Again, can we just let this thread die? Per the Wikipedia entry on
> him, Ilias has been banned from posting to this list.
I didn't know Wikipedia administered this list? Sure, the entry does
point out he has had a few problems on the mailingl
On 6/4/06, Richard Cooper <[EMAIL PROTECTED]> wrote:
> I hope job openings are acceptable on this list. I can't see anything
> to suggest they aren't.
Just for the record: Job openings are perfectly acceptable on the
list. Best of luck filling your position.
Adrian
--
Adrian Holovaty
holovaty.
On 6/5/06, keukaman <[EMAIL PROTECTED]> wrote:
> I have an shared hosting account that doesn't allow the use of
> Subversion to get the trunk. My default installation of Django is .91.
> It resides under the a directory /home/username/lib/python2.4/django.
> Since I can't use Subversion on the hos
svn checkout first ;)
I doubt the copy by webfaction is a svn-checkout, so svn update won't work...
best solution wuold be to checkout a new copy, remove the old one in
python2.4 and move/link the new one to the desired position
On 6/5/06, keukaman <[EMAIL PROTECTED]> wrote:
>
> Thanks Remi. I h
I am learning Django by working on a baseball stats tracking
application. In it, I have a Team model, like this:
class Team(models.Model):
name = models.CharField(maxlength=200)
Teams participate in games (in a Game model), either as the home team
or the visiting team. I have a method in the
First, I appreciate all of the help this group has provided me. I'm a
relative newbie and I am struggling a bit with the installation of the
magic-removal version.
I have an shared hosting account that doesn't allow the use of
Subversion to get the trunk. My default installation of Django is .91.
On Monday 05 June 2006 20:02, Spock wrote:
> --
> from django.template import RequestContext as Context
> from django.shortcuts import render_to_response
>
>
> def index(request):
> ..[cut bla bla ]..
> return render_to_response('helpdesk/ticket_list.html',
> Context(request,{'obj
Helo.
I'm trying to get acces to auth mechanizm into template (user object).
Currently I'm using such construction:
at beggining of my views.py:
--
from django.template import RequestContext as Context
from django.shortcuts import render_to_response
def index(request):
..[cut bla bla ]
On 6/5/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote:
> Ilias, could you stop replying to every single email and just ignore
> ad hominems? Thanks.
> And to the rest, could you please focus on purely the technical
> content instead of polluting the list with unnecessary replies?
Aga
Allow me to cut through the crap from both sides.
Ilias, could you stop replying to every single email and just ignore
ad hominems? Thanks.
And to the rest, could you please focus on purely the technical
content instead of polluting the list with unnecessary replies?
Thanks.
On 6/5/06, Ilias Laz
On 6/5/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> I think if you're running under mod_python, you want to use
> request.connection.aborted in your view function.
Sorry, mod_python reference here:
http://www.modpython.org/live/current/doc-html/pyapi-mpconn-mem.html#l2h-134
--~--~-~--~-
On 6/5/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> I update the status of the process by using some simple AJAX from the
> client side. What I'd like is that if the client closes their browser,
> some exception gets raised, and I can cancel the rest of the process
> on the server side.
Interestin
On 6/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Can't you use an "onUnload" event handler for that? I think that's what
> Google Mail also uses for discarding message drafts that you're working
> on when you close the browser window.
>
> As the other poster already pointed out: just beca
yep. i feel particularly hosed for trying to work with you offline to
synchronize our efforts. and even more retarded for the time i spent and
help i offered regarding your web site design, resume and general "how to
better present yourself" as a consulting business. (considering i've been
a fu
>> 2) where's the source? ;-)
> In my Eclipse workspace, why? :-)))
Weee [nudge nudge, wink wink, saynomore]
--
Nicola Larosa - http://www.tekNico.net/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
Jay Parlar wrote:
> I update the status of the process by using some simple AJAX from the
> client side. What I'd like is that if the client closes their browser,
> some exception gets raised, and I can cancel the rest of the process
> on the server side.
Can't you use an "onUnload" event handler
On 6/5/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> What's the issue or objective? Even if you push some bits down the
> pipe, there's no guarantee the browser got them or rendered them
> correctly. Maybe understanding your motivation would help provide a
> useful answer.
>
> But, for a short a
On 6/5/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> But even in the production setup, will their be an exception raised
> that I can get my hands on, or will mod_python silently swallow it?
What's the issue or objective? Even if you push some bits down the
pipe, there's no guarantee the browser g
On 6/5/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 6/5/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> > When I run with the development server, I just get a 'Broken pipe'
> > socket error. I'm guessing the situtation will be even worse when I
> > try with Apache/mod_python.
>
> I personally h
On 6/5/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> When I run with the development server, I just get a 'Broken pipe'
> socket error. I'm guessing the situtation will be even worse when I
> try with Apache/mod_python.
I personally haven't noticed anything bad happening. It's generally
not a good
Let's say that a client requests a page, and before the view can send
a response, the client closes their browser. Is there any way in
Django to catch an Exception for that?
When I run with the development server, I just get a 'Broken pipe'
socket error. I'm guessing the situtation will be even w
GinTon wrote:
> Congratulations! I like much
Thanks!
> How long time you have taken in developing it?
Roughly two-and-a-half months of weekends and one or two evenings a
week.
But since this is my first real Python project, and of course my first
Django project, this includes a lot of browsing
Congratulations! I like much
How long time you have taken in developing it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To
class Genre(models.Model):
name = models.CharField( maxlength=64, unique=True )
artists = models.ManyToManyField( 'Artist', null=True, blank=True )
class Admin: pass
def __str__(self):
return self.name
class Artist(models.Model):
name = models.CharField( maxlength=128
On 6/5/06, Scott Anderson <[EMAIL PROTECTED]> wrote:
>
> I'm sorry, but I can't agree. I've used DWR as well, and the "server
> generates your Javascript to include" model really creates a lot of
> problems, both with versioning and performance.
>
> Simple is best. I've had the best luck with stra
View on Site broken with move over to Apache/mod_python.
I have moved my Django 0.91 project (idms, the application under the
idms project is called "pra" with several more apps to come) from my
development server over to Apache/mod_python on Windows XP SP1.
Everything was working fine using the
Thanks Remi. I have tried getting the trunk using Subversion and I seem
to be having a problem. Do I need to do anything to make "svn update"
work?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
Hi.
tekNico wrote:
> That's a nice site you got there. :-)
Thanks.
> I tried a search (box on the upper right), but got a 500 code. What did
> you use for full text search?
Nothing yet. That'll be done using Google search results (with
Adsense). The application for that is still pending, thoug
That's a nice site you got there. :-)
I tried a search (box on the upper right), but got a 500 code. What did
you use for full text search?
And two more questions:
1) where's the english language version?
2) where's the source? ;-)
-- Nicola Larosa - http://www.tekNico.net/
--~--~-~
Well - it's finally happened. My new Django-powered travel portal
is almost as good as I'm going to get it by fiddling around with it
by myself. In the hope of getting feedback for improving the
application, and of course also in the hope of having built something
that people will actually want to
I'm looking for an efficient way of combining two different models into
a single list for a folk song and lyrics sharing app. Many folk songs
are known by a variety of names, so to reflect this I created these two
models (leaving out a bunch of fields/definitions)
class Song(models.Model):
ti
On 6/5/06, GinTon <[EMAIL PROTECTED]> wrote:
> I can not create an Artist object without the existence of Genre and
> Album objects
>
> Is there any way of make it?
Add 'null=True, blank=True' to the 'genres' and 'albums' field, and
you'll be able to create an artist without specifying any associ
Honza Král wrote:
> do you mean backward referencing??
>
> http://www.djangoproject.com/documentation/db_api/#backward
> that gets created for you
>
The API is really usefull!
> if not, could you clarify what does not work for you? what would you
> like to do and don't know how?
>
But in the admi
Derek Anderson wrote:
> i believe it's time for...
Mr. Anderson,
we had some private conversation at the start of my work with Django,
where I had answered all of your questions.
Based on this, you should have a better rating about me, especially when
knowing my private situation (or at least
Guys,
I don't know who this guy is, or why everyone hates him (and I don't
want to know, so don't take this as an invitation to tell me).
But it seems to me that if he is a troll then you all have played into
his hands by posting a bunch of off topic slurs against him, resulting
in our mai
The full error is:
TypeError at /admin/catalog/item/add/
__deepcopy__() takes exactly 2 arguments (1 given)
The model for Item has two foreign key fields and and image field. I
have seen comments suggesting it could be either of these causing the
problem. I couldn't track it down further.
Am I m
i believe it's time for...
___
/| /| | |
||__|| | Please don't |
/ O O\__ feed |
/ \ the trolls
Brett Parker wrote:
> On Mon, Jun 05, 2006 at 03:00:17PM +0300, Ilias Lazaridis wrote:
>> James Bennett wrote:
>>> Can we declare this thread closed now,
>> or course not.
>>
>> In topic posts subjecting the schema evolution support are of course
>> welcome.
>
> Other than you, which seems to b
On 5 Jun 2006, at 6:58 am, James Bennett wrote:
>
> On 6/4/06, David Robinson <[EMAIL PROTECTED]> wrote:
>> Really, I've tried looking this one up myself (you wouldn't
>> believe how
>> many questions I *haven't* had to ask... (thanks for well-written
>> docs
>> everyone)). It seems almost o
On Mon, Jun 05, 2006 at 03:00:17PM +0300, Ilias Lazaridis wrote:
>
> James Bennett wrote:
> > Can we declare this thread closed now,
>
> or course not.
>
> In topic posts subjecting the schema evolution support are of course
> welcome.
Other than you, which seems to be annoying a lot of peop
James Bennett wrote:
> Can we declare this thread closed now,
or course not.
In topic posts subjecting the schema evolution support are of course
welcome.
> and ask that anyone who wishes to play with Ilias do so off-list?
>
> My inbox thanks you in advance.
For anyone who wishes to ignore
Can we declare this thread closed now, and ask that anyone who wishes
to play with Ilias do so off-list?
My inbox thanks you in advance.
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
--~--~-~--~~~---~--~~
You received
tekNico wrote:
>> "This Project is Committed to Users of Open Source Products. It tries to
>> save their time,
>
> ...while wasting the developers' one, right. :-|
Developers are free to ignore any threads.
And you are free to ignore them, too.
>> "The weaknesses of the Open Source Product, th
> "This Project is Committed to Users of Open Source Products. It tries to
> save their time,
...while wasting the developers' one, right. :-|
> "The weaknesses of the Open Source Product, the Code Base, the producing
> Project, the surounding Community and the Leadership are transparently
> pr
Brett Parker wrote:
> On Mon, Jun 05, 2006 at 01:30:10PM +0300, Ilias Lazaridis wrote:
>> Tom Tobin wrote:
>>> On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
I've create a simple Schema Evolution Support for Django and I am
working to created a Django Quickstart, which will allow
Jay Parlar wrote:
> On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
>> This starts to become ridiculous.
>
> That's your own fault. You've dug a pretty deep grave for yourself,
> with your behaviour across various newgroups. You can't blame people
> for wanting to dismiss you because of it.
On Mon, Jun 05, 2006 at 01:30:10PM +0300, Ilias Lazaridis wrote:
>
> Tom Tobin wrote:
> > On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
> >> I've create a simple Schema Evolution Support for Django and I am
> >> working to created a Django Quickstart, which will allow even
> >> unexperien
Steven Armstrong wrote:
> On 06/04/06 18:11, Ilias Lazaridis wrote:
>> Jay Parlar wrote:
>>> Ilias:
>>>
>>> I thought you would stop bothering Django people after it was revealed
>>> on Django-dev that you're a known Internet troll:
>> [...]
>>
>> This starts to become ridiculous.
>
> What do you
Tom Tobin wrote:
> On 6/4/06, Ilias Lazaridis <[EMAIL PROTECTED]> wrote:
>> I've create a simple Schema Evolution Support for Django and I am
>> working to created a Django Quickstart, which will allow even
>> unexperienced users to see a django site running within their browsers.
>
> Ilias Lazar
tekNico wrote:
>> Your comments are very welcome.
>
> Wow, man (or whatever you are), you're something. :-)
>
> You actually cite your detractors on your own pages (see bottom of
> http://case.lazaridis.com/multi/wiki/DjangoAudit , and of
> http://lazaridis.com/core/eval/index.html ).
"This Pro
do you mean backward referencing??
http://www.djangoproject.com/documentation/db_api/#backward
that gets created for you
if not, could you clarify what does not work for you? what would you
like to do and don't know how?
On 6/5/06, GinTon <[EMAIL PROTECTED]> wrote:
>
> I'm trying to implement TG
I'm trying to implement TG example model as learning in Django.
http://www.turbogears.org/docs/TurboTunes/
http://sqlobject.org/SQLObject.html#relationships-between-classes-tables
To create relationships between tables are used:
ForeignKey: One-to-Many
MultipleJoin: One-to-Many (with back refere
On 5 Jun 2006, at 02:31, Scott Anderson wrote:
> You have to make sure to trap both successes and failures in the
> Javascript code -- I don't know how mochikit does that, but with
> prototype you need to specify an onFailure hook to get errors.
MochiKit models its async stuff on Twisted deferr
Hello Friend
You are invited to join www.liveinforum.com
There you can discuss / post on various topics like Fun, Jokes,
Interesting True Facts, Movies, Music, Writing Skills, English
Writing, Personal stories like Love, Romance, Breakup, Image & Photo
Sharing, Video Clips, Entertainment, Chi
79 matches
Mail list logo