> Apologies for taking so long to get back to you on this - the silly
> season has been consuming a lot of my time.
Silly season indeed :)
> I'd go one step further than an attribute - I'd provide a method.
I was considering this, but I was thinking about a hacky/internal API
for 1.2 instead of
On 30 Gru 2009, 01:26, Stodge wrote:
> I need to write a custom tag. I have a hierarchy of objects that I
> want to turn into a chaptered document. But I want to be able to build
> and display the document in a template AND generate a PDF or other
> format from a view. Can I write a custom templat
On 30 Gru 2009, 16:41, Nick Arnett wrote:
>
> E.g.: SELECT `common_addresstype`.`id`, `common_addresstype`.`adrtype` FROM
> `common_addresstype` WHERE `common_addresstype`.`id` IN (1,6,8,52,173)
>
> I imagine there's an ORM query that will do the same thing, but I know MySQL
> far better than I
On 31 Gru 2009, 01:56, Sam Walters wrote:
> for s in search_querySet:
> address_info = s.address_set.all() #.select_related(depth=2) -
> yes i can/will put select related here but it really does not help
> that much 20% tops
> #address_info is usually 2-3 rows from an address tabl
On 30 Gru 2009, 20:29, TeenSpirit83
wrote:
> Hi,
> I have a callable in the modeladmin for an object XX.
> Now I want to add a tool button (or something clickable) for filtering
> the changelist displaying only the object having value less than
> 30.
> How would you implement somthing li
In wordpress there is a plugin that caches in a file (gzipped) a page
and returns it instead of recalculate all from database, directly from
apache.
A garbage collector removes cached pages older than cache life.
Is there anything similar in django, that returns a page without using
the django mor
I am using tutorial on django official documentation. But when I point
to http://127.0.0.1:8000/admin/ , I get this error:
TemplateDoesNotExist at /admin/
admin/login.html
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/
Exception Type: TemplateDoesNotExist
Excep
On Sun, Jan 3, 2010 at 10:52 AM, nameless wrote:
> I am using tutorial on django official documentation. But when I point
> to http://127.0.0.1:8000/admin/ , I get this error:
>
>
> TemplateDoesNotExist at /admin/
>
> admin/login.html
>
> Request Method: GET
> Request URL: http://127.0.
Hi there,
First of all let me say I'm just starting here but need some help with
a rather basic question.
I want to make an app that holds baseball statistics for players of
each game and over several seasons. Now I'm new to this db
relationship thing and would like to hear your opinion.
My mode
On Sun, Jan 3, 2010 at 4:06 PM, CB wrote:
>> The
>> default implementation would essentially be:
>>
>> def db_from_related_object(self, instance):
>> return instance._state.db
>
> I'm not familiar with ._state and not sure if you're referencing
> existing attributes on the manager, bu
I have installed python and then django with setup.py install.
I have only one installation. What do I do ?
please help :-\
---
On Jan 3, 3:02 pm, Ramiro Morales wrote:
> On Sun, Jan 3, 2010 at 10:52 AM, nameless wrote:
> > I am using tutorial on django official documentation. But wh
Anyone? Limited testing will do, I just want to make sure I haven't
overlooked something.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send em
you are using wish version of python?
2010/1/3 nameless
> I have installed python and then django with setup.py install.
> I have only one installation. What do I do ?
>
> please help :-\
>
>
>
>
> ---
> On Jan 3, 3:02 pm, Ramiro Morales wrote:
> > On Sun, Jan 3, 2010 at 10:52 AM, namel
On Jan 3, 1:52 pm, nameless wrote:
> I am using tutorial on django official documentation. But when I point
> tohttp://127.0.0.1:8000/admin/, I get this error:
>
> TemplateDoesNotExist at /admin/
>
> admin/login.html
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/
>
hi
If you want to compare the value you have to use ifequal or
ifnotequal tag in template language. if you use "if"
this will check only weather the variable is empty or not
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On Jan 3, 2:36 pm, Tijmen wrote:
> Hi there,
>
> First of all let me say I'm just starting here but need some help with
> a rather basic question.
>
> I want to make an app that holds baseball statistics for players of
> each game and over several seasons. Now I'm new to this db
> relationship thi
Thanks alot! This was really helpful, and yes you're right, the g
field is redundant.
Thanks again!
On Jan 3, 6:36 pm, greatlemer wrote:
> On Jan 3, 2:36 pm, Tijmen wrote:
>
>
>
> > Hi there,
>
> > First of all let me say I'm just starting here but need some help with
> > a rather basic questio
Thank you for the responses so far. But I still haven't identified
the solution to this seemingly simple issue.
The behavior also happens when I use the URL tag in a template like
this "{% url case_url case.id %}" the result I get is "/support/case/
1/ ".
So the inconsistency is that when I mak
Hi group,
I've been using the django project docs about the ModelForm but still
I've got problems using the ModelMultipleChoiceField for a
ManyToManyField relation. The aim is to relate Images to blog Posts.
So images can get attached to multiple posts and posts can be attached
to multiple images.
On Jan 3, 7:54 pm, GoSantoni wrote:
> Hi group,
>
> I've been using the django project docs about the ModelForm but still
> I've got problems using the ModelMultipleChoiceField for a
> ManyToManyField relation. The aim is to relate Images to blog Posts.
> So images can get attached to multiple pos
Hi!
I'm deploying a django project on my server. I'm using next apache
configuration:
ServerAdmin vruiz...@gmail.com
DocumentRoot /home/user/project
SetHandler python-program
PythonHandler django.core.handlers.modpython
S
Hello Django Users,
I'm looking to avoid implementing a plug-in system that will need
major re-writing. I need a separate membership class outside of User
and felt It would be a good chance to write me first plug-in system.
This isn't Django specific but I couldn't find a better list, if you
know
On Sun, Jan 3, 2010 at 4:44 PM, davathar wrote:
> Thank you for the responses so far. But I still haven't identified
> the solution to this seemingly simple issue.
>
> The behavior also happens when I use the URL tag in a template like
> this "{% url case_url case.id %}" the result I get is "/su
I want to display all the services for a particular business using the
generic view "object_detail". What I would like to do is pass the
value of an id from the url to the queryset (into object_id) in
urls.py - or a better way to do this using the "object_detail" generic
view.
models.py:
class Bus
This one has bitten me too. It also manifests when using the
'reverse' function like so:
return HttpResponseRedirect(reverse('admin_url'))
Instead of redirecting to /studio/admin/ it redirects to /admin/
So, while /studio/admin/ resolves well, reversing the path doesn't
yield the reverse.
I'm
Ramiro, thanks for the links. That other thread does seem to describe
the same problem and results in it being identified as a bug in the
core urlresolvers. Unfortunately the work around of "RewriteRule ^/
studio$ /studio/ [R] " doesn't work for me for some reason. Maybe I'm
misapplying it.
Eit
Hi!
I am having a problem to configure mod_python for my Django project. I
even created a new project and the problem remains. Below is the
relevant part of my http.conf and the error message I get. From what I
understand mod_python is not finding my dummy.settings. Any help will
be greatly apprec
On Sun, Jan 3, 2010 at 7:33 PM, Sergio Lobo wrote:
> Hi!
>
> I am having a problem to configure mod_python for my Django project. I
> even created a new project and the problem remains. Below is the
> relevant part of my http.conf and the error message I get. From what I
> understand mod_python is
I know I'm missing something really simple really but I keep getting
this error:
SyntaxError: Non-ASCII character '\xc2' in file /home/simon/
djangoprojects/bikerescue/bikeshop/models.py on line 46, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
details. This is the m
On Sun, Jan 3, 2010 at 5:15 PM, davathar wrote:
> Ramiro, thanks for the links. That other thread does seem to describe
> the same problem and results in it being identified as a bug in the
> core urlresolvers. Unfortunately the work around of "RewriteRule ^/
> studio$ /studio/ [R] " doesn't wo
On Sun, Jan 3, 2010 at 6:48 PM, Simon Davies wrote:
> I know I'm missing something really simple really but I keep getting
> this error:
>
> SyntaxError: Non-ASCII character '\xc2' in file /home/simon/
> djangoprojects/bikerescue/bikeshop/models.py on line 46, but no
> encoding declared; see htt
Hello,
I have done several post on my blogs about how to setup django
projects using cherokee and uWSGI :
http://yml-blog.blogspot.com/search/label/uWSGI
The first 2 are the most interesting for you :
* http://yml-blog.blogspot.com/2009/11/how-to-set-up-cherokee-and-uwsgi.html
*
http://yml-bl
I use a custom signal in my Django app in signals.py:
my_project/
my_app/
signals.py
views.py
In views.py, if I do 'from signals import my_custom_signal' and send
the signal, everything is fine.
However, if I do 'from my_app.signals import my_custom_signal' and
send the signal, it never
Hello,
I'm using the `django-tagging`v0.3.0( http://code.google.com/p/django-tagging/
) app for tagging my blog posts (obviously).
Now I wanted to create a view, which takes a tag and returns all
related posts, posts which have the same tag.
My code:
from tagging.views import tagged_object_list
Here's more information I've been able to find. Evidently there's a
problem in some configurations where mod_wsgi either isn't receiving
or isn't passing SCRIPT_NAME.
When I use this test script in the wsgi file I get an empty string as
the value for SCRIPT_NAME. And from what I gather that's wh
I am trying to use the generic view, object_detail on a m2m
relationship. I have multiple businesses that offer multiple services.
I would like to show the services offered by each business. At the
moment, I see all the services - not just the services that a
particular business is offering.
In mo
Hi Tomasz
Yes, i have followed a raw sql approach now im looking at my test data
to see which objects have multiple rows and cleaning that up.
Its a shame that '__in' has limited use under these scenarios:
directories = search_querySet.distinct()
addresses = Address.objects.filter(directory__in=d
On Jan 4, 12:45 pm, davathar wrote:
> Here's more information I've been able to find. Evidently there's a
> problem in some configurations wheremod_wsgieither isn't receiving
> or isn't passing SCRIPT_NAME.
>
> When I use this test script in the wsgi file I get an empty string as
> the value fo
38 matches
Mail list logo