HEllo group can anyone help me in this regard please...
On Mar 4, 10:50 am, stranger <[EMAIL PROTECTED]> wrote:
> hello group,
>
> First of all I would like to thank this community for helping me
> in solve my doubts regarding django. And here I am again with another
> one.
>
> I am cr
I'm not sure I follow, if you mean doing a mass update, that is being
implemented in qs-rf, however I don't think you will be able to
increment.
On Mar 5, 10:07 pm, "Haroldo Stenger" <[EMAIL PROTECTED]>
wrote:
> Thank you for Django, this is great.
> I'd like to implement a feature in my model, n
Thank you for Django, this is great.
I'd like to implement a feature in my model, namely, being able to search a
table based on boolean criteria, and have these criteria saved for later
revision. Also, to be able to increment a score count in the positive search
hits targeted records.
Has this been
On Thu, 2008-03-06 at 09:17 +0530, M.Ganesh wrote:
> Hi,
>
> I've pasted a minimalist code here: http://dpaste.com/hold/38198/
>
> Only the table caption and the table headers show-up in the web page.
> The LunchEnrty_list.count also shows up correctly, but there are no
> table rows.
You are
You don't need the .all after the lunch entry list in the template.
You already did that.
Michael Newman
On Mar 5, 2008, at 10:47 PM, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've pasted a minimalist code here: http://dpaste.com/hold/38198/
>
> Only the table caption and the table he
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
There are only three weeks left to register for the PostgreSQL
Community Conference: East!
The conference is scheduled on March 29th and 30th (a Saturday and
Sunday) at the University of Maryland. Come join us as Bruce Momjian
and Joshua Drake have
Hi,
I've pasted a minimalist code here: http://dpaste.com/hold/38198/
Only the table caption and the table headers show-up in the web page.
The LunchEnrty_list.count also shows up correctly, but there are no
table rows.
What am I missing
TIA
Regards Ganesh
--~--~-~--~~-
> Funny that css and js are considered "static media". In the spirit
> of templating they should be dynamic.
I'm not quite sure what you mean. Typically the contents of CSS,
Javascript, and image files don't change from request to request.
Hence - "static media". In most cases requests for "st
Just to follow up for the archives.
What I was after is a getattr filter for the templates. Searching
djangosnippets.org has found a couple. This one seems to do what I need:
http://www.djangosnippets.org/snippets/411/
Regards
Darryl
Darryl Ross wrote:
Hey All,
I'm using the generic views
On Thu, Mar 6, 2008 at 4:06 AM, gabriel <[EMAIL PROTECTED]> wrote:
>
> What do you think about :
>
> eclipse + plugins( pydev + html/css )
> eric4 + django plugin
> SPE - is there plugin for django
>
> All of that around for-django usage?
>
I only used UliPad, and didn't used others, and I on
On Wed, Mar 5, 2008 at 3:52 PM, Grupo Django <[EMAIL PROTECTED]> wrote:
> These anotations are not 100% real, I've been looking only for a few
> hours documentation about them, I don't know all the features of each
> system yet.
reST has two advantages:
1. Django already supports it for auto-
On Wednesday 05 March 2008 13:37:58 Brian Luft wrote:
> Serving static media really has nothing to do with Django.
Funny that css and js are considered "static media". In the spirit
of templating they should be dynamic. I would characterize them as
junk_patched_on_to_a_crappy_platform. But, O
On Mar 5, 3:06 pm, gabriel <[EMAIL PROTECTED]> wrote:
> What do you think about :
>
> eclipse + plugins( pydev + html/css )
> eric4 + django plugin
> SPE - is there plugin for django
Eclipse + Pydev extension (especially with the non-free remote
debugger) is really handy, though I've found Eclip
On Wed, 2008-03-05 at 14:33 -0800, jfine wrote:
> On Mar 5, 5:58 pm, "alain D." <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >If there a simple apache configuration that is know to make browser
> > cache the javascript message file ('jsi18n') in a standard apache
> > django production setup ?
>
On 5 mar, 23:54, Tim Chase <[EMAIL PROTECTED]> wrote:
> > I'm building a complex Web site using Django of course, and I
> > have to start the documentation this week. I'd like some
> > suggestions about this. I want to make the documentation
> > available through the web and a PDF file.
>
> I'v
Ahh ok. Something like this then?
qset = (Q(tags__title__icontains=query) | Q(title__icontains=query))
results = Blog.objects.filter(qset).extra(LEFT OUTER JOIN tag ON
blog.tag = tag.id)
On Mar 5, 10:49 pm, Pigletto <[EMAIL PROTECTED]> wrote:
> > Basically, the queryset in views.py will ONLY ret
Ahh ok, can I simply specify just the 'left outer join' part of the
query or do I need need to write it myself I.E. SELECT from TABLE
where XXX LEFT OUTER JOIN...
On Mar 5, 10:49 pm, Pigletto <[EMAIL PROTECTED]> wrote:
> > Basically, the queryset in views.py will ONLY return results if that
> > p
> I'm building a complex Web site using Django of course, and I
> have to start the documentation this week. I'd like some
> suggestions about this. I want to make the documentation
> available through the web and a PDF file.
I've found that there are two over-arching categories of
documentati
> Basically, the queryset in views.py will ONLY return results if that
> particular Blog has a Tag related to it. If I haven't specified a tag
> for a particular blog, it will NEVER appear in my results.
>
> Any ideas? Is my query only getting results with both a TITLE and
> TAG_TITLE?
You need '
On Mar 5, 5:58 pm, "alain D." <[EMAIL PROTECTED]> wrote:
> Hi,
>
>If there a simple apache configuration that is know to make browser
> cache the javascript message file ('jsi18n') in a standard apache
> django production setup ?
[snip]
> To my django virtual host and then I get this heade
If you display the docs in html, you can use this to convert it to a
pdf: http://www.htmltopdf.org/
On Mar 5, 3:52 pm, Grupo Django <[EMAIL PROTECTED]> wrote:
> Hello, this is not directly related to django, but I'm pretty sure
> someone could help me here.
> I'm building a complex Web site using
Hello, this is not directly related to django, but I'm pretty sure
someone could help me here.
I'm building a complex Web site using Django of course, and I have to
start the documentation this week.
I'd like some suggestions about this.
I want to make the documentation available through the web
On Wed, Mar 5, 2008 at 3:48 PM, abidjana <[EMAIL PROTECTED]> wrote:
>
> Voici certains des sites Internet les plus intéressants -
>
> http://ordinary-stars.blogspot.com/
>
> http://ilaarijs.blogspot.com/
>
> http://www.foundshit.com/
>
> http://laughingducks.wordpress.com/
>
> http://crummychurchs
I'm sure I'm missing something small/stupid here, but it has me
stumped. I have a legacy database system which I'm writing some django
applets for - up until now it has been purely read-only, but working on
making something which can write as well. I've created a minimal test
case here which rep
> The reason for this is to ensure a consistent API: an unauthenticated
> user is represented by an object with all the same methods and
> attributes as an authenticated user, but set up to fail all
> authentication and permission checks, as if the unauthenticated user
> is simply a user who
On Wed, Mar 5, 2008 at 2:53 PM, Monica Leko <[EMAIL PROTECTED]> wrote:
> Why first condition? Why checking is user authenticated? Doesn't the
> request.user.has_permit("polls.can_vote) already imply that user is
> authenticated? Can anonymous users have permissions? If they can,
> and if
Hey,
Ok I have a queryset that basically searches a model for both the
title, and the title of related tags.
File: views.py
query = request.POST.get('blog', '')
if query:
qset = (
Q(tags__title__icontains=query) |
In Django book, page 189, authors are using following code:
def vote(request):
if request.user.is_authenticated and
request.user.has_permit("polls.can_vote"):
#vote here
else:
return HttpResponse("")
Why first condition? Why checking is user authenticated? Doesn't the
request.user.
Voici certains des sites Internet les plus intéressants -
http://ordinary-stars.blogspot.com/
http://ilaarijs.blogspot.com/
http://www.foundshit.com/
http://laughingducks.wordpress.com/
http://crummychurchsigns.blogspot.com/
http://www.mugshotdujour.com/
http://www.animalsgonesilly.com/
--~
Voici certains des sites Internet les plus intéressants -
http://ordinary-stars.blogspot.com/
http://ilaarijs.blogspot.com/
http://www.foundshit.com/
http://laughingducks.wordpress.com/
http://crummychurchsigns.blogspot.com/
http://www.mugshotdujour.com/
http://www.animalsgonesilly.com/
--~
Voici certains des sites Internet les plus intéressants -
http://ordinary-stars.blogspot.com/
http://ilaarijs.blogspot.com/
http://www.foundshit.com/
http://laughingducks.wordpress.com/
http://crummychurchsigns.blogspot.com/
http://www.mugshotdujour.com/
http://www.animalsgonesilly.com/
--~
Voici certains des sites Internet les plus intéressants -
http://ordinary-stars.blogspot.com/
http://ilaarijs.blogspot.com/
http://www.foundshit.com/
http://laughingducks.wordpress.com/
http://crummychurchsigns.blogspot.com/
http://www.mugshotdujour.com/
http://www.animalsgonesilly.com/
--~
Voici certains des sites Internet les plus intéressants -
http://ordinary-stars.blogspot.com/
http://ilaarijs.blogspot.com/
http://www.foundshit.com/
http://laughingducks.wordpress.com/
http://crummychurchsigns.blogspot.com/
http://www.mugshotdujour.com/
http://www.animalsgonesilly.com/
--~
Thanks for all the help folks!
I solved the issue this morning by running the python script via a
BASH script that source my BASH_PROFILE, which contains exports my
PYTHONPATH.
Here is what the script looked like:
#!/bin/bash
. ~/.bash_profile
/usr/bin/python /home/user/path/to/django/app/upda
Serving static media really has nothing to do with Django. Presumably
your browser is reading the CSS file and making a request back to your
web server for the file. You haven't told us anything about your web
server configuration. What path is being requested to the server for
the image file?
On 3/5/08, Pete Crosier <[EMAIL PROTECTED]> wrote:
>
> I think you're over-estimating Django a little when it comes to
> serving media - check out
> http://www.djangoproject.com/documentation/static_files/
> for details, it requires a little more work.
Woho, it works. Thank you very much. I
What do you think about :
eclipse + plugins( pydev + html/css )
eric4 + django plugin
SPE - is there plugin for django
All of that around for-django usage?
Dnia 05-03-2008, śro o godzinie 22:22 +0800, limodou napisał(a):
> On Wed, Mar 5, 2008 at 10:32 PM, gabriel <[EMAIL PROTECTED]> wrote:
> >
I think you're over-estimating Django a little when it comes to
serving media - check out
http://www.djangoproject.com/documentation/static_files/
for details, it requires a little more work.
On Mar 5, 6:19 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote:
> In settings.py I have:
> MEDIA_ROOT = 'C:/
Actually, just thought of a third:
3. Basically the same as 2, but for the list view rather than the edit
form. In other words, I want to be able to filter the list of
locations by site as well as by neighborhood. Since the neighborhoods
are associated with sites already it would be useful if whe
In settings.py I have:
MEDIA_ROOT = 'C:/Documents and
Settings/Monica/Desktop/aab/projekt/templates/media/'
Media folder is in 'templates', and 'images' folder is in 'media'.
angry.gif is in 'images'. Following page, when requested, doesn't
show the image, only text "No image"?! I don't underst
There are two ways in which I want to customize the admin interface
for a project I'm working on. As far as I can tell, these sorts of
customizations aren't built in, but before I start trying to write
them myself I just want to make sure I'm not reinventing the wheel
here. So, the two things I wa
It looks great Justin. I'm already testing it. Thanks for sharing
Tkm
On 3/5/08, Justin <[EMAIL PROTECTED]> wrote:
>
>
> Photologue 1.0b is out. The project page has been updated to reflect
> the new 1.0 status and a new documentation site
> http://sites.google.com/a/justindriscoll.us/photologue
Hi,
If there a simple apache configuration that is know to make browser
cache the javascript message file ('jsi18n') in a standard apache
django production setup ?
I've tried to add :
ExpiresActive on
ExpiresDefault "access plus 1 month"
To my
Photologue 1.0b is out. The project page has been updated to reflect
the new 1.0 status and a new documentation site
http://sites.google.com/a/justindriscoll.us/photologue/Home is up and
(mostly) complete. If you use uploaded images in your project I think
you'll want to check this out.
>From the
Thank you all for your overwhelming response. In response to my below
campaign and efforts the site has awarded me and my down line an
opportunity to make 20$ + 6$ + 1$ right after the registration is
done. So, in addition to 6$ opening Survey, you all have 5 more 4$
surveys totaling to an amount
Hi,
I want to show the current date in the Date field. It works
'SelectDateWidget' when I use the default widget. If I use
'SelectDateWidget' then I always get 1st January 2008. Is there a way
to
use 'SelectDateWidget' and still get current date in the input box?
The
code is pasted in the li
On Mar 4, 4:13 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-03-04 at 13:05 -0800, Dan Watson wrote:
> > I guess this is mostly a question for Malcolm. Do you want people to
> > start reporting bugs with the queryset-refactor branch, or would you
> > rather hold off until things
Ganesh - http://groups.google.com/group/django-users/post - try
again ;D
On Mar 5, 2:32 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to show the current date in the Date field. It works
> 'SelectDateWidget' when I use the default widget. If I use
> 'SelectDateWidget' then I always g
Hi everybody,
I am new to django, I am planning to create my own tool using django. The
tool is my learning practise to use Django in a better way.
The tool i am planning is I need to upload files A,B which would give me the
result as three files one is the A unique data, other is B unique data and
Do you know the new widescreen LG?
Watch it:
http://www.golyofogo.extra.hu/
Play wide Play LG!
--~--~-~--~~~---~--~~
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@go
A simpler question - is there any reason *not* to include this code in
my model's save() method?
try:
Model.save(self)
except DatabaseError:
transaction.rollback_unless_managed()
raise
The benefits:
- automatic recovery from failed unmanaged transactions - very handy
when working
On Wed, 2008-03-05 at 06:44 -0800, cesco wrote:
> Hi,
>
> my question is really basic but I'd like to make sure I'm doing the
> right thing.
>
> Say a user owns certain objects and it has the possibility to delete
> them by clicking on a "delete" link.
>
> I'm thinking of associating that link
Hi,
my question is really basic but I'd like to make sure I'm doing the
right thing.
Say a user owns certain objects and it has the possibility to delete
them by clicking on a "delete" link.
I'm thinking of associating that link to a get request via a url like:
/objects/delete/
but this would g
Hi,
I want to show the current date in the Date field. It works
'SelectDateWidget' when I use the default widget. If I use
'SelectDateWidget' then I always get 1st January 2008. Is there a way to
use 'SelectDateWidget' and still get current date in the input box? The
code is pasted in the lin
I am sorry for hijacking this thread inadvertantly. I'll start another
thread.
Ganesh
On Mar 5, 6:44 pm, "M.Ganesh" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to show the current date in the Date field. It works
> 'SelectDateWidget' when I use the default widget. If I use
> 'SelectDateWidget
On Wed, Mar 5, 2008 at 10:32 PM, gabriel <[EMAIL PROTECTED]> wrote:
>
> Hi ,
>
> I am at the point of changing IDE before my next project ( a huge one ).
> So far I've used Geany for python but now I am supposed to use django.
> Is it anythong with special support for Django??
>
> I know that reco
I have been using OpenKomodo[1] and it seems to work pretty well with Django.
[1] http://www.openkomodo.com/
On Wed, Mar 5, 2008 at 9:32 AM, gabriel <[EMAIL PROTECTED]> wrote:
>
> Hi ,
>
> I am at the point of changing IDE before my next project ( a huge one ).
> So far I've used Geany for p
Hi,
I want to show the current date in the Date field. It works
'SelectDateWidget' when I use the default widget. If I use
'SelectDateWidget' then I always get 1st January 2008. Is there a way to
use 'SelectDateWidget' and still get current date in the input box? The
code is pasted in the lin
paste the database portion of settings.py It seems that you aren't
connecting to your database properly. Are you specifying a port or the
proper location of your socket?
--
Justin Lilly
Web Developer
--~--~-~--~~~---~--~~
You received this message because you are
On Wed, 2008-03-05 at 05:25 -0800, Nicola Greco di Notsecurity.com
wrote:
> I'm using debian, with apache (not apache2), when i launch this
> command: python manage.py syncdb it appear:
[...]
> _mysql_exceptions.OperationalError: (2002, "Can't connect to local
> MySQL server through socket '/va
Hi ,
I am at the point of changing IDE before my next project ( a huge one ).
So far I've used Geany for python but now I am supposed to use django.
Is it anythong with special support for Django??
I know that recommendations include SPE and Eclipse but I wonder if you
happened to work with IDE
You need to make sure MySQL is up and running, and that the database
settings in your settings file are correct - I've seen this error when
I've simply forgotten to start MySQL.
On Mar 5, 1:25 pm, "Nicola Greco di Notsecurity.com"
<[EMAIL PROTECTED]> wrote:
> I'm using debian, with apache (not ap
I'm using debian, with apache (not apache2), when i launch this
command: python manage.py syncdb it appear:
server:/home/admin/djbongo/aggregatore# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File "/usr/lib/python2.4
Does anyone know how the django admin adds the "add group" button
(small green plus sign) to the MultipleChoiceField "groups" on the
"change user" interface?
On Mar 4, 11:21 pm, Michael <[EMAIL PROTECTED]> wrote:
> Right where you would expect it to be:
> Django.Contrib.admin.templates
>
> You mi
On Wed, 2008-03-05 at 02:40 -0800, Thierry wrote:
> Basically the effect of implementing a singleton in php.
> Not sharing anything between requests.
> But sharing during on request.
>
> For instance you would have one javascript object, which you get
> through getInstance()
> It always returns
On Tue, 2008-03-04 at 18:30 -0800, msoulier wrote:
> So, my urlconf is
>
> urlpatterns = patterns('teleworker.clients.views',
> (r'create/$', 'create'),
> (r'modify/(?P\d+)/$', 'modify'),
> (r'delete/(?P\d+)/$', 'delete'),
> (r'page/(?P\d+)/(?P\w+)/(?P\w+)/$',
> 'list'),
> (r
> I need to optimize some code related to django db api.
> Imagine a model like this:
>>
> class Languages( models.Model ):
> name = models.CharField( max_length=255 )
> ...
>>
> class Object ( models.Model ):
> name = models.CharField( max_length=255 )
> langua
On 5 mar, 12:02, Grupo Django <[EMAIL PROTECTED]> wrote:
> On 5 mar, 11:25, Evert Rol <[EMAIL PROTECTED]> wrote:
>
>
>
> > >>> I need to optimize some code related to django db api.
> > >>> Imagine a model like this:
>
> > >>> class Languages( models.Model ):
> > >>> name = models.CharField( max
On 5 mar, 11:25, Evert Rol <[EMAIL PROTECTED]> wrote:
> >>> I need to optimize some code related to django db api.
> >>> Imagine a model like this:
>
> >>> class Languages( models.Model ):
> >>> name = models.CharField( max_length=255 )
> >>> ...
>
> >>> class Object ( models.Model ):
> >>>
Basically the effect of implementing a singleton in php.
Not sharing anything between requests.
But sharing during on request.
For instance you would have one javascript object, which you get
through getInstance()
It always returns the same object with a list of js files.
Then in the view or wher
> OK, I'm getting a different error now:
>
> Traceback (most recent call last):
> File "update_feeds.py", line 58, in ?
>update_feeds()
> File "update_feeds.py", line 14, in update_feeds
>from knoxd.apps.aggregator.models import Feed, FeedItem
> ImportError: No module named knoxd.apps.ag
>>> I need to optimize some code related to django db api.
>>> Imagine a model like this:
>>
>>> class Languages( models.Model ):
>>> name = models.CharField( max_length=255 )
>>> ...
>>
>>> class Object ( models.Model ):
>>> name = models.CharField( max_length=255 )
>>> languages = models
On 5 mar, 10:52, Grupo Django <[EMAIL PROTECTED]> wrote:
> On 4 mar, 11:40, Evert Rol <[EMAIL PROTECTED]> wrote:
>
>
>
> > > I need to optimize some code related to django db api.
> > > Imagine a model like this:
>
> > > class Languages( models.Model ):
> > >name = models.CharField( max_length
On 4 mar, 11:40, Evert Rol <[EMAIL PROTECTED]> wrote:
> > I need to optimize some code related to django db api.
> > Imagine a model like this:
>
> > class Languages( models.Model ):
> >name = models.CharField( max_length=255 )
> >...
>
> > class Object ( models.Model ):
> >name = mode
More than one match for one {% url view args %} doesn't sound right,
you can name your patterns to clear up any ambiguity -
http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns
On Mar 5, 2:30 am, msoulier <[EMAIL PROTECTED]> wrote:
> So, my urlconf is
>
> urlpatterns = pat
75 matches
Mail list logo