64 bit integer field

2008-07-17 Thread simon
How do i create a long long integer field in my model ? Do I use decimal ? (worried about performance of the decimal field). I am using the mysql backend. Simon. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Flatpages and additional context

2009-04-21 Thread Simon
options). If I put a variable like ?lite=1 on the URL, is there a way to access this variable from the flatpages base template, and adjust the context accordingly? Thanks! -- Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Flatpages and additional context

2009-04-21 Thread Simon
Looks good. Thanks :) On 21 Apr, 14:31, Tom Evans wrote: > On Tue, 2009-04-21 at 06:02 -0700, Simon wrote: > > I'm using Django flatpages for all the "one-off" pages on my website, > > but I'd like to create a "lite" version of the site for iPh

Count by date

2009-11-23 Thread Simon
Hi all, I am sure this must be a real noob question as it's so easy to do in SQL. I am trying to replicate something like the following in Django: SELECT DATE(created) AS created_day, COUNT(id) AS NumberOf FROM my_table GROUP BY created_day Effectively, all I want to do is a count grouped by

Introducing ImageFlow for Django (Django-ImageFlow)

2010-06-07 Thread simon
what you think about the app. Regards, 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-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@goog

Re: Introducing ImageFlow for Django (Django-ImageFlow)

2010-06-09 Thread simon
> Is their an option of positioning the Captions associated with the images? The captions for the images are positioned below the image by default. To change this, you would have to dive into the javascript in /static/ css/imageflow.jss. Search for captionDiv. The JS between lines 218 =and 280 ba

Re: Introducing ImageFlow for Django (Django-ImageFlow)

2010-06-14 Thread simon
On Jun 11, 4:26 pm, backdoc wrote: > The examples are pretty slick. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to dj

a bug (i think) with dynamic inlines and ManyToMany relationships

2010-03-13 Thread Simon
ile a bug report, I wanted to check here if it's a known issue. If anyone has any input I'll be very grateful to hear it. Thanks! Simon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Receiving an XML from client and parsing into django db

2007-11-22 Thread Simon
ld take in the xml file through stdin, but since I don't know much about django and would like to use it for its database capabilities I was wondering if this would even be possible? Thanks for all the help. -Simon --~--~-~--~~~---~--~~ You received this message

Re: Receiving an XML from client and parsing into django db

2007-11-22 Thread Simon
Thank you for the quick reply DR. I'll look into it. --~--~-~--~~~---~--~~ 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 gr

Django Unit Tests Missing Database Columns

2012-07-16 Thread Simon
I created a unit test on Django to create a user account and send a verification e-mail. The user is created, but the e-mail fails to send. The e-mail's default contents are supposed to be created as a field in the user when a user is created, but for some reason, Django is claiming - Databas

How to handle exceptions in middleware?

2013-08-22 Thread Simon
Hi, I've got a webservice built on top Django which requires that every request (except authentication) include an auth token. I've implemented this restriction as Middleware... def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(view_func, 'NoAuthenticati

user and perms context variables from auth context processor (in Django 1.2.3)

2011-04-29 Thread simon
Hello, I am using Django 1.2.3. I was trying to check user permissions on a certain model using the perms context variable from contrib.auth.context_processors.auth. As per the documentation, I tried this (foo is the app label, Bar is the model, and I'm using default permissions): {% if perms.foo

Problem with FileField (file upload) and generic views

2011-03-10 Thread Simon
eld. I'm not sure if I've missed something obvious. Searching around turns up an old bug which gives the same problem but was fixed years ago. Any suggestions would be appreciated, TIA. -- Simon -- You received this message because you are subscribed to the Google Groups "Dja

Re: Problem with FileField (file upload) and generic views

2011-03-10 Thread Simon
Spot on. Thanks. -- 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 group, send email to django-users+unsubscr...@googlegroups.com

Django 1.8.2 - handler404 and handler500 refusing to work

2015-06-30 Thread simon
Good afternoon all, Perhaps someone can give me a pointer here: I'm an old hand at Django (1.0 to 1.6) but now in 1.8.2, the documented process of writing and attaching custom handlers for '404' and '500' appears to have stopped working. As per the dox, I have added into my ROOT url file, the

Re: Execute a java program

2008-10-30 Thread Simon Brunning
module to call the JVM, just as you would from the command line, or you might perhaps take a look at <http://jpype.sourceforge.net/> or <http://jpe.sourceforge.net/>. -- Cheers, Simon B. [EMAIL PROTECTED] http://www.brunningonline.net/simon/blog/ --~--~-~--~~~

List a model fields

2008-12-15 Thread JF Simon
Hello, i'm new with python (and french so my english may seem very poor, sorry about that). I would like to list a model's fields and return a dict, here is the example : I have a model class with : meta_title : CharField(...) meta_description : CharField(...) body_header_title : CharField(...)

Re: List a model fields

2008-12-16 Thread JF Simon
thanks dude. any idea to split the dict on the _ char ? recursive function ? --~--~-~--~~~---~--~~ 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

ANN: dmigrations, a new migrations system for Django

2008-09-03 Thread Simon Willison
I've written more about the release here: http://simonwillison.net/2008/Sep/3/dmigrations/ The project (including documentation and a tutorial) is here: http://code.google.com/p/dmigrations/ I'll be discussing the project on the schema migration panel at DjangoCon this weekend.

Re: Restrict users to their own data

2008-09-11 Thread Simon Willison
return False return obj.user == request.user def has_delete_permission(self, ...) # similar Cheers, Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" g

Re: Displaying ManyToMany relations in Admin

2008-09-19 Thread Simon Willison
On Sep 19, 10:24 am, "Nick Sandford" <[EMAIL PROTECTED]> wrote: > Is there some kind of limit the admin imposes on the number of items > it will show in a or the horizontal filter list? If so, can I > change it? Also, is there any better way to do this? raw_id_fields is the admin option you need

Cannot assign "": "Character.user_profile" must be a "UserProfile" instance.

2008-09-23 Thread Simon Forman
profile, ... where class Character(Model): user_profile = ForeignKey(UserProfile, related_name='characters') ... I get a ValueError: Cannot assign "": "Character.user_profile" must be a "UserProfile" instance. The user is logged in, and has

Re: Cannot assign "": "Character.user_profile" must be a "UserProfile" instance.

2008-09-23 Thread Simon Forman
profile = user.get_profile() D'oh, got it. ~Simon On Sep 23, 2:47 pm, Simon Forman <[EMAIL PROTECTED]> wrote: > I'm getting an error I can't figure out. > > I have a "UserProfile" class that is the AUTH_PROFILE_MODULE setting, > but then when I

Re: Cannot assign "": "Character.user_profile" must be a "UserProfile" instance.

2008-09-23 Thread Simon Forman
Thanks Karen, I must have gotten it just as you posted your reply, Thanks anyhow, ~Simon On Sep 23, 2:59 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 5:47 PM, Simon Forman <[EMAIL PROTECTED]> wrote: > > > I'm getting an e

Re: Traceback in the ``runserver`` console

2009-01-18 Thread Simon Forman
look at the code, and it appears you > are correct. ``--traceback`` exists as a top-level command option, but > it doesn't appear to be exploited at all inrunserver. This actually > surprised me - it seems like a reasonable suggestion for an > impr

Re: object_detail 404 (queryset outdated?)

2009-02-02 Thread Simon Westphahl
x27;m using a queryset filtered with a callable (datetime.now) which appears to be set only once/on load time?! Does anyone no a way to work around this? Regards, Simon On Feb 2, 9:21 am, Simon Westphahl wrote: > Hi, > > I'm getting the following 404 when accessing an

object_detail 404 (queryset outdated?)

2009-02-02 Thread Simon Westphahl
the 'service_detail' dict passed to the 'object_list' generic view? It seems as if the the queryset is outdated and only evaluated once? Thanks in advance! Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

object_detail 404 (queryset outdated?)

2009-02-02 Thread Simon Westphahl
the 'service_detail' dict passed to the 'object_list' generic view? It seems as if the the queryset is outdated and only evaluated once? Thanks in advance! Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: object_detail 404 (queryset outdated?)

2009-02-02 Thread Simon Westphahl
I finally got it to work! I wrapped the object_detail view with a view that calls the manager method as suggested by Carl. Thank you! On 2 Feb., 16:38, Carl Meyer wrote: > I think you've got the right idea of what's going wrong, but you're > looking for the problem in the wrong place.  This met

Re: object_detail 404 (queryset outdated?)

2009-02-02 Thread Simon Westphahl
ic view seems to to some kind of caching. This behavior can be prevented by wrapping the generic view: ### def object_detail(request): return django.views.generic.list_detail.object_detail( request, queryset = Service.valid_objects.all() ) ### It seems to me as if there is some m

Re: how to use django-profiles?

2009-03-13 Thread Simon Greenwood
That's correct, it has to be the name of the profile model as written in app/models.py. s/ On Mar 11, 5:25 am, Micah Ransdell wrote: > Viktor, > > Try capitalizing UserProfile so that it is 'membership.UserProfile' instead > of all lowercase. That has worked for me in the past. > > Micah > > On

Re: django-profile instance data on custom form

2009-03-13 Thread Simon Greenwood
On Mar 12, 3:11 pm, simong wrote: > I'm creating a profile form that includes first_name and last_name > fields that write to the User model  and additional fields that write > to my user profile model derived from Alex S's post > here:http://groups.google.com/group/django-users/msg/00e49ca16c

Admin dashboard : hide and merge modules

2009-08-17 Thread JF Simon
Hi men, I'm using Django + Grappelli and I'd like to know if there is a simple way to make some improvements to the dashboard (index) of the admin such as : - hide modules (like Django_Evolution) - merge modules (Auth entries with my User module) - rename existing modules (not for now, just to k

Re: Admin dashboard : hide and merge modules

2009-08-17 Thread JF Simon
Thanks, I don't though about users perms ! Grappelli just turn your admin more pretty, you should try: http://code.google.com/p/django-grappelli/ ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Error in setting up psycopg2

2009-08-18 Thread Simon Lee
0.0.1] File "/Users/ myname/mysite3/django/contrib/sessions/middleware.py", line 9, in process_request [Wed Aug 19 11:00:26 2009] [error] [client 127.0.0.1] ImportError: No module named db -- I tried everything that I found on the web but nothing seems to work. Any sugges

Re: Error in setting up psycopg2

2009-08-19 Thread Simon Lee
n2.6/lib-dynload', '/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/site-packages', '/Users/ myname', '/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/site-packages/django', '/Library/Frameworks/Python.framework/ Versions/2.6/lib/pyt

Re: Error in setting up psycopg2

2009-08-20 Thread Simon Lee
tz.py is in the directory: "'/Library/Frameworks/Python.framework/ Versions/2.6/lib/python2.6/site-packages/psycopg2" which is in the sys.path list. Why does the import still fail? Please advise. Simon On Aug 20, 4:37 pm, Thomas Guettler wrote: > The important part: cannot im

Re: Error in setting up psycopg2

2009-08-21 Thread Simon Lee
d "su - 70". It asked for the password. I entered my root password, that's the only password that I set before and the only password I know. But it said the password is wrong. I cannot go any further as your advised. What should I do? I am not too familiar with using Linux. Please help

Re: Error in setting up psycopg2

2009-08-21 Thread Simon Lee
I entered my root password (the only password that I know) and it complained that the password is wrong. Please advise. Simon On Aug 22, 2:30 am, Randy Barlow wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Simon Lee declared: > > > Hi Thomas, > > > O

Re: Error in setting up psycopg2

2009-08-25 Thread Simon Lee
quot; % ENVIRONMENT_VARIABLE)ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. I searched "/Users/myname/mysite3/settings.py" for the variable SESSION_ENGINE but it is not defined in that file. I don't know where settings.S

Re: Error in setting up psycopg2

2009-08-25 Thread Simon Lee
not found: _PQbackendPID [Tue Aug 25 19:12:24 2009] [error] [client 127.0.0.1] Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packages/psycopg2/_psycopg.so [Tue Aug 25 19:12:24 2009] [error] [client 127.0.0.1] Expected in: dynamic lookup [Tue Aug 25 19:12

Re: Is valid {% ifequal model.name "Mymodelname" %}??

2009-09-02 Thread JF Simon
Be more specific, is model in the context ? is name a property of model ? On 2 sep, 17:44, Sandra Django wrote: > Hi friends, Can I do a condition depending on my model name? For example, I > did that: > {% ifequal model.name "Mymodelname" %} >      do something > {% endifequal %} > > But don't

Django admin templates not loading

2009-09-09 Thread Simon Lee
velopment server is not running and I typed in http://localhost/myapp/admin, it prompt me the login page but without all the styling as before. I can login and go to the admin dashboard page but again the display is not with the django admin template. I try leaving the TEMPLATE_DIRS in the settin

Re: Django admin templates not loading

2009-09-11 Thread Simon Lee
them in /Users/my_name/??? How should I set the permission of the files/ directories under the production sites' directories? Should I set the user/group to be apache, root, or just under my_name? Please advise. Simon On Sep 9, 7:52 pm, Karen Tracey wrote: > On Wed, Sep 9, 2009 at 7:23 A

Re: fail_message 'changed' when updating form

2009-04-03 Thread Simon Greenwood
On Apr 3, 4:05 pm, Ayaz Ahmed Khan wrote: > On 03-Apr-09, at 7:43 PM, simong wrote: > > >   if request.method == 'POST': > >       productform = ProductForm(request.POST, instance=product) > >       productform.user = user > >       if productform.is_valid: > > `is_valid` is a method bound to t

Re: fail_message 'changed' when updating form

2009-04-03 Thread Simon Greenwood
On Apr 3, 5:42 pm, Karen Tracey wrote: > On Fri, Apr 3, 2009 at 12:07 PM, Simon Greenwood wrote: > > > > > > > On Apr 3, 4:05 pm, Ayaz Ahmed Khan wrote: > > > On 03-Apr-09, at 7:43 PM, simong wrote: > > > > >   if request.method == 'POST&#

Re: Passing a dynamic ChoiceField response to a ForeignKey instance

2009-05-18 Thread Simon Greenwood
me int) and where > should I be converting it? In validation, in the pre-save signal, in > the save signal? Or should I be trying to convert it on the form > itself? Where is the ForeignKey instance save process documented? > To bump this and to add more detail: now, when I attempt to s

Re: Passing a dynamic ChoiceField response to a ForeignKey instance

2009-05-18 Thread Simon Greenwood
On May 18, 12:02 pm, Simon Greenwood wrote: > On May 15, 5:58 pm, simong wrote: > > > > > There's probably a very simple answer to this but I can't see it at > > the moment: > > > This model: > > > class Product(models.Model): >

Re: Passing a dynamic ChoiceField response to a ForeignKey instance

2009-05-19 Thread Simon Greenwood
On May 18, 3:32 pm, Simon Greenwood wrote: > On May 18, 12:02 pm, Simon Greenwood wrote: > > > > > On May 15, 5:58 pm, simong wrote: > > > > There's probably a very simple answer to this but I can't see it at > > > the moment: >

setting choices on choice field dynamically according to objects current state

2009-05-25 Thread Simon Davies
', 'Confirmed')) elif self.fields['STATUS'] == 'R': self.fields['STATUS'] = (('N', 'Cancelled'), ('C', 'Confirmed')) return self Thanks Simon --~--~-~--~

Re: setting choices on choice field dynamically according to objects current state

2009-05-27 Thread Simon Davies
Thanks v What you said echoes what I found on a posting on djangosnippet.org about populating the choices in the init field. It works fine now. On May 26, 9:30 am, V wrote: > On May 25, 1:27 pm, Simon Davies wrote: > > > > > I have a choices field called status in my model

Re: URL rewriting Middleware

2009-06-14 Thread JF Simon
OK, I found, I have to write the path in request.path_info !!! It works ! --~--~-~--~~~---~--~~ 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 uns

MultiWidget fail to render without exception

2009-09-23 Thread JF Simon
Hi there ! I try to understand why my form doesn't render anything. No exception is raised and i'm going crazy ! In my forms.py I got these (simplified for instance) classes : class SignupPasswordWidget(forms.MultiWidget): def __init__(self, attrs=None): widgets = ( form

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Don't you find my problem really funny ? --~--~-~--~~~---~--~~ 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 em

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Ouh thanks ... because of the TEMPLATE_DEBUG setting, I though exceptions within templates were raised ... my sentence seems weird. Ill try that tonight. Thanks again. JF On 24 sep, 14:42, Karen Tracey wrote: > On Thu, Sep 24, 2009 at 2:49 AM, JF Simon wrote: > > > Hi there ! &g

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
I launched form.as_table() in my terminal and the traceback is : File "", line 1, in ? File "/usr/lib/python2.4/site-packages/django/forms/forms.py", line 190, in as_table return self._html_output(u'%(label)s%(errors)s% (field)s%(help_text)s', u'%s', '', u'%s', False) File "/usr/lib/pyt

Re: MultiWidget fail to render without exception

2009-09-24 Thread JF Simon
Ah I found something ... In my forms.MultiWidget subclass, "decompress" method was returning None and not a couple of values ! I just done that : def decompress(self, value): if value is None: return (None, None) return value I don't know if it's the best way, bu

Cannot build psycopg2 in x86_64

2009-09-28 Thread Simon Lee
hat can I do to build x86_64 for psycopg2? I am using the Apache that comes with Apple (I think it is in 64 bit). I am also using the python2.5 that comes with Leopard. The PostgreSQL was downloaded from www.postgresql.org under the Binary Packages for Mac OSX. Any advise is greatly appreciated.

Models in a package & syncdb

2009-10-05 Thread JF Simon
Hi, I tried in vain to make it work !!! I've got some models modules in a pckage named "models" in my app, I tried these 2 solutions (who are mostly the sames) : - http://www.acooke.org/cute/UsingaDire0.html - http://www.ifisgeek.com/2009/01/26/splitting-django-models-into-separate-files/ So: -

Re: Models in a package & syncdb

2009-10-05 Thread JF Simon
I made some tests, it seems that imports don't work. In th __init__ I tried: from project.app.models.module import Class ... and Class is not imported Is the project package in the python's path as call manage.py syncdb ? GRRR On 5 oct, 17:24, JF Simon wrote: > Hi, > >

Re: Models in a package & syncdb

2009-10-05 Thread JF Simon
Ooops, it's me ... these tricks work perfectly, sorry ! On 5 oct, 17:37, JF Simon wrote: > I made some tests, it seems that imports don't work. > > In th __init__ I tried: > from project.app.models.module import Class > ... and Class is not imported > > Is the

Re: Admin dashboard : hide and merge modules

2009-10-09 Thread JF Simon
A great new feature. It's exactly what I need, thanks !! On 20 sep, 09:37, patrickk wrote: > you can now use GrappelliSite instead of AdminSite which gives you > some options for the admin index page. take a look > athttp://code.google.com/p/django-grappelli/wiki/customizingindexfor > more inf

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
2009/12/15 'chiru'tha : > hi.. > I'm new to Django, i need it in my project applications, can any one > guide me to create a new model project(using MySql database). plz give > the process in detail.. http://lmgtfy.com/?q=django+tutorial -- Cheers, Simon B. --

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
u tell us what went wrong? Perhaps we can help. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to djan

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
s to talk to MySql - see <http://bit.ly/7r0trL>. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this gro

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
2009/12/15 chiranjeevi muttoju : > i've downloaded the mysql connector "MySQL-python-1.2.3c1.tar.gz' > could u please tellme how to instal that in linux.. If you untar it, you should find installation instructions in the README. -- Cheers, Simon B. -- You received this me

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
2009/12/15 chiranjeevi muttoju : > hey i installed django on one machine, and sql in another machine.. in which > mechine i need to install the sql connector. The Django machine. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "D

Re: can any on help me how to create a sample model project.

2009-12-15 Thread Simon Brunning
2009/12/15 chiranjeevi muttoju : > ImportError: No module named setuptools Seems pretty self-evident to me. Try installing setuptools first. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

DKIM Email

2010-04-21 Thread Simon Meers
For anyone else who learned about DKIM recently [1], I've uploaded a snippet for a DKIM-signing email backend [2]. [1] http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html [2] http://www.djangosnippets.org/snippets/1995/ -- You received this message because

django forums with polling

2010-05-09 Thread Simon Davies
Are there any django forum applications available which come packaged with polling functionality? Cheers 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-us...@googlegroups.com. To u

Class in a Class

2010-06-02 Thread JF Simon
Hello, I'm lost in Python !! If I write this class Dated(Behavior): created_on = models.DateTimeField(_('Created on')) updated_on = models.DateTimeField(_('Updated on')) class Events: def __init__(self): super(Events, self).__init__() I get an error :

Re: Class in a Class

2010-06-02 Thread JF Simon
OK, Events is not in the 'global' scope ! Thanks (i'm tired) On 3 juin, 07:18, Daemoneye wrote: > class A: >         class B: >                 pass > a=A() > B=A.B() > you should add A. to control the class B > ÔÚ Thu, 03 Jun 2010 12:50:06 +0800£¬JF Simon Ð

Django, Caching and PostgreSQL replication

2010-06-10 Thread Simon Riggs
online at http://www.char10.org/ Please register in next two weeks to avoid late booking fees. See you there! -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Training and Services -- You received this message because you are subscribed to the Google Groups

Re: Force ContentType id

2010-06-22 Thread Simon Brunning
t;http://south.aeracode.org/>. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@g

Re: not able to install django development version

2010-06-22 Thread Simon Brunning
On 22 June 2010 12:33, samie wrote: > sir i am not able to install django development version on my machine > i am using vista 32 basic.. > > problem is occurring during svn checkout command,, And the problem is? -- Cheers, Simon B. -- You received this message because you are s

Problem with L10N of DecimalField

2010-07-03 Thread Simon Westphahl
its=8, decimal_places=2) admin.site.register(DecTest) ### Thanks in advance! Regards 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-us...@googlegroups.com. To unsubscrib

Re: Problem with L10N of DecimalField

2010-07-04 Thread Simon Westphahl
For clarification: The output in the admin list view is properly localized. Only the input doesn't work. I'm using Django 1.2.1 and a almost vanilla Django project only with this one test app installed. On 3 Jul., 22:07, Simon Westphahl wrote: > Hi, > > I tried to im

Re: Problem with L10N of DecimalField

2010-07-04 Thread Simon Westphahl
= DecTest class DecAdmin(admin.ModelAdmin): form = LocalDecForm list_display = ('dec',) [...] ### But is this realy the way it's meant to work? A "DateTimeField" is localized by default ... On 4 Jul., 11:03, Simon Westphahl wrote: > For clarification: The outp

Re: Problem with L10N of DecimalField

2010-07-05 Thread Simon Westphahl
DateTimeField is localized by default and the DecimalField is not. Regards Simon On 5 Jul., 19:33, saboter wrote: > I have mixed models with admin in my example. Sorry. > > It should be like this: > > ### models.py > [...] > class JobForm(ModelForm): >     def __init

Re: Problem with L10N of DecimalField

2010-07-06 Thread Simon Westphahl
I'm using Django 1.2.1 and it doesn't work any longer ;) Just switched back to Django 1.2 and it works. But I think that's not a solution. Regards Simon On 6 Jul., 15:21, saboter wrote: > I used the workaround in project that runs under django 1.2 and it > looks goo

Re: Database systems

2010-07-16 Thread Simon Riggs
On Fri, 2010-07-16 at 20:33 +0530, Venkatraman S wrote: > I thought South was DB agnostic. It is, but databases provide different feature sets. If databases were all the same there would not be so many to choose from. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Development, 2

Re: GAE + Django Authentication

2010-07-20 Thread Simon Holness
2nd Vote for Nonrel http://www.allbuttonspressed.com/projects/django-nonrel If you'd prefer not to use that, there's also Google's App Engine Helper for Django - http://code.google.com/p/google-app-engine-django/ http://code.google.com/appengine/articles/appengine_helper_for_django.html But unlik

Re: Newbie Question: Syntax Error - Form Class, trying to set e-mail field to required=False

2010-07-22 Thread Simon Holness
"e-mail" can't have a hyphen in it. Python thinks you're "assigning" to the operation e - mail just type into a shell to see. e-mail = "blah" SyntaxError: can't assign to operator rename to e_mail or email or something and you should be good to go On 22 July 2010 06:10, strayhand wrote: > I ap

Re: NotImplementedException when trying to log user in after registration

2010-07-23 Thread Simon Holness
Your authentication has failed somehow and authenticate() has returned an AnonymousUser object. calling .save() on this raises the exception (code = http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py#L399 ) On 22 July 2010 23:33, Jeff wrote: > Hi, > > I get a Not

Re: csv files

2010-08-18 Thread Simon Brunning
are un-ordered data structures. If you iterate over the items in a dictionary, you'll see its entries in an arbitrary order. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: writing HTML Code into Template with render_to_response: How?

2010-08-25 Thread Simon Holness
Use the "safe" filter to disable the auto-escaping that templates apply to all variables: http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#safe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

How to find what is the current module directory?

2010-12-05 Thread Simon TITE
"/apps/frontend/modules/homepage/". Can anybody help? -- Simon Tite -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email

Re: How to find what is the current module directory?

2010-12-05 Thread Simon TITE
Ouch, many apologies, I sent the last message to the wrong mailing list! Can an admin delete it please? -- Simon Tite -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegrou

unicode encoding problem

2010-01-03 Thread Simon Davies
I know I'm missing something really simple really but I keep getting this error: SyntaxError: Non-ASCII character '\xc2' in file /home/simon/ djangoprojects/bikerescue/bikeshop/models.py on line 46, but no encoding declared; see http://www.python.org/peps/pep-0263.html for detail

Re: Saving several copies of an object

2010-01-06 Thread Simon Brunning
or, bin versus trash can), spelling (e.g. colour versus color), punctuation (e.g. with the placement on puctuation in relation to quote marks), and occasionally even grammar ("my bank are dreadful" versus "my bank is dreadful"). -- Cheers, Simon B. -- You received this message

Re: decimal is not json serializable.

2010-01-14 Thread Simon Brunning
obj, decimal.Decimal): return "%s" % obj return super(MyJsonEncoder, self).default(self, obj) The simplejson.dumps() method takes an optional cls keyword argument - that's where you plug MyJsonEncoder in. -- Cheers, Simon B. -- You received this message because y

Re: TypeError: 'float' object is not iterable

2010-01-20 Thread Simon Brunning
ng django to do too much?? Looks to me like prices_demand.items is a dictionary, but whatever is in states.1.items.6.1 is *not* a dictionary - it's a float, and there's no sensible way to do a for loop over a float. -- Cheers, Simon B. -- You received this message because you are s

now template tag

2010-01-26 Thread Simon Davies
u'm', 28)' and keyword arguments '{}' not found. Is there any way of using the current date without passing in an additional variable from the view. As its the default django.views.generic.date_based.py, this would be rather difficult. Regards SImon -- You received this

model design and derived classes - need advice please?

2010-02-02 Thread Simon Davies
ems.all(): b = UsedBike.objects.all().filter(id=elem.id) or is there a neater way of doing this. Cheers 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-us...@googlegroups.com. To un

Re: any suggestion about how to build Continuous testing for django project?

2010-02-02 Thread Simon Brunning
ing this approach a try myself over the next few days. -- Cheers, Simon B. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, sen

Additional fields not registered when subclassing Forms imported from other applications?

2010-02-09 Thread Simon Meers
d class MyForm2(TestForm2): extra_field = forms.BooleanField() print MyForm2().fields.keys() # prints: ['test_field'] # extra fields not registered if superclass imported from other app/module! # Python 2.6.4, Django

weird problem with django admin models and webfaction

2010-02-22 Thread Simon Davies
he webfaction server somehow, everything still works fine locally, so I'm puzzled. Could it be some kind of cache issue?, but surely anything would have been deleted when I trashed the database. Puzzled!!! Thx in advance Simon -- You received this message because you are subscribed to the G

Re: weird problem with django admin models and webfaction

2010-02-22 Thread Simon Davies
Duh!! yeah restarting apache did it. How did I forget something so simple!! Thanks Simon On 22 Feb, 15:04, Shawn Milochik wrote: > Did you manually restart the Apache instance for this app? > > I had a similar problem, and it turned out that I had a bit of code in one of > my mo

dynamically excluding fields in admin form

2010-02-28 Thread Simon Davies
rderForm(ModelForm): class Meta: model = StockOrder exclude = ('cancelled',) However I run into the same problem as in 1, how can I manipulate the exclude parameter. Is it possible to do so in __init__? Thanks Simon -- You received this message because you are subscribed

  1   2   3   4   5   6   7   8   >