Re: Sample Django AppEngine App

2010-07-02 Thread Gath
Won't it be nice to start first by learning Django! From my experience Django was not build to run on top of AppEngine. There are alot of hacks on django to make run on AppEngine that might confuse a beginner, e.g Django was built to run on relational databases, while AppEngine applications run on

Sample Django AppEngine App

2010-07-02 Thread Mak
I am completely new to Django. I am wondering if there is a sample Django AppEngine application somewhere with explanation on how it is setup? -- 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...@goog

Re: Get an ordered queryset from a FK relation

2010-07-02 Thread Dennis Kaarsemaker
On vr, 2010-07-02 at 16:10 -0700, eka (Esteban) wrote: > I have an Entry model with a FK to User, what I want is to get a list > of Users ordered by its Entry quantity. Can I achieve that using > QuerySets? queryset.annotate(Count('entry')).order_by('entry__count') See http://docs.djangoproject.

Get an ordered queryset from a FK relation

2010-07-02 Thread eka (Esteban)
Hi all, I have an Entry model with a FK to User, what I want is to get a list of Users ordered by its Entry quantity. Can I achieve that using QuerySets? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Django Personalization and Preferences?

2010-07-02 Thread zweb
On my web pages I have labels for text fields. I want user to be able to personalize the labels. Example : default label: Employee, alternative is that user can choose and save- Associate or Staff Member as label to be shown on all screens. Approach I can think of: 1. When user logs in - gets

Re: drupal and django being friends

2010-07-02 Thread CLIFFORD ILKAY
On 07/02/2010 01:23 PM, garagefan wrote: thanks. so the simple answer is... "tough luck" perhaps i can set up the django app under a different domain name and merely set up domain masking. The answer isn't necessarily "tough luck". It *is* possible to use mod_python and mod_php on the same se

Re: drupal and django being friends

2010-07-02 Thread Bill Freeman
I suspect that you can do what you want with mod_rewrite, but there is a learning curve. Bill On Fri, Jul 2, 2010 at 11:39 AM, garagefan wrote: > So i realize this isn't a specific django question but more of a > python question and setting up the config file for the server. > > I know how to se

Re: www.djangoproject.com

2010-07-02 Thread Bill Freeman
What might be of help is adding the IP address to /etc/hosts, if you are on linux. There is a hosts file on Windows, but I'm no expert in Windows so I can't tell you where it is or any funky things about the format. That would let you try the site (just putting the IP address in the browser locat

RE: Re: drupal and django being friends

2010-07-02 Thread Henrik Genssen
you may try wsgi instead of mod_python... >reply to message: >date: 02.07.2010 12:23:26 >from: "garagefan" >to: "Django users" >subject: Re: drupal and django being friends > >thanks. so the simple answer is... "tough luck" > >perhaps i can set up the django app under a different domain name and

New Django tutorial

2010-07-02 Thread Rainy
Hi, I plan to make a bunch of Django tutorials and I just finished the first one: http://lightbird.net/dbe/ Please let me know how it can be improved and I'll incorporate suggestions into upcoming tutorials. Thanks! -ak -- You received this message because you are subscribed to the Google Group

Media files from PostgreSQL

2010-07-02 Thread Daniel Espinosa
Hi all, Does any one know how to serve files stored in a PostgreSQL database? I have a PHP application I want to migrate to Django, but I found it just serve files stored on the disk, but not as Large Binary Object of PostgreSQL, where they are stored by the PHP app. -- Trabajar, la mejor arma

Re: Admin interface for model with optional 'self' relationship

2010-07-02 Thread Jonathan Hayward
Thank you! Solved. On Mon, Jun 28, 2010 at 4:14 PM, Jeff Green wrote: > You need to also state that null=True. Also, you want to have ensure that > the field defined in your db > allows null values. > > On Mon, Jun 28, 2010 at 3:19 PM, Jonathan Hayward < > christos.jonathan.hayw...@gmail.com> wr

Re: Need Help Fixing my Custom Manager's Method

2010-07-02 Thread Daniel Roseman
On Jul 2, 6:53 pm, b14ck wrote: > Hi everyone. > > I'm working on a mid-sized web project, and have run into a bit of a > dead-end trying to figure out how to make my custom manager method > `for_user` return a a proper Django QuerySet. > > First off, here's my: myproject/partylines/models.py sour

Re: www.djangoproject.com

2010-07-02 Thread mhulse
> try rebooting, but there could be other DNS caches between you and a > good name server. If that's the case, would OpenDNS be of any help? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Need Help Fixing my Custom Manager's Method

2010-07-02 Thread b14ck
Hi everyone. I'm working on a mid-sized web project, and have run into a bit of a dead-end trying to figure out how to make my custom manager method `for_user` return a a proper Django QuerySet. First off, here's my: myproject/partylines/models.py source code which contains the problem that I'm t

Re: drupal and django being friends

2010-07-02 Thread garagefan
thanks. so the simple answer is... "tough luck" perhaps i can set up the django app under a different domain name and merely set up domain masking. On Jul 2, 1:15 pm, "Henrik Genssen" wrote: > Hi, > > be sure not to use mod_python and mod_php as stated > here:http://docs.djangoproject.com/en/de

RE: drupal and django being friends

2010-07-02 Thread Henrik Genssen
Hi, be sure not to use mod_python and mod_php as stated here: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/?from=olddocs >reply to message: >date: 02.07.2010 10:39:26 >from: "garagefan" >to: "Django users" >subject: drupal and django being friends > >So i realize this isn't

Re: django simple captcha issue

2010-07-02 Thread tsmets
No stack trace ... ? What parts are you using text-to-speech... ? How did you configure it ... ? On Jul 1, 9:52 pm, weiwei wrote: > Hi all, > > I am using django-simple-captcha, it works fine on my dev environment > (windows). But after i deployed to linux server, all other views/pages > are wo

Re: Managing the balance between SSL and impact on the server

2010-07-02 Thread tsmets
>From a deployment perspective, it is better to have "one" front-end server that has the site certificate. That server would then redirect the traffic to the the internal server, either in SSL (other encryption keys) or in plain HTTP. That SSL server needs to be pretty powerfull has it is the one

drupal and django being friends

2010-07-02 Thread garagefan
So i realize this isn't a specific django question but more of a python question and setting up the config file for the server. I know how to set up domains, and the handler and all that for a django site. But i've got a drupal site that i'm "attaching" a django gallery too... and in fact slowly

Re: Django for system administration apps

2010-07-02 Thread Dennis Kaarsemaker
On vr, 2010-07-02 at 07:08 -0700, PieterB wrote: > > On Jul 2, 3:57 pm, Dennis Kaarsemaker wrote: > > On vr, 2010-07-02 at 06:42 -0700, PieterB wrote: > > > puppet using django as well. > > Without going into detail, how have you made the coupling between the > two Servers are represented by a

Re: Django for system administration apps

2010-07-02 Thread PieterB
On Jul 2, 3:57 pm, Dennis Kaarsemaker wrote: > On vr, 2010-07-02 at 06:42 -0700, PieterB wrote: > puppet using django as well. Without going into detail, how have you made the coupling between the two > -- > Dennis K. > > They've gone to plaid! -- You received this message because you are s

Re: Django for system administration apps

2010-07-02 Thread Dennis Kaarsemaker
On vr, 2010-07-02 at 06:42 -0700, PieterB wrote: > How frequently is Django used to write system administration > applications? I don't know how often others do it, but we use it to manage hundreds of servers by having a central database with django frontend and integrating that with tools like k

Django for system administration apps

2010-07-02 Thread PieterB
How frequently is Django used to write system administration applications? I want to write django frontend's for some linux tools and scripts we use in the futures. Is django a good solution for this or should I use other techniques/ frameworks (zope, pylons...)? I also want to write an app queryi

Re: Newbie Q: Is there a way to prevent Django from creating fields w. 'Not Null' by default?

2010-07-02 Thread derek
On Jul 1, 10:16 pm, Barto wrote: > I've been following 'Writing Your First Django App. Pt. 1' > substituting my own object names in experiment. > > Noticed that when I told Django to create my tables, it did so giving > all (psycopg2/postgres) fields the 'notnull' setting. Easy to change > this vi

Re: recursive ordering self ForeignKey

2010-07-02 Thread alain31
MTT is exactly what I need. Just installed and works fine. 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 django-users+uns

Re: Looking for Django Developer(s) in Long Island for part time and full time

2010-07-02 Thread roberto
http://djangogigs.com http://djangozen.com http://python.org/community/jobs/ On Jul 1, 10:03 am, normlevy wrote: > Hello Django User group... > > I am looking on the site for how to post a job opening to your > community...and I apologize in advance if I am not doing the right. > > We are looking

Re: After sync signal?

2010-07-02 Thread felix
you might have already seen this ticket: http://code.djangoproject.com/ticket/7561 re: post-sync isn't actually post sync you could patch your deployed version of django of course I would just use a standalone script or command that you run after syncing. if you can On Jul 1, 5:34 pm, Jari

Re: recursive ordering self ForeignKey

2010-07-02 Thread Daniel Roseman
On Jul 2, 12:22 pm, alain31 wrote: > Hello, I have a category model with a self foreign key: > > class Category(models.Model): >     title = models.CharField(max_length=100) >     parent = models.ForeignKey('self', blank=True, null=True, > related_name = 'childs') >     def __unicode__(self): >  

Postgis : Distance lookup using ST_Distance_sphere

2010-07-02 Thread orgoz
Hi, This is my first message here, and I am sorry for my poor english... I am trying to excecute some distance lookup but I have a problem to use the ST_Distance_sphere postgis function. In Django documentation, I read this (http://docs.djangoproject.com/en/ dev/ref/contrib/gis/geoquerysets/#id7

Re: django simple captcha issue

2010-07-02 Thread martikk
Try to change PIL version On Jul 1, 10:52 pm, weiwei wrote: > Hi all, > > I am using django-simple-captcha, it works fine on my dev environment > (windows). But after i deployed to linux server, all other views/pages > are working fine. But  when i request  /captcha/image/{{imagekey}}/ i > got se

Re: /i18n/setlang/ broken?

2010-07-02 Thread tsmets
oups, I was not expected to copy past the whole file ... My problem is the following ... When people login I put in the session : lang = When I use set lang, django sets django_language = I now use "django_language" but ... is this the correct one to have the translation working automatically

recursive ordering self ForeignKey

2010-07-02 Thread alain31
Hello, I have a category model with a self foreign key: class Category(models.Model): title = models.CharField(max_length=100) parent = models.ForeignKey('self', blank=True, null=True, related_name = 'childs') def __unicode__(self): if not self.parent: return self.t

Re: Apache causes full path of django.wsgi path written into url?

2010-07-02 Thread ALJ
... actually ... it has to be the mod_rewrite that is causing the problem with mod_wsgi. But I don't get why. On Jul 2, 11:00 am, ALJ wrote: > I successfully set up a django site to redirect all non secure content > to https. However, I want to bring it back a little and only use https > for acco

Raw SQL queries and nested fields

2010-07-02 Thread pablo platt
Hi I have a Product model that holds info common to all product types. Product has a m2m categories field. SimpleProduct and BundleProduct extends Product (one2one relation). BundleProduct have a m2m products field (only SimpleProducts allowed). class Product(models.Model): > name=models.CharFi

Re: Managing the balance between SSL and impact on the server

2010-07-02 Thread steven314
> So I should be looking at SESSION_COOKIE_SECURE (http:// > docs.djangoproject.com/en/dev/topics/http/sessions/)? Cookies are passed along with the request, not in a separate connection. Therefore with browsers that support secure only cookies, setting SESSION_COOKIE_SECURE = True would require a

Apache causes full path of django.wsgi path written into url?

2010-07-02 Thread ALJ
I successfully set up a django site to redirect all non secure content to https. However, I want to bring it back a little and only use https for account details and admin ("/accounts" and "/admin"). I've set up a rewrite in apache for those areas and the redirect seems to be working, but it write

Re: Managing the balance between SSL and impact on the server

2010-07-02 Thread ALJ
... having looked through the django documentation, would I be right in thinking that the protocol is to have a secure login page where the session cookie is set, drop out of secure connection, but continue to pass cookies over the secure connection, leaving the pages themselves to be served over u