On Fri, 2007-06-01 at 06:56 +, Gio wrote:
> I deleted the db and resync done, but still got the same problem.
> I add a few toppings and it works.
> I add one pizza with some toppings and their quantities: admin says
> everything is right, but really it isn't: pizza_pizzatopping is an
> empty
> The usual process when you have one version of code that is working and
> a more complicated version that is not working is to add features to the
> working version, one at a time, until it stops working. In that way you
> will be able to narrow down exactly which is the problematic step and
>
Let me add that it isn't a Python version problem, it's the same with
python 2.4 and 2.5.
Giovanni.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
class PizzaTopping(models.Model):
pizza = models.ForeignKey(Pizza,
help_text = 'Toppings to go on Pizza:
num in admin is how many will show up in Pizza',
edit_inline = models.TABULAR,
num_in_admin = 3,
Hi, I wonder if there is branch of django-multilingual for newforms-
admin?
I suppose that newforms admin will be merged with trunk in one or two
releases and lot of people already works with newforms admin, so it
would be great to have the posibility to work with multilingual models
in newfomrs-
Malcolm Tredinnick wrote:
> On Fri, 2007-06-01 at 10:27 +0200, Michal wrote:
>> Hello,
>> I have another "static media serving" question.
>>
>> I understand, that separated servers are the best solution for serving
>> dynamic and static (CSS, images, etc) content. But it is not possible to
>> ev
On Fri, 2007-06-01 at 10:27 +0200, Michal wrote:
> Hello,
> I have another "static media serving" question.
>
> I understand, that separated servers are the best solution for serving
> dynamic and static (CSS, images, etc) content. But it is not possible to
> everyone.
>
> So, I have one serve
On Fri, 2007-06-01 at 10:25 +0200, Jarek Zgoda wrote:
> We found that one of localizations we have to use is incomplete in 0.96.
> If we translate these texts and submit a patch, would it be included in
> (eventual) 0.96.1 and subsequent releases of the 0.96 line?
No. The only future releases in
Hello,
I have another "static media serving" question.
I understand, that separated servers are the best solution for serving
dynamic and static (CSS, images, etc) content. But it is not possible to
everyone.
So, I have one server with apache2+mod_python and Lighttpd installed.
What is the be
We found that one of localizations we have to use is incomplete in 0.96.
If we translate these texts and submit a patch, would it be included in
(eventual) 0.96.1 and subsequent releases of the 0.96 line?
--
Jarek Zgoda
"We read Knuth so you don't have to."
--~--~-~--~~
I use this code in quite a few of my programs and never have issues. I
don't know why you are having this problem and it is not throwing any
errors. Are you using the Web interface at all? If so when saving are
there any errors. If the objects aren;t saving to the db generally
Python throughs some
Russell Keith-Magee wrote:
> On 6/1/07, char <[EMAIL PROTECTED]> wrote:
>> Obviously, the performance deteriorates rapidly as the number of
>> GamesOfInterest added to a Profile increases. Is there any way to
>> avoid this?
>
> This is a known problem, and one of the many reasons that the forms
>
Hi Group,
It seems it is not possible to loop over a RelatedManager in a
template.
I have two models, Author and Article, joined by the relevant foreign
key.
For each author, I want to display the list of his articles
If I do, for each author :
{% for article in author.article_set %}
{{artic
On 31.05.2007., at 04:30, Malcolm Tredinnick wrote:
> On Wed, 2007-05-30 at 08:31 -0700, ringemup wrote:
> [...]
>>> So a "uniqueness" constraint on your model is not something that the
>>> form framework is really in a position to check. Instead, what
>>> should
>>> happen is you construct the
On Jun 1, 3:27 am, sorrison <[EMAIL PROTECTED]> wrote:
> I am using a ModelChoiceField (default_project) in a form and want the
> initial queyset to change when the form is created.
>
> I've tried doing it like this:
>
> forms.py --
> class UserAccountForm(forms.Form):
>.
>defaul
> So, I have one server with apache2+mod_python and Lighttpd installed.
> What is the best solution for serving static content?
>
Is it a safe assumption that you only have one IP to work with?
I'm certainly not claiming to be an expert, however I'll extend a few
thoughts. Maybe in your situ
@Malcom
Thanks. I forgot about that example!
@Michael
This is what I do:
1. I create a new project with the model file made by a copy-and-paste
of the code I posted above. I add my new app to configuration files.
2. I create a new db and I create tables it with syncdb
3. manage.py runserver and I
Ooops, sorry, never mind.
> {% for article in author.article_set.all %}
>{{article.title }}
> {% endfor %}
works fine.
Olivier
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Lately I've been surfing trought some web pages and got this one
www.gpcapitalgroup.com . It looks quite interesting, it may be a great
chance to invest.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
On 6/1/07, olivier <[EMAIL PROTECTED]> wrote:
>
> Hi Group,
>
> It seems it is not possible to loop over a RelatedManager in a
> template.
It certainly is possible.
> If I do this :
> {% for article in author.article_set.all %}
>{{article.title }}
> {% endfor %}
This looks like the correct
Despite having worked with a laptop day in day out, I only landed up
with aching wrists, strained neck and back; with my work still
pending. I could quote several reasons for it - my laptop processor
runs too hot, my laptop keeps slipping from the pillow, plus the
aching back. I know most of you
Am Freitag, 1. Juni 2007 01:35 schrieb Andrew:
> I'm just wondering my expectations are correct:
>
> Using 0.96, given a model with an ImageField, the admin interface
> gives me (what looks to be) a file upload widget.
>
> I should be able to select a file from that widget, and once I save
> the m
On Fri, 2007-06-01 at 07:46 +, Gio wrote:
>
> > The usual process when you have one version of code that is working and
> > a more complicated version that is not working is to add features to the
> > working version, one at a time, until it stops working. In that way you
> > will be able to
Malcolm Tredinnick napisał(a):
>> We found that one of localizations we have to use is incomplete in 0.96.
>> If we translate these texts and submit a patch, would it be included in
>> (eventual) 0.96.1 and subsequent releases of the 0.96 line?
>
> No. The only future releases in the 0.96 line w
On 6/1/07, Glin <[EMAIL PROTECTED]> wrote:
>
> Hi, I wonder if there is branch of django-multilingual for newforms-
> admin?
>
> I suppose that newforms admin will be merged with trunk in one or two
> releases and lot of people already works with newforms admin, so it
> would be great to have the
Kelvin Nicholson wrote:
>
>> So, I have one server with apache2+mod_python and Lighttpd installed.
>> What is the best solution for serving static content?
>>
>
> Is it a safe assumption that you only have one IP to work with?
Yes, I have only one IP.
> I'm certainly not claiming to be an exp
Don't you wish you could drive your dream car, own your dream house,
take a cruise on your own personal yacht? Isn't it time you stopped
dreaming and started living those dreams?
http://www.cgmoney.com
What do we offer you at http://www.cgmoney.com/
We will show you exactly how to make 30,000 or
Yes, you are right.
Removing core=True solved the issue.
However I think an error message from admin web interface is needed
when things go wrong.
Or should the default model validator to point to the error?
As during all my experiments in the terminal where the server was
running I always got:
-
Hi
how can I get JSON out of my Django object without having certain
fields in there for obvious reasons?
I found solutions like serializers.serialize("json",
Something.objects.all(), fields='myfield' )
which do not work, there's also a ticket on that
http://code.djangoproject.com/ticket/3466
Why
> This looks like the correct syntax. There are a limited number of
> things that could be going wrong. Either:
> - The author object being provided in the context doesn't have any articles
> - The article doesn't have a 'title' attribute
> - The value of article.title is '' for every article
> -
Hi,
Is it possible to do something like:
f = myForm()
...
f.someMethod(myData)
Instead of:
f = myForm(myData)
?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Fri, 2007-06-01 at 05:19 -0700, web-junkie wrote:
> Hi
> how can I get JSON out of my Django object without having certain
> fields in there for obvious reasons?
> I found solutions like serializers.serialize("json",
> Something.objects.all(), fields='myfield' )
> which do not work, there's als
On Fri, 2007-06-01 at 12:33 +, olive wrote:
> Hi,
>
> Is it possible to do something like:
> f = myForm()
> ...
> f.someMethod(myData)
>
> Instead of:
> f = myForm(myData)
The newforms code is very readable. It's usually worthwhile having a
read of the code to answer questions like this, be
Thanks Malcom.
Please forgive me, it is friday and working with Django is equally
entertaining and tiring.
Have a good WE,
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
web-junkie wrote:
> Hi
> how can I get JSON out of my Django object without having certain
> fields in there for obvious reasons?
> I found solutions like serializers.serialize("json",
> Something.objects.all(), fields='myfield' )
> which do not work, there's also a ticket on that
> http://code.d
On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote:
>
> Hi
> how can I get JSON out of my Django object without having certain
> fields in there for obvious reasons?
> I found solutions like serializers.serialize("json",
> Something.objects.all(), fields='myfield' )
> which do not work, there's also
On Fri, 2007-06-01 at 13:40 +, olive wrote:
> Hi,
>
> This returns True:
> f = myform(data)
> f.is_valid()
>
> while this returns False:
> f = myform()
> f.data = data
> f.is_valid()
>
> Is it a bug ?
Nope. It just means I gave you some bad advice before. You also need to
set the bound_dat
Malcom,
I don't see any bound_data attribute.
Can you give me an example please ?
I'm using 0.96 by the way.
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
Hi,
This returns True:
f = myform(data)
f.is_valid()
while this returns False:
f = myform()
f.data = data
f.is_valid()
Is it a bug ?
Olive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
On 6/1/07, olive <[EMAIL PROTECTED]> wrote:
> This returns True:
> f = myform(data)
> f.is_valid()
>
> while this returns False:
> f = myform()
> f.data = data
> f.is_valid()
>
> Is it a bug ?
Not sure if it should be called a bug or not from a quick look at
the source code (django/newforms/f
On Fri, 2007-06-01 at 13:56 +, olive wrote:
> Malcom,
>
> I don't see any bound_data attribute.
Typo. It's called is_bound, not bound_data. Open up newforms/forms.py.
Have a look in BaseForm.__init__. All the answers are there.
Regards,
Malcolm
--~--~-~--~~~---
Thanks... that does look like what I'm looking for. I don't really
understand how I'd put it in a model, though... I've got a situation
where if the choose a, they need to choose from one list, if they
choose b, they need to choose from another, and so on, but this is all
in the admin.. no public
if i click "view profile" within your posts, I can then click on the
linked elipsis in the middle of your email =)
On May 31, 3:44 pm, Michael Lim <[EMAIL PROTECTED]> wrote:
> Nic,
>
> Not in Google Groups. The email is masked off as shown in the reply
> thread shown below :-)
>
> Have a nice day
Sorry for being a littly bit offensive.
Thanks for your replies and for commiting the patches, works like a
charm now.
On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi
> > how can I get JSON out of my Django object
I inherited an application written in Python and I need to make a
change to it. The guy who created it is gone and I am not an expert in
Python. I was able to get one thing to work but I am having difficulty
with another part. I need to add a drop down selection list to the
HTML page and the save
this had me stumped.
thanks for the fix
G
On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi
> > how can I get JSON out of my Django object without having certain
> > fields in there for obvious reasons?
> > I found
Just wanted to ping the list with a code project I uploaded today.
http://code.google.com/p/django-beancounter/
Django-beancounter is a simple app I built to track my income and
expenses as a freelancer. It has a handful of reports built into the
Django admin interface and uses Plotkit for pretty
On 6/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks... that does look like what I'm looking for. I don't really
> understand how I'd put it in a model, though... I've got a situation
> where if the choose a, they need to choose from one list, if they
> choose b, they need to choose
Hi everyone,
How can I get foreign key fields serialized ?
I can't get the desired effect with:
select_related() or
Book.objects.extra(select={'firstname': 'subselect for firstname',
'lastname',' subselect for lastname' })
but don't want to iterate over the whole queryset unnecessarily.
SanPy,
Thank you! This works awesome and does exactly what I need!
--~--~-~--~~~---~--~~
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 unsubs
Any ideas?
On Jun 1, 8:17 am, strelok31 <[EMAIL PROTECTED]> wrote:
> I inherited an application written in Python and I need to make a
> change to it. The guy who created it is gone and I am not an expert in
> Python. I was able to get one thing to work but I am having difficulty
> with another p
Hi,
I'd like to ask how do you integrate your webtests with django suite,
so it'll be run on manage.py test.
I've looked for resources support for unittest framework, but I have
not found any way how to skip test gracefully (I guess it's patched
for python 2.6), but for now I'd then prefer start
D:
I am in the process of learning Django, and I'm trying to build a very
simple mapping application similar to chicagocrime or
newhavencrimelog.
I like the URLconf that chicagocrime uses for displaying crimes by
type:
/crimes/arson
/crimes/burglary
This makes sense, and the urls look nice. I'
Hello!
I'm new to Django, and are currently playing around a bit. I've
finished the tutorial, and have just started a small sample app. I
really like Django. Although its different to everything I have done
before (I confess, it was only PHP, I don't know Rails, Tomcat, Zope
or anything else), yo
Not sure why this isn't working.
I have:
make = models.ForeignKey(Foo)
model = models.CharField(maxlength=100)
slug = models.SlugField(prepopulate_from=('make','model'))
Foo has
bar = models.CharField(maxlength=100, unique=True)
def __str__(self):
return self.bar
So slug should po
I have an event manager that is a bit like a database driven
pydispatch combined with a general logging/monitoring app.
Embarassingly enough I wrote it before learning about pydispatch and
signals. So much for not reinventing the wheel. It keeps track of
various events, calls registered callback
Greetings,
I am in the process of writing a custom model field. Its basically an
encrypted char field, the idea is that when ever the field is saved to
the database it would be encrypted and when it is loaded back from the
database it would be decrypted.
I have gotten the encryption and decrypt
Hello all!
I just upgraded to the latest development version of Django and am now
getting an error from the admin (which only happens when trying to
save a form with DecimalField). The error looks like this:
mportError at /ce/admin/programs/event/111/
cannot import name decimal
Request Method:
On 6/2/07, emailgregn <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> How can I get foreign key fields serialized ?
The problem you have is not to serialize the keys, but to find the
dependencies that need to be serialized. Although the serializer _can_
take a queryset, it only does so as a degen
I've had great success with lighty & django, and actually prefer using
it over apache.
> server.modules = (
> ...
> "mod_fastcgi",
> "mod_accesslog"
> )
I believe this might be your problem. When using lighttpd the
ordering of the server modules is important and 'mod_fastcgi' _must_
On 6/2/07, strelok31 <[EMAIL PROTECTED]> wrote:
>
> Any ideas?
Let's get this straight: You send a multiple-page email, describing a
large application, with a vague description of what it does, and a
body of unindented Python code, and HTML that doesn't appear to come
from a Django template. As a
On 6/2/07, sansmojo <[EMAIL PROTECTED]> wrote:
>
> So, I checked out the code there, and it tries to import decimal,
> which doesn't exist in my version of python. However, it tries an
> alternate import of django.utils.decimal, which doesn't exist. There
> is, however, a django.utils._decimal.
Thanks! That did it.
newforms looks like a significant improvement but I'd don't have time
for that level of rewrite at the moment.
On Jun 1, 12:47 am, Gábor Farkas <[EMAIL PROTECTED]> wrote:
> Russell Keith-Magee wrote:
> > On 6/1/07, char <[EMAIL PROTECTED]> wrote:
> >> Obviously, the performa
Hi,
I would like to make urls of my site case-insensitive. As I
understand, by default the url matching is case-sensitive. Is there a
way to specify in my urls.py that I want a case-insensitive match?
Thanks,
Ram
--~--~-~--~~~---~--~~
You received this message b
miss universe 2007
http://www.real-article.com/miss%20universe/index.htm
--~--~-~--~~~---~--~~
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 un
Ah! That's it, but I was a revision behind and didn't notice. It was
obviously caught since then. Thanks, Russ!
Branton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On 5/31/07, Michal <[EMAIL PROTECTED]> wrote:
>
> I trust to my data, so I temporary disabled save() overriding. Now
> loaddata was successfull, and my application on computer2 works like charm.
Good to hear. I've opened ticket #4459 to address the problem; I've
got some ideas on how to fix the i
Hi Ramashish,
I haven't tried it, but I think that you could just use regular
expression extension notation to make the regex case insensitive in
your url conf.
So instead of:
('users/add/', 'views.add'),
You'd do:
('(?i)users/add/', 'views.add'),
Try it and let everyone know if that works..
Just pull your regular expression into a variable and use re.I or
re.IGNORECASE. Fore example:
urls.py:
from django.conf.urls.defaults import *
import re
re_admin = re.compile(r'^admin/', re.I)
urlpatterns = patterns('',
(re_admin, include('django.contrib.admin.urls')),
)
This will allow
Perhaps:
.../from/2007-02-07/
.../until/2007-03-07/
.../from/2007-02-07/until/2007-03-07/
On Jun 2, 7:40 am, cjl <[EMAIL PROTECTED]> wrote:
> D:
>
> I am in the process of learning Django, and I'm trying to build a very
> simple mapping application similar to chicagocrime or
> newhavencrimelog
The easiest way I know of is letting the javascript do its thing and
then overriding the save method. Basically, just split the generated
slug (which will be something like "1-stuff", where 1 is the id of the
Foo instance and "stuff" is the string typed into the model field).
Then grab the instan
If you EC2 (http://aws.amazon.com/ec2) then read on otherwise you can
ignore all of this. I've prepared a Django on Gentoo (DoG) Linux
image for EC2. This is built on the base Gentoo image that I posted
about previously. I added a whole bunch of goodness to run Django.
Included are a whole set
On 6/1/07, mtrier <[EMAIL PROTECTED]> wrote:
>
> If you EC2 (http://aws.amazon.com/ec2) then read on otherwise you can
> ignore all of this. I've prepared a Django on Gentoo (DoG) Linux
> image for EC2.
Very nice, thanks for sharing. :)
--~--~-~--~~~---~--~~
You
On Fri, 2007-06-01 at 14:32 -0700, [EMAIL PROTECTED] wrote:
> Not sure why this isn't working.
>
> I have:
>
> make = models.ForeignKey(Foo)
> model = models.CharField(maxlength=100)
> slug = models.SlugField(prepopulate_from=('make','model'))
>
> Foo has
>
> bar = models.CharField(maxlength=1
74 matches
Mail list logo