my bad :). didn't really get his gist. just switched to wsgi myself.
On Nov 25, 11:00 pm, Graham Dumpleton
wrote:
> On Nov 26, 5:04 pm, Some Guy wrote:
>
> > WSGIScriptAlias /test
>
> > should be
>
> > WSGIScriptAlias /
>
> > not really sure what you
well, I've looked into it more, and it seems that the max_num argument
to the modelformset_factory constructor is the best way to go. If it
works i'll post it here for those who might find this thread from
google.
On Nov 25, 8:46 pm, Some Guy wrote:
> I'm having an issu
WSGIScriptAlias /test
should be
WSGIScriptAlias /
not really sure what you mean by suburl...
On Nov 25, 9:47 pm, Amit Sethi wrote:
> Hi , can somebody tell me how i should configure mod_wsgi on a suburl I want
> to set a django project on
>
> domain.com/test/
>
> so my urls.py at present look
I'm having an issue trying to create pagination with a modelformset.
so far I have...
SubFormSet = modelformset_factory(Submission, can_delete=True,
extra=0, form=PricingForm)
...
objs = Submission.objects.all()
formset = SubFormSet(queryset=objs) <-overriding the basic
queryset
group
sql if you like. But eventually you're
> likely to want some new feature, so fixing your column seems to me
> the right thing.
>
> Bill
>
>
>
> On Mon, Nov 23, 2009 at 1:17 PM, Some Guy wrote:
> > Hi,
> > I was switching from sqlite3 to postgres, the data wa
Hi,
I was switching from sqlite3 to postgres, the data was imported ok.
But now certain view queries are failing. i.e.
counts[i] = Submission.objects.all().filter(status__exact=i).count()
fails with ...
File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py",
line 2369, in execute_
Hi,
Is there any functionality, or possibility, to generate many fields in
a model file that are all identical and follow an easy (repetitive)
naming convention?
i.e.
locations = (loc1, loc2, lo3)
places = (place2, place2)
for l in locations:
for p in places:
l + p + _has_been_checked =
Hi group,
I was wondering about how to structure my import statements and it's
impact, if any, on the memory footprint of mod_python.
I'm importing some modules that i'm sure are huge in memory for
certain views. My question is: does it make any difference whether I
put the import statement at t
Hi,
I have a project that's working fine (apache2/mod_python)
I wrote a new app to add to it, which works fine with dev server.
In my root urls.py I added the urls.py from the new app with an
include ( (r'^inventory/', include('stuff.retail.urls') ),
('retail' being the new app) I also added stuf
If you're not using the development server (python manage.py
runserver), make sure that you have set a template_dir in settings.py
and make sure the webserver can read it...
On Jul 26, 3:15 pm, LuXo Jarufe wrote:
> Hi, I want to use the admin but I have this problem, I was following
> the tu
Not sure about my answer but
I think it matters more that the webserver you are using can take
advantage of multicore (i.e. mod_python instances running in their own
thread.)
On Jul 23, 10:26 am, ihome wrote:
> Has django been designed to take advantage of multicore machine? Is
> there a way
ption either, try cherrypy wsgi server). But
> if you have enough resources and the only real reason for using sqlite
> is not wanting to go through db server installation you might want to
> reconsider.
>
>
>
> On Thu, Jul 23, 2009 at 2:02 AM, Some Guy wrote:
>
> > Having fi
Having finished a small app, i'm wondering if it's ok to use sqlite3
in a deployment with mod_python and apache.
I've read that sqlite is not meant for multi-user access where the
actual db file is shared, but with several mod_pythons running will it
be an issue if they are all having access to i
Just a guess, but maybe...
>>> p = mymodels.Person()
>>> p.name="John Smith"
>>> f = mymodels.Friend()
>>> f.name = "John Q. Smith"
add this here so it gets an id??
f.save()
>>> p.friend = f
>>> p.save()
On Jul 22, 12:15 pm, Dudley Fox wrote:
> I have a simple test model defined:
>
> class Fr
You want this...
http://blog.dougalmatthews.com/2008/10/filter-the-django-modeladmin-set/
Be aware though, of a bug* in manage.py that, if you dumpdata with
only your app specified, you will get entries for the proxy model as
well.
The proxy model entries will screw up your next loaddata, so I
r
Nevermind, I should have checked trac first instead of searching this
group
found http://code.djangoproject.com/ticket/11429
and
http://code.djangoproject.com/ticket/11428
I guess I'll have to be explicit with which models to dump
On Jul 21, 1:23 pm, Some Guy wrote:
> also...
&g
also...
Django version 1.1 beta 1 SVN-11082
On Jul 21, 1:22 pm, Some Guy wrote:
> I have a model with a proxy subclass. dumpdata saves an entry for
> each of the superclass' and an additional entry for the proxy class
> (with no fields) as well.
>
> loaddata then chokes
I have a model with a proxy subclass. dumpdata saves an entry for
each of the superclass' and an additional entry for the proxy class
(with no fields) as well.
loaddata then chokes on the superclasses constraints. Or is it
supposed to do this?
i.e. (psuedocode..)
assume app = 'bar'
class a(
Thanks,
I am using 1.1 beta and proxy looks like it was meant to do what I
want, without a kludge.
will give it a shoot
On Jul 19, 3:36 pm, Alex Gaynor wrote:
> On Sun, Jul 19, 2009 at 5:07 PM, Some Guy wrote:
>
> > Thanks for the help :-)
>
> > overriding queryset in mode
he model admin's list
> page, then yes, you can override the default queryset method defined
> in ModelAdmin just as the link describes.
>
> jeff
>
> On Jul 19, 12:40 pm, Some Guy wrote:
>
>
>
> > hrmm, I found this
> > too..http://blog.dougalmatthews.co
appreciated :-)
On Jul 19, 12:17 pm, Some Guy wrote:
> I was wondering if it's possible to have an admin page always show a
> filtered (or other non-default) queryset?
>
> i.e. I would like the default admin page to show a queryset without
> any rows that have a particular boolea
In an attempt to answer my own question...
Would a custom manager be able to do this? I've never done one, but
could one override the all() method to filter the results that the
admin receives?
On Jul 19, 12:17 pm, Some Guy wrote:
> I was wondering if it's possible to have an admi
I was wondering if it's possible to have an admin page always show a
filtered (or other non-default) queryset?
i.e. I would like the default admin page to show a queryset without
any rows that have a particular boolean field set to false.
I've looked in the admin views.py, but haven't found anyt
:
> On Fri, Jul 17, 2009 at 1:07 AM, Some Guy wrote:
>
> > Found out what was causing this error behavior.
>
> > this line was in my urls.py.. commenting it out fixed everything. I
> > just can't see what's wrong with it :-)
>
> > # (r
Found out what was causing this error behavior.
this line was in my urls.py.. commenting it out fixed everything. I
just can't see what's wrong with it :-)
#(r'^diamond/(?P\d+)/$', 'object_detail', info_dict,
{'template': 'diamond_detail.html
Hi Group,
I found a bug that was causing my issue (ref:
http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81)
In my urls.py I have a line ...
(r'^diamond/(?P\d+)/$', 'object_detail', info_dict,
{'template': 'diamond_detail.html'}),
If I comment it out it, everyt
I should add my django versions too
dev: 1.1 beta 1 SVN-11082
Deploy: 1.1 beta 1
On Jul 15, 12:12 pm, Some Guy wrote:
> Hi,
> I seem to have a problem where various contrib elements are throwing a
> template error "dict objects are unhashable"
> I'm seeing it in ad
Hi,
I seem to have a problem where various contrib elements are throwing a
template error "dict objects are unhashable"
I'm seeing it in admin, comments, etc. Both on my dev setup and
deployed.
The line of code always seems to be File "/Library/Python/2.5/site-
packages/django/utils/datastructur
that, but I need the ability to
edit users :-)
Right now I'm using 1.1 beta 1 django, apache2, and sqlite3
I saw something similar in trac but it was closed with "works for me"
On Jul 14, 12:41 pm, Alex Gaynor wrote:
> On Tue, Jul 14, 2009 at 2:28 PM, Some Guy wrote:
>
Hi Group,
I'm using svn version of django and SQLite3 on linux. I set up a basic
admin user and when I try to access the edit page I get the
"TemplateSyntaxError at /admin/auth/user/1/
Caught an exception while rendering: dict objects are unhashable"
Is this a bug? how far back should I downgrade
thanks, indeed you are right.
Now to find out how bad I can break things by moving that behavior to
the other template.
On Jul 9, 5:34 pm, Karen Tracey wrote:
> On Thu, Jul 9, 2009 at 6:22 PM, Some Guy wrote:
>
> > I've found the following in the template ...
>
> >
I've found the following in the template ...
{% for result in results %}
{% for item in result %}
{{ item }}{% endfor %}
{% endfor %}
I would like to apply an additional template tag to {{item}}, i.e.
{{item|default_if_none:"" }}
I have discovered that in this template {{ item }} is already wra
Of course it should be default_if_none template tag, but it mangled my
link
On Jul 3, 3:43 pm, Some Guy wrote:
> Hi,
> I wonder if anyone has ideas about the best way to do this.
>
> My field shows up as (None) in the change_list view on admin. I would
> love to have a beha
Hi,
I wonder if anyone has ideas about the best way to do this.
My field shows up as (None) in the change_list view on admin. I would
love to have a behavior similar to default_if_none template tag.
My Ideas
1. making a new template just for this seems difficult.
2.I cou
Wed, 2009-07-01 at 13:01 -0700, Some Guy wrote:
> > Hi Group,
> > I've look all over to find the answer but am now posting out of
> > desperation :)
>
> > I have a dev and prod server (apache2, mod_python)
>
> > on the production server the css and js for t
Hi Group,
I've look all over to find the answer but am now posting out of
desperation :)
I have a dev and prod server (apache2, mod_python)
on the production server the css and js for the admin site does not
work. (except for the login page)
The images show up but no css styles are applied. Als
36 matches
Mail list logo