Hi,
I've written some code which is meant to wrap around the date based
generic views. For some reason, it fails with the following error:
TypeError at /news/2007/
archive_year() got multiple values for keyword argument 'year'
Here is the contents of my wrapper function. It retur
I love My Job.
www.bangbangboomboom.com
http://new-best-positions-in-bed.blogspot.com
http://e-mail-scam.blogspot.com
http://this-is-good-stuff.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Hello,
I'm sending two list to my template. I'm looping through one of my
list in a for loop. Within that for loop I want to display that
contents of my other list. Here is what I have so far:
Here is my return statement in my view that calls the template.
return
I'd just like to report that we're having this problem as well, the
same as you describe. The `shell` command seems to work fine...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
Just from a quick glance, the site design is quite pretty and
innovative. Looks like there's a ton of stuff at work there, looks
like a pretty large undertaking. Are you using satchmo for e-commerce?
On Dec 3, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Many, many folks on this list
The only obvious thing then is too make sure that all directories from
root down to the egg cache directory are actually readable/searchable
to others. If a parent directory is not readable/searchable ie., o+rx,
then Apache will not be able to search in there, even if the egg cache
directory has u
On Dec 4, 2007 10:29 AM, Michael <[EMAIL PROTECTED]> wrote:
>
> So I'm using a "projectless" setup where I am manually setting
> PYTHONPATH and DJANGO_SETTINGS_MODULE. For some reason my settings
> module is not being loaded correctly when I use the runserver command
> from the django-admin utilit
tried it fresh, tried it with stuff in it (for kicks). Either way
nothing shows up, changes etc. That whole issue with mod_python might
be the issue. For the meanwhile, so I can get to bed tonight I just
ran easy_install. I will try without the absolute paths tomorrow.
Thanks
On Dec 3, 7:55 pm, G
So I'm using a "projectless" setup where I am manually setting
PYTHONPATH and DJANGO_SETTINGS_MODULE. For some reason my settings
module is not being loaded correctly when I use the runserver command
from the django-admin utility.
Here's an example shell session (in Windows) using an empty proje
On Dec 4, 11:22 am, Michael Newman <[EMAIL PROTECTED]> wrote:
> This isn't strictly a problem with Django, but for some reason I am
> having problems extracting my python eggs. Mod_python comes back with:
>
> ExtractionError: Can't extract file(s) to egg cache
>
> The following error occurred whil
On 12/3/07, gkelly <[EMAIL PROTECTED]> wrote:
> I'm getting the following Traceback sporadically (using Django 0.96
> and mod_python on linux).
> I can hit refresh and the page comes up fine, but sometimes this error
> will happen again (as if some httpd children pass and some fail).
You're proba
On 12/3/07, omat <[EMAIL PROTECTED]> wrote:
> In the actual case I have more fields in the Record model, and
> repeating those fields in the Review model is not DRY.
Ah, I see now. Using just "a" "b" and "c", I didn't realize they
actually mapped directly to the other model.
> If I create a mode
This isn't strictly a problem with Django, but for some reason I am
having problems extracting my python eggs. Mod_python comes back with:
ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the
Python egg
cache:
[Errno 13] Permi
In the actual case I have more fields in the Record model, and
repeating those fields in the Review model is not DRY.
If I create a model with "new" and "comment" and relate it to the
Review, what would be the type of the field of the "new"?
I want them to be, say, DateField for date fields, and
Hi,
I'm getting the following Traceback sporadically (using Django 0.96
and mod_python on linux).
I can hit refresh and the page comes up fine, but sometimes this error
will happen again (as if some httpd children pass and some fail).
FYI:
def user_sites(self):
return ",".join([s.siteID
Apache generally runs as a special user. This user must have read
access to those Django modules you have symlinked into the Python site-
packages directory. Thus if the files are not readable to others, or
any of the directories from the root right down to where the Django
software is actually in
Many, many folks on this list helped me with many many things putting
this together, and I thank all of you.
Let me single out John M. and Tim Chase, for helping me figure out how
to get data from a dyno run and import it into the site. Makes for
some nifty graphs.
http://classicmotorsports.net
-
Just a quick thanks to those who posted so many Django blogs
throughout November. In particular, Marty's (http://
gulopine.gamemusic.org/) postings on descriptors and James' (http://
www.b-list.org/weblog/categories/django/) series on NewForms were very
helpful, though I saw many things I'll be g
Actually, I have just rerun "python setup.py install" to get my
installation working again and noticed the running install_egg_info
that happens last. Might this have something to do with my problems
when using a symlink instead ?
On Dec 3, 6:17 pm, Greig Rapley <[EMAIL PROTECTED]> wrote:
> Hi,
Hi,
I have django (trunk) installed on MacOSX 10.5 using mod_python and it
all works fine when I use python setup.py install to actually install
the files retrieved via subversion. However if I follow the
installation instructions to use a symlink to my SITE-PACKAGES
directory I get the followin
On 12/3/07, Karen Tracey <[EMAIL PROTECTED]> wrote:
> I don't know how to go from raw sql to a QuerySet. My own custom managers
> start with a model's default QuerySet and modify it using the standard
> exclude(), etc.
There are two ways to go from raw SQL to Django model objects. One
results in
On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote:
>
> Well I see the search box, and when I enter the id of a known A and hit
> the go
> button The page that returns has
>
> "23 results (6380 total)" beside the go button and in the body of the page
> I see
>
> 23 as
>
>
> however there's no other
On 12/3/07, Adrian R. <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I have a few models in my Django-App which are accessing MySQL-views.
> They return the correct result but the performance is really bad when
> I try to filter the results. I tried to speed up the view by query
> optimization but tha
Karen Tracey wrote:
> On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote:
>>
>> I have a simple model with a foreign key relation
>>
>> class A(models.Model):
>> id = models.CharField('ABCDEFG', .)
>
>
> Do you really have an explicit field named 'id'? Do you also include
> primary_ke
On 12/3/07, Robin Becker <[EMAIL PROTECTED]> wrote:
>
>
> I have a simple model with a foreign key relation
>
> class A(models.Model):
> id = models.CharField('ABCDEFG', .)
Do you really have an explicit field named 'id'? Do you also include
primary_key=True over in that '' part?
On 12/3/07, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
>
> I'm trying to get a big project up and running again on my local
> machine. I updated to the latest trunk.
>
> I'm getting this error before reaching my view function and after
> waiting about 30 seconds while both mozill
Hi,
I'm trying to get a big project up and running again on my local
machine. I updated to the latest trunk.
I'm getting this error before reaching my view function and after
waiting about 30 seconds while both mozilla and django just sit and do
nothing, not even waste CPU:
http://dpaste.co
I have a simple model with a foreign key relation
class A(models.Model):
id = models.CharField('ABCDEFG', .)
class B(models.Model):
def __str__(self):
return self.name
class Admin:
list_display = ('name',)
list_display_links = ('name',)
o
I'm a bit confused as to what you're actually trying to accomplish
here. Will there always only be three fields (a, b and c), or will
they actually be dynamic (and you could have many of them). If three
is just an arbitrary number, I think you're looking at creating a new
Model, containing "new" a
Hello,
I have a few models in my Django-App which are accessing MySQL-views.
They return the correct result but the performance is really bad when
I try to filter the results. I tried to speed up the view by query
optimization but that's not good enough by half.
When I execute the query to get al
Hi all,
I have two models, such that, one holds a record, and the other holds
reviews on that record, if any.
The (simplified) models look like this:
class Record(models.Model):
a = models.CharField(max_length=10)
b = models.DateField()
c = models.IntegerField()
class Review(models
On 12/3/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> On 03-Dec-07, at 5:16 PM, Aljosa Mohorovic wrote:
>
> > if i understood correctly django book is finished, api is almost
> > stable and 1.0 release could happen soon?
> > please comment
>
> 1.0 may never come ;-) check the recent thread o
Memcached.py (the client library) will mark a server as dead, and then
continue to use the remaining servers. The tuple error seems to be in
how the error is passed to mark_dead: the client code is inconsistent
about what part of the failure exception it uses.
Not pooling your cache won't help h
On 03-Dec-07, at 5:16 PM, Aljosa Mohorovic wrote:
> if i understood correctly django book is finished, api is almost
> stable and 1.0 release could happen soon?
> please comment
1.0 may never come ;-) check the recent thread on the developers list
--
regards
kg
http://lawgon.livejournal.com
if i understood correctly django book is finished, api is almost
stable and 1.0 release could happen soon?
please comment
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Some trouble using ajax in with forms.
To make things simple a dumb down version
I got a two fields :
class MyForm(forms.Form):
room =
forms.ModelChoiceField(queryset=Product.objects.filter(type=1))
attending = forms.ChoiceField(required=False, choices=(('',
'-'),))
However eac
On 03-Dec-07, at 3:31 PM, Darryl Ross wrote:
>> I don't think you can do django with only ftp access
>
> Sure you can, if django is installed into the server by the hosting
> company. I'm in the process of getting a django hosting company in
> Australia going and it's not that hard to run a djan
Kenneth Gonsalves wrote:
>
> On 03-Dec-07, at 10:38 AM, dave's not here wrote:
>> Thanks for the quick reply. The problem is I don't currently have
>> shell access to the server, only ftp. Is there anything I can put into
>> one of the .py or template files?
Create a view that imports django and
Hi,
just a short notice to all who live in or around Munich and are interested
in a meeting: On Thursday, 13th of December 2007 starting at 18:30 will be
a meeting of Python users from around Munich.
Of course, it is free for anyone to discuss Django as well, some of the
people attending use Dja
Malcolm Tredinnick napisaĆ(a):
>> I have an interesting idea that I am not quite sure how to pursue.
>> I'm wondering if any of you have figured this out already.
>>
>> What I would like to do is set the cache expiration for a particular
>> object in the cache to be very high, and then delete the
40 matches
Mail list logo