On Mon, Aug 31, 2009 at 3:12 AM, Greg wrote:
>
> Hi all,
>
> I have a large-ish form (40-odd fields) on a pretty busy site, and I'm
> constantly getting "ManagementForm data is missing or has been
> tampered with" or "IOError: request data read error" errors. I can't
> reproduce it, and it always
One of the forms I'm using in a FormWizard takes an aditional keyword
argument in its __init__, e.g.:
=
def __init__(self, arg1=None, *args, **kwargs):
pass
=
I'm at a loss how to make FormWizard construct my form while passing
in the extra keyword argument (arg1). An
On Aug 30, 8:59 pm, Mike Ramirez wrote:
> hey,
> I'm trying to write a recaptcha widget using the recaptcha client, the
> problem I'm having is that redefining value_from_datadict I get this
> error: 'ContactForm' object has no attribute named 'get'. This happens on
> the initial loading of th
On Aug 31, 4:56 am, ips006 wrote:
> Is it possible to have block tags inside inclusion template tags
> overwrite the block tags in parent templates?
>
> I have a chunk of html generated by an inclusion tag, and I would like
> to assign a CSS file with it. I would like to be able to append to an
>
Hi,
I also would like to note that this code is not threadsafe - you can't
use it with python threads because of unexpectable results, in case of
mod_wsgi please use prefork daemon mode with threads=1
--~--~-~--~~~---~--~~
You received this message because you ar
On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote:
> I think you're going to need to post your view code as well. It seems
> that the form is passing itself, rather than its data, to the widget,
> so I'd guess there's something weird about the way it's being
> instantiated.
> --
> DR.
Her
I seem to remember being able to have template tags and filters
localized in Django, but I can't find any information on this back.
Did I misremember, or have my search skill deteriorated?
I'm particularly looking for a Dutch localization of the timesince
template tag..
Many thanks in advance,
On Aug 31, 8:47 pm, Mike wrote:
> Hi,
>
> I also would like to note that this code is not threadsafe - you can't
> use it with python threads because of unexpectable results, in case of
> mod_wsgi please use prefork daemon mode with threads=1
Provided you set WSGIApplicationGroup to %{GLOBAL}
On Mon, Aug 31, 2009 at 12:13 AM, buttman wrote:
>
> class MyForm(ModelForm):
> field1 = CustomField(custom_option="sdsdsd")
> field2 = CustomField(custom_option="sdsdsd")
> field3 = CustomField(custom_option="sdsdsd")
> #
>
> class Meta:
> model = MyModel
> exclu
On Aug 31, 11:58 am, Mike Ramirez wrote:
> On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote:
>
> > I think you're going to need to post your view code as well. It seems
> > that the form is passing itself, rather than its data, to the widget,
> > so I'd guess there's something weird abou
is recursion allowed in templates?
for example can the "xy_template.html" file contain {% include
"xy_template.html" %}?
because I tried but the system crushed:
Process: Python [97385]
Path:/System/Library/Frameworks/Python.framework/Versions/
2.5/Resources/Python.app/Conten
First, if you aren't running into db performance problems, I wouldn't
optimize. Keep everything as simple as possible, then optimize the
parts that actually demonstrate themselves to be a performance issue.
If this really is a performance issue, you could solve it like this:
If you know that you
Hi,
I am trying to check the check boxes while serve of a page.
I will be passing the elements/indexes of an element(checkbox) as a
list from FORM.
Here is the sample code that I am trying to implement
sampleForm():
check = [1,3,5]
hobbies_list = {'1':'Chess', '2':'Cricket', '3':'Tennis',
Check out this thread, where Karen Throughly explained date formats
and widgets to me:
http://groups.google.com/group/django-users/browse_thread/thread/7488aa81bfa94cac/
Alan.
On Aug 28, 4:10 pm, Karen Tracey wrote:
> On Aug 28, 3:19 am, Jigar wrote:
>
> > Hi All,
>
> > I am trying to add the
Hi All
I'm trying to change the default date format of django. The present
format is '2009-08-31'. I want to display this format as '31-
Aug-2009'.
I tried putting date_time format in settings.py but no result. Even
tried to do with java script but all went in vain. Can the group give
me an i
Are you saying that it works in the development server environment? If so,
it could be permission
issues. Have the ruby script append a time stamp to a world writable log
file to confirm that it gets
run.
Bill
On Fri, Aug 28, 2009 at 9:07 PM, aaron smith <
beingthexemplaryli...@gmail.com> wrote
WIth your original version here, I'm going to guess that you need to use
template.Variable() (or learn a lot about doing what it does). It is
mentioned
on the how to page for template tags. IIRC, all arguments to a tag are
strings (after all, you get them with a split operation), so they must be
I'm trying to understand why a LEFT OUTER JOIN is being used in
queries that filter on a NULL foreign key. It seems that the same
result can be achieved without the LEFT OUTER JOIN.
Here is an example:
> cat models.py
from django.db import models
from django.contrib.auth.models import User
# Cr
Hi v. I guess you want to give a format in the template, date tag,
formats a date according to the given format as you can see here
(http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date).
ex:
{{ date_value|date:"d-M-Y" }}
return:
'31-Aug-2009'.
On Aug 31, 3:45 pm, vishak wrote:
Tickets are now sold out.
I need a ticket. If anyone would like to sell their ticket please
contact me
at adrian_nye at yahoo. Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
I'm using it in model.model,DateField() date that forms from this i
need to change.
On Aug 31, 6:56 pm, PANCHICORE wrote:
> Hi v. I guess you want to give a format in the template, date tag,
> formats a date according to the given format as you can see here
> (http://docs.djangoproject.com/en/de
On Mon, Aug 31, 2009 at 9:26 AM, Lokesh wrote:
>
> Hi,
>
> I am trying to check the check boxes while serve of a page.
>
> I will be passing the elements/indexes of an element(checkbox) as a
> list from FORM.
>
> Here is the sample code that I am trying to implement
>
> sampleForm():
> check = [
I have solve it!
The point is to use a variable not a constant for recursion's file
name. Why recursion? I've translated my model into rendering context.
And if a field is a relationship with fields, the rendering is the
same.
Here is the template:
{{contextElement.label}}:
On Mon, Aug 31, 2009 at 2:13 AM, Zico wrote:
>
>
> On Mon, Aug 31, 2009 at 7:04 AM, Karen Tracey wrote:
>
>> File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py", line
>> 214, in _resolve_special
>>>
>>>
>>>
>>>
>>>
>>>
>>> callback = getattr(self.urlconf_module, 'handler%s'
On Mon, Aug 31, 2009 at 9:03 AM, gentlestone wrote:
>
> is recursion allowed in templates?
>
> for example can the "xy_template.html" file contain {% include
> "xy_template.html" %}?
>
It's "allowed" in the sense that it's not caught as an error. But it will
lead to infinite recursion...
>
>
On Monday 31 August 2009 05:48:18 am Daniel Roseman wrote:
> On Aug 31, 11:58 am, Mike Ramirez wrote:
> > On Monday 31 August 2009 02:46:27 am Daniel Roseman wrote:
> > > I think you're going to need to post your view code as well. It seems
> > > that the form is passing itself, rather than its da
On Mon, Aug 31, 2009 at 10:30 AM, wallenfe wrote:
>
> I'm trying to understand why a LEFT OUTER JOIN is being used in
> queries that filter on a NULL foreign key. It seems that the same
> result can be achieved without the LEFT OUTER JOIN.
>
> Here is an example:
> [snip]
Why is the LEFT OUTER
Hello, I wrote a model to manage small TeX fragments:
class LaTeX(models.Model):
latex = models.TextField(help_text="Un extrait de source LaTeX")
macros = models.ForeignKey(Macros)
For now, I override save() to compile the latex string using macros
strings with LaTeX compilator, and prod
On Monday 31 August 2009 08:08:50 am you wrote:
> On Monday 31 August 2009 07:51:52 am you wrote:
> > > Either make sure you always pass in userip when you instantiate the
> > > form, or (preferably) change the __init__ so that userip is in the
> > > kwargs dictionary, and use kwargs.pop('userip')
Hi Bill
Cool I understand that :D
And youre right, I will need template.Variable() someday soon
Thank you
Michael
On 31 Aug., 16:29, Bill Freeman wrote:
> WIth your original version here, I'm going to guess that you need to use
> template.Variable() (or learn a lot about doing what it does).
Hi,
Can anyone help with this in django with lucene? Is there anyone able
to use this module sucessfully. I am getting this error when I am
trying to search :
Error : 'Manager' object has no attribute 'objects_search'
Thanks,
Puneet
On Aug 25, 7:55 pm, Puneet wrote:
> Hi,
>
> Does anyone have
Hi you all
I'm trying to serve a simple web service using ZSI
Anyone how can I configure an app's urls and views files to do this??
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On Aug 31, 1:38 pm, Julián C. Pérez wrote:
> Hi
> I use Django 1.0 and I define a template function like...
> ---
> from django import template
> register = template.Library()
> def doSomething(param1, param2):
> # Do something like...
> return str(param1)+''+str(param2)
> register.simple_t
Hi, may be you have seen my previous email regarding stdimage. The previous
error was:
*"ImportError: No module named stdimage"
*
I have solve this problem by this way:
1. I have created a "contrib" directory in my /opt/fixmystreet/
2. Then, i have downloaded the stdimage with *
*
*svn checkout h
We setup a Nginx proxy in front of Apache/WSGI and got Nginx to handle
the SSL cert and simply pass on a flag to WSGI if the connection was
coming through http or https.
Next you'll want a SSL middleware, we use:
http://www.djangosnippets.org/snippets/240/
Now its a matter of configuring which
On Mon, Aug 31, 2009 at 1:15 PM, Zico wrote:
>
>
> On Mon, Aug 31, 2009 at 7:43 PM, Karen Tracey wrote:
>
>> You seem to have been following the doc for downloading/installing
>> stdimage, which says to put it somewhere in a directory included in your
>> PYTHONPATH. By putting it directly in si
But in this case we lose pretty URLs, and keep your mind that form can be very
large.
On Sun, Aug 30, 2009 at 11:08:34AM -0500, Frank Wiles wrote:
> Hi Viacheslav,
>
> All you need to do is on your edit/view links include the necessary
> extra args to recreate the search they used and then in
On Mon, Aug 31, 2009 at 1:49 PM, Zico wrote:
> Hi, may be you have seen my previous email regarding stdimage. The previous
> error was:
> *"ImportError: No module named stdimage"
> *
> I have solve this problem by this way:
>
> 1. I have created a "contrib" directory in my /opt/fixmystreet/
> 2.
Is there a 'common' way to build apps with django and a Adobe Flex
frontend?
I'm about to do just that, and I'm a bit overwhelmed by the number of
choices that you get by multiplying
communication layers (REST, XML-RPC, SOAP) times data formats (XML,
JSON, etc.) times Flex microarchitectures
I'm looking for a Django developer to join us at replyforall.com on a
full-time, or near full-time, contractor basis.
Our current need is more slanted towards a backend web developer/
engineer who ideally is familiar with HTML/CSS and capable of front-
end implementation. Our site was built on D
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
solar declared:
> Is there a 'common' way to build apps with django and a Adobe Flex
> frontend?
> I'm about to do just that, and I'm a bit overwhelmed by the number of
> choices that you get by multiplying
> communication layers (REST, XML-RPC, S
Hi
I use Django 1.0 and I define a template function like...
---
from django import template
register = template.Library()
def doSomething(param1, param2):
# Do something like...
return str(param1)+''+str(param2)
register.simple_tag(doSomething)
---
to use that in template system, assuming a
hi group. I"ve got an issue i'm needing help with. I have two
variables, a and b in my template and I need to pass those to a single
template tag so I can process them and return a result to the
template. Is there a way to pass more than one variable to a template
tag... if so, how?
thanks in
On Mon, Aug 31, 2009 at 7:43 PM, Karen Tracey wrote:
> You seem to have been following the doc for downloading/installing
> stdimage, which says to put it somewhere in a directory included in your
> PYTHONPATH. By putting it directly in site-packages you can do imports of
> the form "from stdima
On Tue, Sep 1, 2009 at 12:15 AM, Karen Tracey wrote:
> On Mon, Aug 31, 2009 at 1:49 PM, Zico wrote:
>
>> Hi, may be you have seen my previous email regarding stdimage. The
>> previous error was:
>> *"ImportError: No module named stdimage"
>> *
>> I have solve this problem by this way:
>>
>> 1. I
Anyone has experience with using web services in Django??
I mean, not necessarily with ZSI but others methods...
On Aug 31, 11:56 am, Julián C. Pérez wrote:
> Hi you all
> I'm trying to serve a simple web service using ZSI
> Anyone how can I configure an app's urls and views files to do this??
>
Hi,
I seem to have run into a problem trying to use the jinja2 template
language. I've tried using Mitsuhiko's snippet (http://bitbucket.org/
mitsuhiko/jinja2-main/src/c07588cf115f/ext/djangojinja2.py) and this
other one by Joe Vasquez (http://jobscry.net/downloads/jinja_r2r.txt)
where I had to c
Hello, I want to extend the admin panel of Django where adding/
changing happens for a specific object, say Foo. I have already done
alot of research and found a part discussing this at the old version
djangobook.
I have made an admin/myapp/foo/change_list.html at my template
directory and did so
Thanks guys!
On Aug 30, 10:56 pm, Alex Gaynor wrote:
> On Sun, Aug 30, 2009 at 9:37 PM, stevedegrace wrote:
>
> > Hi guys,
>
> > I'm making a refback type linkback app for my hobby CMS. I want to
> > find all the unique page targets. I am thinking broadly of a couple of
> > ways to do it. One wi
Hi,
According to the docs,
"... when the template system encounters a dot in a variable name, it
tries the following lookups, in this order:
* Dictionary lookup. Example: foo["bar"]
* Attribute lookup. Example: foo.bar
* Method call. Example: foo.bar()
* List-index lookup. Examp
On Mon, Aug 31, 2009 at 2:40 PM, Zico wrote:
>
> Yes, I did it. Now my transmeta is in:
>
> /opt/fixmystreet/contrib/transmeta/__init__.py
>
> And, my stdimage is in:
>
> /opt/fixmystreet/contrib/stdimage/__init__.py
>
> But, nothing changed yet!!! Same error is coming:
>
> *No module named trans
On Mon, Aug 31, 2009 at 3:48 PM, efege wrote:
>
> Hi,
>
> According to the docs,
>
> "... when the template system encounters a dot in a variable name, it
> tries the following lookups, in this order:
>
>* Dictionary lookup. Example: foo["bar"]
>* Attribute lookup. Example: foo.bar
>*
2009/8/31 Julián C. Pérez :
>
> Anyone has experience with using web services in Django??
> I mean, not necessarily with ZSI but others methods...
>
Yes, we have many of the working. But this is no a Django issue is
more a Python programming one. You can access to Soap web services
using ZSI, SUD
On Tue, Sep 1, 2009 at 2:03 AM, Karen Tracey wrote:
> The traceback might help since it would show the import that is triggering
> this. If it is "from contrib.transmeta import something" then I don't
> understand why you'd still be having problems with the setup you describe
> above.
>
>
:D
No
On Aug 31, 5:16 pm, Karen Tracey wrote:
> Based on that code, a dictionary lookup that raises TypeError,
> AttributeError, or KeyError will cause the template code to continue with
> trying an attribute lookup, so it is one of those three specifically that
> you will need to raise in the case wh
Up.
On Fri, Aug 28, 2009 at 10:34 AM, Enrico Sartorello <
enrico.sartore...@gmail.com> wrote:
> Hi,
> i'm developing a Django application where i need to differentiate the
> validation of an admin-site model form between different users: some user
> must respect some particular restrictions (impo
On Mon, Aug 31, 2009 at 4:29 PM, Zico wrote:
> Now, the transmeta is gone!! and... new one just appeared!!
>
> ImportError at /
>
> cannot import name GIcon
>
> Request Method: GET Request URL: http://localhost:8000/ Exception Type:
> ImportError Exception Value:
>
> cannot import name GIcon
Hi all.
I have this question on when one is preffered over another. I mean
overriding save or using signals like post_save or pre_save.
cheers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Tue, Sep 1, 2009 at 2:48 AM, Karen Tracey wrote:
>
> What version of Django are you using?
>
1.0.3
--
Best,
Zico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
On Fri, Aug 28, 2009 at 10:34 AM, Enrico
Sartorello wrote:
> Hi,
> i'm developing a Django application where i need to differentiate the
> validation of an admin-site model form between different users: some user
> must respect some particular restrictions (imposed via "clean_*" methods)
> while o
Alright, I found this: http://code.djangoproject.com/ticket/10216
which explains the cryptic error message. The fix is to disable
TEMPLATE_DEBUG.
On Aug 31, 2:44 pm, Jeff wrote:
> Hi,
>
> I seem to have run into a problem trying to use the jinja2 template
> language. I've tried using Mitsuhiko's
On Mon, Aug 31, 2009 at 10:49 PM, eka wrote:
>
> Hi all.
>
> I have this question on when one is preffered over another. I mean
> overriding save or using signals like post_save or pre_save.
>
> cheers.
>
The scale. signals are used for every model, save() per one
--~--~-~--~~---
On Mon, Aug 31, 2009 at 4:55 PM, Zico wrote:
>
>
> On Tue, Sep 1, 2009 at 2:48 AM, Karen Tracey wrote:
>
>>
>> What version of Django are you using?
>>
>
> 1.0.3
>
Yes, I see that now right in the subject. You'll need to upgrade to 1.1 if
you want to use this fixmystreet package, since it is u
Hello
I had the install going pretty well but when i do
python manage.py syncdb
i got this error message
python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File "/usr/lib/python2.4/site-packages/django/core/management/
__
On Aug 31, 10:14 pm, Franck Y wrote:
> Hello
> I had the install going pretty well but when i do
> python manage.py syncdb
>
> i got this error message
>
> python manage.py syncdb
> Traceback (most recent call last):
> File "manage.py", line 11, in ?
> execute_manager(settings)
...
> ra
Yup, I was going to reply with this as well. One draw back to this, however,
is that it makes the app a little bit more complicated to test and debug,
I've found, unless you concoct your own other test cases that import the
pyAmf libs and test separately. Another thing you might want to think about
Check that you have python-sqlite2 installed
http://oss.itsystementwicklung.de/trac/pysqlite/
On Aug 31, 6:14 pm, Franck Y wrote:
> Hello
> I had the install going pretty well but when i do
> python manage.py syncdb
>
> i got this error message
>
> python manage.py syncdb
> Traceback (most re
On Tue, Sep 1, 2009 at 3:14 AM, Karen Tracey wrote:
>
> Yes, I see that now right in the subject. You'll need to upgrade to 1.1 if
> you want to use this fixmystreet package, since it is using support added
> between 1.0 and 1.1.
>
>
Thanks Karen! Thanks a lot! Now it`s working after upgraded my
I can't find an answer to this, so I'm hoping folks here can help: why
is it that Django catches IntegrityError for a field with unique=True
in the Admin tool but requires you to catch it yourself in your app?
That is, why isn't it handled like all other built-in validation
checks that come bundle
Hello,
A user on my site recently complained to me about getting a 405 error after
slavishly writing a 15 minute comment - losing all they had written! I
looked into the server logs and saw a 400 followed by a 405 error, and I'm
guessing it was the timestamp input:
"The timestamp is used to ensu
On Sep 1, 3:39 am, Francis wrote:
> We setup a Nginx proxy in front of Apache/WSGI and got Nginx to handle
> the SSL cert and simply pass on a flag to WSGI if the connection was
> coming through http or https.
>
> Next you'll want a SSL middleware, we
> use:http://www.djangosnippets.org/snippe
Hi All,
I don't seem to find good source to help me write a complex where condition
in the django.
The where condition is generic boolean clause built on top of literals. The
literal are just == or != check on a single field.
for example ((field1 == 2 and field2 != 5) or field3 == 6).
another e
backgroud information:
server: fedora11
web server : apache 2.2 + mod_wsgi2.5
my project location
'/usr/local/django/myproject'
'/usr/local/django/myproject/myapp'
in the django.wsgi i have
---
sys.path.append('/usr/local/django')
sys.path.append('/usr/local/django/myproject')
-
forgot to mention i am using django1.1
On Aug 31, 5:35 pm, weiwei wrote:
> backgroud information:
> server: fedora11
> web server : apache 2.2 + mod_wsgi2.5
>
> my project location
> '/usr/local/django/myproject'
> '/usr/local/django/myproject/myapp'
>
> in the django.wsgi i have
>
> ---
Dear all,
How do we change the displayed application name in django admin? Let's say I
have an application called foo, I wanted it to be displayed as bar instead
of foo in the admin system.
I've searched the document but failed to get the answer for this.
Thank you in advance for your help.
--
Hi,
I've got an abstract base class like this:
class Base(models.Model):
class Meta:
abstract = True
def save(self, *args, **kwargs):
print dir(self.Meta)
super(Base, self).save(*args, **kwargs)
and a child model class inheriting from it like this:
class Child
On Mon, Aug 31, 2009 at 6:27 PM, aa56280 wrote:
>
> I can't find an answer to this, so I'm hoping folks here can help: why
> is it that Django catches IntegrityError for a field with unique=True
> in the Admin tool but requires you to catch it yourself in your app?
> That is, why isn't it handled
it ended up being an incorrect working directory. I had to give the
runfcgi parameter the "workdir" parameter so that it would run from
the right place. arg!. By default if you don't specify workdir it puts
the working dir as "/"
On Mon, Aug 31, 2009 at 7:16 AM, Bill Freeman wrote:
> Are you sayi
On Aug 31, 9:51 pm, Karen Tracey wrote:
> However if you use a ModelForm to validate the data prior to attempting to
> save the model you get these problems reported as validation errors:
Karen,
Thanks for the thorough explanation. I really appreciate it. What I
took from it is that if I'm usi
Hi Sonal,
On 27 aug, 14:13, Sonal Breed wrote:
> I have django-tinymce spellchecker working perfectly on my local
> machine which is Ububtu.
> But as soon as, I deploy it on a web host (CentOS), it gives me
> problems. Specifically, when I click the specllchecker button,
> following errors are
(Pdb) f0
(Pdb) f0.cleaned_data
{'ipc': False, 'xc': 0, 'app': 0, 'pic': 0, 'cfi_checkride': False,
'dual_r': 0, 'date': datetime.date(2009, 9, 5), 'dual_g': 0, 'total':
5.5996, 'id': None, 'sic': 0, 'night_l': 0, 'holding':
False, 'act_inst': 0, 'pilot_checkride': False, 'solo': 0,
'f
81 matches
Mail list logo