Video sharing social network Teenwag seeks great Python hackers we ll
wear Python T-shirts at startup school $100K $5K sign on $2k
referral
http://www.teenwag.com/showvideo/352
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Well done everyone! Take the weekend off :-)
--Simon
--~--~-~--~~~---~--~~
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
It worked great... finally. I really appreciate it. I learned
something too, so it's even better.
Thanks again,
Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
On 24-Mar-07, at 3:52 AM, David M. Besonen wrote:
>> There are also a few backwards-incompatible changes, documented
>> in the release notes[1]
>
> what are the django devs' intentions wrt backwards-compatibility?
>
> eg. will backwards-compatibility be guaranteed for any 1.xx
> release?
that i
Ok, from a previous post I've found that the best way to list items by
a category is to use _set:
{% for c in categories %}
{{ c }}
{% for i in c.item_set.all %}
{{ v }}
{% endfor %}
{% endfor %}
However, what if I want to limit the items based upon one of their
I have exactly the same issue. Here's how I dealt with it ...
First, the threadlocals module, this is used to keep track of the
site the user is browsing, once it's determined ...
mware/threadlocals.py
try:
from threading import local
except ImportError:
from django.utils._th
I downloaded 0.96 and installed it using "python setup.py install"
But it is still Django 0.95.1 (previously installed) that shows up.
How can I uninstall the old version?
Thanks,
Marius
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On 3/23/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> > I've started to write an application for Google Summer of
> > Code, and I would LOVE any feedback you can possibly give me.
> > Please comment on both language and content.
>
> I guess my first concern/interest/question would be "what makes
>
Click on
http://groups.google.com/group/django-users/web/freelance-django-developer-needed
- or copy & paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
> I've started to write an application for Google Summer of
> Code, and I would LOVE any feedback you can possibly give me.
> Please comment on both language and content.
I guess my first concern/interest/question would be "what makes
your proposal different from {{revision_control_system}}?" Si
Malcolm Tredinnick <[EMAIL PROTECTED]> writes:
> http://www.djangoproject.com/documentation/model-api/#overriding-default-model-methods
> .
Found it two minutes before :)
Many thanks!
Regards, Frank
--~--~-~--~~~---~--~~
You received this message because you ar
On Fri, 2007-03-23 at 23:31 +0100, Frank Tegtmeyer wrote:
> Hi Malcolm,
>
> thanks for your replies.
>
> > In your form processing code, check for empty strings and update it with
> > the default value if you wish.
>
> I use the create_object generic view. I looked for the mentioned
> pre_save
Hi Malcolm,
thanks for your replies.
> In your form processing code, check for empty strings and update it with
> the default value if you wish.
I use the create_object generic view. I looked for the mentioned
pre_save hook in all the docs but couldn't find any hint how to use
this. I assume pr
On Fri, March 23, 2007 2:32 pm, James Bennett wrote:
> There are also a few backwards-incompatible changes, documented
> in the release notes[1]
what are the django devs' intentions wrt backwards-compatibility?
eg. will backwards-compatibility be guaranteed for any 1.xx
release?
--~--~---
Sorry, too fast with the tab and enter sequence. :)
Ahem.
Please see http://www.djangoproject.com/documentation/api_stability/
But for a short answer, yes, at 1.0, there is a commitment to
backwards compatibility. Some APIs are already stable, and it's
documented at the previous URL.
Cheers
David,
On 3/23/07, David M. Besonen <[EMAIL PROTECTED]> wrote:
>
> On Fri, March 23, 2007 2:32 pm, James Bennett wrote:
>
> > There are also a few backwards-incompatible changes, documented
> > in the release notes[1]
>
> what are the django devs' intentions wrt backwards-compatibility?
>
> eg.
On Fri, 2007-03-23 at 22:15 +0100, Frank Tegtmeyer wrote:
[...]
> Questions:
>
> 1. Why is the default value in the database not set to 0?
The 'default' attribute in Django is intentionally not passed through as
a database constraint when the table is constructed. This is partly
because there ar
I've used the snippet on the following site:
http://www.silenus.nl/calendar/
(It's Dutch though, but it should adapt to the language you've
specified in your settings.py)
- Matthias
Pythoni wrote:
> Thank you for the posting.
> Is there a working example of the calendar where I can test it?
>
Howdy everybody,
I've already posted message similar to this one in django-devel, but I hope to
get even more feedback by posting here too. :-)
I've started to write an application for Google Summer of Code, and I would
LOVE any feedback you can possibly give me. Please comment on both languag
On Fri, 2007-03-23 at 16:31 -0400, Todd O'Bryan wrote:
> I'm trying to create the following workflow for a website where teachers
> can create questions for their students:
>
> 1. The teacher click a link to create a new question.
> 2. A form appears where the teacher can enter information, inclu
On Fri, 2007-03-23 at 17:54 +, jewe wrote:
> Hi everbody,
>
> I'm trying to create tables with help of models (use postgreSQL;
> engin: postgresql_psycopg2).
> My model (part):
>
> ...
> class Team(models.Model):
> team_id = models.IntegerField(primary_key=True)
> name= models.CharFi
Thank you for the posting.
Is there a working example of the calendar where I can test it?
Thank you.
L.
On Mar 23, 10:14 pm, "Masida" <[EMAIL PROTECTED]> wrote:
> Ok, here you go:http://www.djangosnippets.org/snippets/129/
>
> Hope you find it usefull.
> If you have any questions, do not hesita
We're pleased to announce the release of Django 0.96 today; this
release involves cleanup and stabilization of features from the 0.95
release, along with some nice new features: an integrated testing
framework, the first release of the newforms library, and a ton of
useful improvements.
There are
On Fri, 2007-03-23 at 17:14 +0100, Alessandro Ronchi wrote:
> Hi to all.
>
> I've add a generic list view with:
> # Picture list:
> (r'^museo/galleria/(?P[0-9]+)/$',
> 'django.views.generic.list_detail.object_list',
> dict(picture_list_info)),
>
> and I want to add previous and next link
On Fri, 2007-03-23 at 21:09 +, Andrew M. wrote:
> I lied, I don't know what I'm doing...
>
> Malcolm/Anyone with the time to provide some, or all :-), example code
> for the above, I would really appreciate it...
The simplest solution would be something like this:
You must have a way to com
2007/3/23, Greg Donald <[EMAIL PROTECTED]>:
>
> I have some tuples like this:
>
> categories = ( ( 'a', 'abc' ), ( 'b', 'def' ) )
>
> How can I build select options from that in a template?
>
> When I try this:
>
> {% for c in categories %}
> {{ c[1] }}
> {% endfor %}
Try:
{{c|slice:"1:2"|first}
Hi,
I just upgraded my two months old Django installation, MySQLdb was
already at the required level.
I have now the problem that MySQL-warnings come through and throw a
Warning exception.
The reason is that some smallint values are filled with empty strings
when a choice-Field got no selection
Ok, here you go:
http://www.djangosnippets.org/snippets/129/
Hope you find it usefull.
If you have any questions, do not hesitate to contact!
Ciao,
- Matthias
On Mar 23, 8:49 pm, "Pythoni" <[EMAIL PROTECTED]> wrote:
> Please post it.
> Thank you
> L.
>
> On Mar 23, 7:01 pm, "Masida" <[EMAIL PRO
I'm calling {{ request.method }} end it's empty while
{{ request_path }} returns request.path
It's realy strange
On Mar 23, 8:46 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Thanks, it solves the problem partially.
> > When I put 404.html in the templates root, I still cannot to pass
> > request
I lied, I don't know what I'm doing...
Malcolm/Anyone with the time to provide some, or all :-), example code
for the above, I would really appreciate it...
Thanks a lot,
Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Thanks for the help. I'll see what I can do, but I might be back. I
don't know much Python...
Thanks,
Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
I'm trying to create the following workflow for a website where teachers
can create questions for their students:
1. The teacher click a link to create a new question.
2. A form appears where the teacher can enter information, including
formatting information in some kind of wiki-like language. A
Please post it.
Thank you
L.
On Mar 23, 7:01 pm, "Masida" <[EMAIL PROTECTED]> wrote:
> I've written a very simple calendar template_tag, if you're interested
> I can post it here or put it on djangosnippets.org.
>
> Ciao,
> - Matthias
>
>
>
> Pythoni wrote:
> > How much difficult is to add calend
>
> Maybe the related objects are manipulated in a post_save signal, but
> after 'my' post_save, so I can't see them at all.
Yes. The post_save signal is sent out right at the end of the save
method of your main model object. The M2M objects are saved later than
this.
> Any clues?
1. Use your o
> Do I need to close the connection after I'm done with the results?
You shouldn't have to. Django closes the connection at the end of the
request.
> I've also recently started receiving 'too many connections' errors...
> and thought this might be the reason?
What database are you using? Can yo
A while ago Doug and Eivind asked about using subdomains for each app.
I'd like to do this, but in the example they had a stab at they were
using Apache whereas I'm using Lighttpd...
ideally I'd like subdomainone.wherever.com and
subdomaintwo.wherever.com to pass through without anything AFT
>
> 1) /var/log/pgsql is empty...
The PgSQL log should not be empty.
1. Check that pgsql is actually running :)
2. Check that pgsql is not set to log to your system log (syslog)
Once you see the pg log, it will show you which query failed.
--~--~-~--~~~---~--~--
On Mar 22, 5:50 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote:
> I'm definitely interested in the results. Why don't you apply to get
> check-in permissions on the per-object-permissions branch? That way it
> can be accessible to the whole django community. Contact Jacob
> Kaplan-Moss to get
I am writing an app that makes heavy use of generic views. I have
several forms which include date fields and I want to know how to
attach a widget to the field for entering the date (like the one used
in the admin site).
Am I making sense?
--~--~-~--~~~---~--~~
Hi,
I want to access the selected values in a M2M field after saving.
But overriding the save method or using a post_save signal, I always
get an empty list.
Maybe the related objects are manipulated in a post_save signal, but
after 'my' post_save, so I can't see them at all.
Any clues?
Best
I've written a very simple calendar template_tag, if you're interested
I can post it here or put it on djangosnippets.org.
Ciao,
- Matthias
Pythoni wrote:
> How much difficult is to add calendar ,like that in the admin , to my
> templates?
> Or is there an easier way to add any different calen
Hi everbody,
I'm trying to create tables with help of models (use postgreSQL;
engin: postgresql_psycopg2).
My model (part):
...
class Team(models.Model):
team_id = models.IntegerField(primary_key=True)
name= models.CharField(maxlength=100)
class Player(models.Model):
player_id = model
>
> How can I build select options from that in a template?
>
I think your subscripting syntax is wrong. Try:
{{ c.1 }}
Using newforms makes it pretty straight forward as well:
FOODS = ( ('spam', 'The Spam'), ('ham', 'The Ham'), ('eggs', 'The
Eggs'))
class FoodForm(forms.Form):
food =
On 3/23/07, Greg Donald <[EMAIL PROTECTED]> wrote:
> Could not parse the remainder: [0]
Solved. I found it was c.0 and c.1 that I needed.
--
Greg Donald
http://destiney.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
How much difficult is to add calendar ,like that in the admin , to my
templates?
Or is there an easier way to add any different calendar to my
templates?
Thank you for help
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Hi to all.
I've add a generic list view with:
# Picture list:
(r'^museo/galleria/(?P[0-9]+)/$',
'django.views.generic.list_detail.object_list',
dict(picture_list_info)),
and I want to add previous and next links.
It seems I must write an absolute url, in template, with:
{% if has_previo
I have some tuples like this:
categories = ( ( 'a', 'abc' ), ( 'b', 'def' ) )
How can I build select options from that in a template?
When I try this:
{% for c in categories %}
{{ c[1] }}
{% endfor %}
I get this error:
Could not parse the remainder: [0]
Thanks,
--
Greg Donald
http://des
I've changed my 'admin/base.html' template to show a quick menu of
apps/models.
It's easier to switch between pages without having to go back to the
admin home.
It works on Firefox and maybe on other non-IE browsers, it uses only
CSS but shouldn't be hard to use some Javascript to make it work o
Browsing the internet for the best and cheap prices on electronics is
not easy.
However, to enjoy the power of the internet, it's easy as
www.amirelectronics.com. Buying is
very cheap, selling is too easy.
--~--~-~--~~~---~--~~
You received this message because yo
On 3/23/07, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
> We at Tabblo are of course very excited about the acquisition by HP.
> One of the things that HP valued in Tabblo was our ability to innovate
> quickly and deliver solid products in a short amount of time. We
> definitely feel like Django
> Thanks, it solves the problem partially.
> When I put 404.html in the templates root, I still cannot to pass
> request object information to the template:
>
> in django/views/defaults.py:
> def page_not_found(request, template_name='404.html'):
> t = loader.get_template(template_name)
>
I have two models, Artist and Album. I am able to add new albums via
the admin interface but the list of artists in the album edit / add
pages are not ordered.
If I am not getting the documentation wrong, this should be achieved
simply by stating the default ordering in the meta class. My
(simpli
Thanks, it solves the problem partially.
When I put 404.html in the templates root, I still cannot to pass
request object information to the template:
in django/views/defaults.py:
def page_not_found(request, template_name='404.html'):
t = loader.get_template(template_name)
return
http.Htt
> Unfortunatly given your example, 90% of what you want (urls.py with
> static file handling, a media directory, building the actual model)
> are things I expressly do NOT want the wizard to do for ME. (I have my
> own genapp.py tool I use for creating new apps.)
Interesting... I'd like to know wh
Hi.
There's no defualt 404 page.
http://code.djangoproject.com/ticket/3335
Hope this helps
On 3/23/07, SlavaSh <[EMAIL PROTECTED]> wrote:
>
> How can I use "default" 404 page in Django ?
> When I disable debugging i just get an error:
>
> Mod_python error: "PythonHandler django.core.handlers.
How can I use "default" 404 page in Django ?
When I disable debugging i just get an error:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result
We at Tabblo are of course very excited about the acquisition by HP.
One of the things that HP valued in Tabblo was our ability to innovate
quickly and deliver solid products in a short amount of time. We
definitely feel like Django was one of the reasons we were able to do
that, and to make
The code of views.generic.list_detail. object_list has the following
line:
queryset = queryset._clone(),
Looking at the rest of the code I can't quite see why this 'cloning'
operation takes place, but I have probably missed something.
If the code were to read:
try: queryset = queryset._clone()
e
On Mar 23, 6:47 pm, "benrawk" <[EMAIL PROTECTED]> wrote:
> Thank you again for helping. FYI, I am using Fedora Core 6. I set
> 'PythonHandlermod_python.testhandler' in httpd.conf and got a bunch
> of info. The sys.path appears to be correct...relevant bits, and then
> full text beneath.
>
> sys.pa
Just for the records: HP has revealed plans to acquire Tabblo
Vyomesh Joshi, EVP at HP said: "By acquiring Tabblo's technology and
making it available to companies that host popular websites, HP will
be firmly on the path to becoming the print engine of the web."
As Ned Batchelder wrote, acquiri
60 matches
Mail list logo