Thanks for the reply. :)
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL
I am new to Django, and forgive me if this is a question that has
already been answered, but I can not seem to find the "official"
answer. I will explain what I am trying to figure out with an example.
I am building a wiki, I have a number of views which show a wiki page,
edit a wiki page, save
On 9/18/06, Jeff Rodenburg <[EMAIL PROTECTED]> wrote:
> I just read about this new book on Django and am looking forward to checking
> it out. Amazon shows its availability at October 30th.
> Does anyone know if it might be available earlier than that?
>
Try searching the list, this question has
I've read in several places about the advisability of serving static
content via Apache (or whatever) rather than via django.
Is it possible to somehow share an authentication context with Apache
(via session coookie??)?
We have a bunch of things like PDF reports, etc that can only be
downloaded
> Try searching the list, this question has been asked and answered to
> varying degrees a few times before. If memory serves me right, the
> authors seem to think that October is overly optimistic and it will
> more likely be latter.
someone should set up a FAQ page for this 8)
--
Bryan L. Fo
On 9/18/06, shaunc <[EMAIL PROTECTED]> wrote:
> We have a bunch of things like PDF reports, etc that can only be
> downloaded by properly authenticated users.
http://www.djangoproject.com/documentation/apache_auth/
--
"May the forces of evil become confused on the way to your house."
-- Geor
Thanks guys.
Yes, it may be an encoding issue.
The HTML form counts 10 chars, no matter what encoding, but on the
python side it can exceed the byte count.
Ivan, I think it's not a problem on the DB side, I'm using MySQL and
AFAIK it just crops the string without any warning.
Best regards.
Enr
Waylan Limberg wrote:
> First, you only point to the app, not the models in your app. Second,
> you need to start from a place that is on your pythonpath. If liger is
> on your pythonpath, then just 'liger' will work, However, it's more
> likely that is not the case, so you'll need to do something
Enrico wrote:
> Ivan, I think it's not a problem on the DB side, I'm using MySQL and
> AFAIK it just crops the string without any warning.
Then may be I am mistaken... What I'm talking about is that maxlength is
validated properly on manipulator level (method TextField.isValidLength
in django.f
I must be missing something simple. Just using the admin
interface, adding a user, and clicking Save elicits this:
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/django/core/servers/basehttp.py",
line 272, in run
self.result = application(self.environ, sel
At least you got to admin...;-)I got stuck at logging in...says I'm not set to accept cookies..but I am.If you happened to hit this and know the answer... I'll buy you a beer for it!Jimnara <[EMAIL PROTECTED]> wrote: I must be missing something simple. Just using the admininterface, adding a user,
Hi fellow Django users,
I'm coming up on a phase of a project where I need to do a lot of work
with Forms and Manipulators. I've got some historical bits of old CMS
ideas that I'm trying to work with. I wanted to ask Django-users if
this approach seems reasonable, or if another approach woul
Hey fellow Djangoers-
My site is currently being attacked by an awful spam bot and I'm
quickly trying to implement Akismet spam filtering. I'm using Django
0.95 and am using the following code for Akismet:
http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment
I followed Ja
I am trying to use the calender code I found in
http://www.dynarch.com/projects/calendar/
in my form template, with a generic view. I have copied the script
files to many places in my project and tried different configurations
in settings, but I always get the same error, Calendar is not defined.
On Mon, 2006-09-18 at 18:32 -0300, Luis Gustavo wrote:
> I am trying to use the calender code I found in
> http://www.dynarch.com/projects/calendar/
> in my form template, with a generic view. I have copied the script
> files to many places in my project and tried different configurations
> in se
This will probably show my incredible lack of understanding regarding
web
servers vs. django once more, but...
Is there a reasonably simple and transparent (to the user) way of
counting downloads? Sure, I could create a download button for each
item, but that would be an extra step for the user.
[EMAIL PROTECTED] wrote:
> File "/usr/lib/python2.4/site-packages/django/views/debug.py", line
> 144, in technical_404_response
> t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 template')
>
> TypeError: __init__() got an unexpected keyword argument 'name'
> <---
Anyone? Please? My project is stalled until I learn how to do this
and it's no where in the docs. I'm dead in the water until someone
takes pity on me and explains how to do this.
> Let's say I have a form called add-new-group.html that looks like
> this:
>
> Group Name: __
On Tue, 2006-09-19 at 09:04 +0900, Sean Schertell wrote:
> Anyone? Please? My project is stalled until I learn how to do this
> and it's no where in the docs. I'm dead in the water until someone
> takes pity on me and explains how to do this.
It's only been 12 hours since your first post; som
I get a message saying my browser isn't configured to accept
cookies..but it is.
--~--~-~--~~~---~--~~
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.c
Yes..it is..but thanks.
It's Firefox 1.5 and cookies are set to be allowed.
Jim
--~--~-~--~~~---~--~~
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.
On 9/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Waylan Limberg wrote:
> > First, you only point to the app, not the models in your app. Second,
> > you need to start from a place that is on your pythonpath. If liger is
> > on your pythonpath, then just 'liger' will work, However, it's
Hello,
I am using Django 0.95 and SimpleTAL for templating. SimpleTAL expects all the
strings, it seems, to be unicode (something sane from my point of view). It
seems that some data from PostgreSQL extracted using Django classes is not in
Unicode and triggers this error:
Request Method:
GET
i'm using django with apache2. if i disable php4 module of
apache2(using a2dismod php4), my django application runs well. if i
enable php4 module and log a user in, my django application gives the
following error message:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback
On Tue, 2006-09-19 at 02:27 +, Pupeno wrote:
> Hello,
> I am using Django 0.95 and SimpleTAL for templating. SimpleTAL expects all
> the
> strings, it seems, to be unicode (something sane from my point of view). It
> seems that some data from PostgreSQL extracted using Django classes is not
On 9/18/06, zhongke chen <[EMAIL PROTECTED]> wrote:
>
> i'm using django with apache2. if i disable php4 module of
> apache2(using a2dismod php4), my django application runs well. if i
> enable php4 module and log a user in, my django application gives the
> following error message:
>
> Mod_python
Not the same problem.
if i enable php4, and i do not log in under django, my django app
works too. if i log in, error occurs.
On 9/19/06, Bryan Murdock <[EMAIL PROTECTED]> wrote:
>
> On 9/18/06, zhongke chen <[EMAIL PROTECTED]> wrote:
> >
> > i'm using django with apache2. if i disable php4 modu
On Tue, 2006-09-19 at 12:52 +0800, zhongke chen wrote:
> Not the same problem.
>
> if i enable php4, and i do not log in under django, my django app
> works too. if i log in, error occurs.
Could it possibly be a repeat of this problem:
http://groups.google.com/group/django-users/browse_frm/thre
Thanks! i solve this by removing libmhash package. but it's only a
workaround solution. i expect to see a perfect one.
On 9/19/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2006-09-19 at 12:52 +0800, zhongke chen wrote:
> > Not the same problem.
> >
> > if i enable php4, and i do
hi,
Am Dienstag, 19. September 2006 01:41 schrieb frank:
> This will probably show my incredible lack of understanding regarding
> web
> servers vs. django once more, but...
>
> Is there a reasonably simple and transparent (to the user) way of
> counting downloads? Sure, I could create a downloa
hi,
Am Dienstag, 19. September 2006 07:28 schrieb zhongke chen:
> Thanks! i solve this by removing libmhash package. but it's only a
> workaround solution. i expect to see a perfect one.
unfortunately, the problem seems to be somewhere within modpython which
somehow doesn't use the md5-module t
frank wrote:
> Sure, I could create a download button for each
> item, but that would be an extra step for the user. 'It would be nice'
> if that weren't necessary.
> BTW the downloads are static files, served by Apache. That extra
> button
> is looking more and more likely...
At some point
On Tue, 2006-09-19 at 06:04 +, spacedman wrote:
>
> frank wrote:
> > Sure, I could create a download button for each
> > item, but that would be an extra step for the user. 'It would be nice'
> > if that weren't necessary.
> > BTW the downloads are static files, served by Apache. That extr
Well - yes but most MVC type applications have a dispatcher like
architecture where the request is caught by a single resource which
then locates the controller to handle the request.
Anyways, I think I got most of it to work (using my sparse python
knowledge :-) )
but each time I tried to read fr
Wonderful, James --
I had overlooked the existence of this. Small feature enhancement might
be to mention it in doc in other places where static content is being
talked about.
- Shaun
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
i use postgres database and i installed psycopg2 engine, but it seems
the django use psycopg as the default engine , how to change psycopg2
as the engine?
thx.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
bmeredyk wrote:
> I'm just starting out with django and need some help with how to
> perform custom queries. The query I want to do is basically this:
>
> SELECT num_volunteers, num_boxes, (num_boxes * 216) as meals,
> (num_boxes/num_volunteers) as box_per_person FROM shifts WHERE site =
> %s AND
> Forbidden
> "You don't have permission to access / on this server."
for me problem was in
RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L]
i changed to
RewriteRule ^(.*)$ mysite.fcgi/$1 [L]
and it worked
--~--~-~--~~~---~--~~
You received this message because you ar
I am a happy but rather newbie user of django but one thing seems to
rattle my chain :-). I've created a base template which includes
several blocks which are overridden/inserted in the specific pages, but
if the template is to use any context parameters I have to set these in
ALL controller metho
I think you could do that (or something similar) with using template-
tags.
we´re having a sidebar on one of our django-sites where the user is
able to select the content (and position) she wants. since we don´t
know what´s going to be loaded when calling the view, we have to use
template-t
thanks malcolm, jay.
your suggestions are very helpful.
patrick
Am 17.09.2006 um 19:15 schrieb Jay Parlar:
>
> On 9/17/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>> Is your input guaranteed to be well-formed XHTML? If so, ElementTree
>> (http://effbot.org/zone/element-index.htm ) will be
Malcolm Tredinnick wrote:
> If I had to guess, I would say this has to do with encoding. When the
> form is submitted back to the web server, the content will be encoded
> as, say, UTF-8. The length of your input string as bytes is longer than
> 10 (since each of those characters is 2 bytes in UT
hi,
Is there a way to create custom QuerySet returning some "COUNT(*)" on
some "GROUP BY" group?
I really need QuerySet since I need this for
django.views.generic.list_detail.object_list.
thanks,
skink
--~--~-~--~~~---~--~~
You received this message because you
On Mon, 2006-09-18 at 02:58 -0700, skink wrote:
> hi,
>
> Is there a way to create custom QuerySet returning some "COUNT(*)" on
> some "GROUP BY" group?
Not very easily at the moment, no. You would need to look at creating a
subclass of QuerySet and overriding the _get_sql_clause() method to add
I don't know much about error handling in django. I tried raising a 404
in one of my views and disable the debug mode in the settings, to see
how the default 404 page looks like, but instead I got the following
traceback:
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-package
I'd be grateful for some advice on efficiently combining lighttpd,
fastcgi and django. I have this working after working through the
suggestions on the django site, but am unsure whether the result is
actually very efficient, nor how to optimise.
All three (and mysql) are running on the same box (
Malcolm Tredinnick wrote:
> Not very easily at the moment, no. You would need to look at creating a
> subclass of QuerySet and overriding the _get_sql_clause() method to add
> in a GROUP BY clause. So it's not impossible, just inelegant (a lot of
> code duplication involved).
>
> You can't even f
Let's say I have a form called add-new-group.html that looks like this:
Group Name: __
Member 1 --> Name:___ Age:
Member 2 --> Name:___ Age:
Member 3 --> Name:___ Age:
So when the form is saved, it needs to save the new group to the
Sadly not so easy solution... :(
The patch breaks *blank* ForeignKey fields used in unique_together (see
coments on #2019).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
Hi Jorge,
I tried what you suggested (replace my meta http-equiv by your version)
and it does no good )c:
I also checked my settings.py and there is no DEFAULT_CHARSET nor
DEFAULT_CONTENT_TYPE, so they are defaulted to uft-8 and text/html.
Thanks for the suggestion, though.
Jorge Gajon wrote:
hi,
Lets say i want to have base template with some header with site
navigation links.
Because this base tamplate is inherited by any other templates
(associated with diffrent URLs within URL tree), i need to use in it
direct (not relative) URLs. (e.g. /apps/app1/url1, /apps/app1/url2)
It has so
But that strikes me as a bad design. Normally in MVC
apps you have your controller to fetch all data before forwarded
to the view. By doing it the way I (tried to) explain you are
able to use your portlet in whatever context and by
using template inheritance you can make all portlet appear
the bas
you´re right.
I`m happy if it works the way you explained. unfortunately, I don´t
think it does.
similar discussion: http://groups.google.com/group/django-users/
browse_frm/thread/f6aa4c6108fd557e/
patrick
Am 18.09.2006 um 15:56 schrieb [EMAIL PROTECTED]:
>
> But that strikes me as a bad de
is it possible to define a custom validator in a model? if yes, how?
so far, I´ve used custom validators only with custom manipulators and
that works fine.
thanks,
patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
On 9/18/06, patrickk <[EMAIL PROTECTED]> wrote:
> is it possible to define a custom validator in a model? if yes, how?
> so far, I´ve used custom validators only with custom manipulators and
> that works fine.
Any callable that could be used as a validator in a manipulator can
also be passed in
On 9/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> But that strikes me as a bad design. Normally in MVC
> apps you have your controller to fetch all data before forwarded
> to the view.
Keep in mind that Django is not strictly MVC -- the closest thing we
have to a "controller" is the URL
sorry, but I still don´t get it:
why is this not working?
content = models.TextField(_('content'), validator_list=[self.goodHTML])
def goodHTML(self, field_data, all_data):
...
thanks,
patrick
Am 18.09.2006 um 16:31 schrieb James Bennett:
>
> On 9/18/06, patrickk <[EMAIL PROTECTED]>
On 9/18/06, patrickk <[EMAIL PROTECTED]> wrote:
> def goodHTML(self, field_data, all_data):
Where is this defined? Is it inside the model, or somewhere else in
the file? Does this cause an error? If so, can you paste the traceback
somewhere?
--
"May the forces of evil become confused on the way
File
"/var/www/vhosts/mydomain.at/django_src/django/contrib/flatpages/models.py",
line 10, in FlatPage
content = models.TextField(_('content'),
validator_list=[self.eatMe])
NameError: name 'self' is not defined
it´s defined inside the model.
--~--~-~--~~~---~-
> Query sets are not executed on the database until you iterate, or
> otherwise try to extract data from them.
>
> o = Recipe.objects
> o2 = o.filter(xx)
> o3 = o2.filter(yy)
> o4 = o3.filter(zz)
>
> print o4
>
> will result in just 1 query getting issued to the database - the final
> query with t
Tom Smith wrote:
> Thanks... I'm not sure but I don't think this is working
>
> I have...
>
> p = Product.objects
> if len(notsitelist)>=1:
> print "exluding sites: ", notsitelist
> p.exclude(fk_site__in=notsitelist)
>
> if len(cats)>=1:
>
On 9/18/06, Tom Smith <[EMAIL PROTECTED]> wrote:
> I have...
>
> p = Product.objects
> if len(notsitelist)>=1:
> print "exluding sites: ", notsitelist
> p.exclude(fk_site__in=notsitelist)
p.exclude() returns a new QuerySet with the filtering, so yo
On 9/18/06, patrickk <[EMAIL PROTECTED]> wrote:
> NameError: name 'self' is not defined
>
> it´s defined inside the model.
Ah. I think this is a case of Django wanting to resolve that at the
time the class is created, even though 'self' can't be resolved until
you're dealing with an instance of t
On 18 Sep 2006, at 16:27, Michael Radziej wrote: Is there way to do p.get_query(.)p.show_sql() I really don't get what this is supposed to mean, it just looks like seriously broken syntax. Not really.. having built and manipulated (with exludes, filters, order etc.) I'd quite like to peep at the
On 18 Sep 2006, at 16:26, James Bennett wrote:p.exclude() returns a new QuerySet with the filtering, so you need to grab the return value, like this: if len(notsitelist)>=1: print "excluding sites: ", notsitelist p = p.exclude(fk_site__in=notsitelist) That was it... silly me, just missed i
On 9/18/06, Tom Smith <[EMAIL PROTECTED]> wrote:
> Not really.. having built and manipulated (with exludes, filters, order
> etc.) I'd quite like to peep at the SQL before it gets executed to see if it
> makes sense
I think it probably is possible by screwing around with internal
variables of
Hello all,
One of the things I've been looking forward for and which seems missing to me
(or perhaps I overlooked it) is a set of straightforward printable
documentation - the tutorials. A little change to add a printable version to
the online manuals and tutorials in the frontpage might not t
I have a model whose identity is defined by two fields: a foreign key
field and a boolean field. I'm trying to use a ChangeManipulator for it
but am stuck because ChangeManipulator assumes there is a single
primary key field.
Has anyone run into this? Can someone suggest a workaround?
Thanks
-Da
DavidA wrote:
> I have a model whose identity is defined by two fields: a foreign key
> field and a boolean field. I'm trying to use a ChangeManipulator for it
> but am stuck because ChangeManipulator assumes there is a single
> primary key field.
>
> Has anyone run into this? Can someone suggest
I think all the documentation pages have a "print" stylesheet. So just
print it from your browser, and you should get it printing using the
correct stylesheet.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On 9/18/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> I think all the documentation pages have a "print" stylesheet. So just
> print it from your browser, and you should get it printing using the
> correct stylesheet.
The docs are also included in the Django download, in ReSt format,
which can be c
I just read about this new book on Django and am looking forward to checking it out. Amazon shows its availability at October 30th.Does anyone know if it might be available earlier than that?
http://www.amazon.com/Pro-Django-Development-Done-Right/dp/1590597257/sr=8-1/qid=1158597493/ref=pd_bbs_1/1
On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> i've got an app named liger with a settings.py file which in
> INSTALLED_APPS has:
>
> 'liger.profiles'... along with other apps
First, you only point to the app, not the models in your app. Second,
you need to start from a
On 9/18/06, Phil <[EMAIL PROTECTED]> wrote:
> I tried what you suggested (replace my meta http-equiv by your version)
> and it does no good )c:
Sorry to hear that Phil, I don't know what else to suggest :( It is
really weird that it works when you duplicate the content-type line
though.
--~--~-
Hi Dan,
I don't have a place where I can test this right now. Do you have a
site that illustrates what you're trying to do?
Thanks
Mark Underwood
[frameworks : django : navigation]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
75 matches
Mail list logo