including emotion images using tinyMCE

2010-12-18 Thread fei
Just setup my django project to use tinyMCE (version 3.3.9.2). Everything works fine except the emotion plugin (smily faces). When a smily is inserted, tinyMCE insert an image using relative paths. An example is shown here, The problem is this relative path cannot be recognised by django when vi

Location based site

2010-12-18 Thread truckGuy
I have a django based web site. The current url is something like http://www.mysite.com/catalog/xxx. Now I want to customize the store based on customer location, so the url will look someting like http://www.mysite.com/chicago/catalog/xxx. I can use urlpatterns = patterns('', (r'^(?P\w

looking for python or django SQL data editor

2010-12-18 Thread Len Conrad
phpmyadmin and other such mysql db design/maintain tools do too much, too complicated. I'm looking for a python or django web app that allows non-tech users to add/delete/search records. thanks Len -- You received this message because you are subscribed to the Google Groups "Django users"

Re: How to get a web development job (i.e. Django/Python) if someone is an amateur programmer?

2010-12-18 Thread Rainy
In addition to what other mentioned, I recommend looking daily at sites like elance and rentacoder and making small apps / scripts for practice, even if you can't make a bid. This will be very useful because: 1. you'll have a good idea on what people are paying for, 2. you'll accumulate your own c

Re: possible bug in joining on a geo field

2010-12-18 Thread felix
I have discovered the exact same issue. class Apt(Model): geo = models.PointField(srid=4326,editable=False,default=Point(0,0)) bldg = models.ForeignKey(Bldg,null=True) class AptStatus(Model): apt = models.ForeignKey(Apt) class DP_5cbc61d6(Model): apt = models.Fo

Re: registering app level signal handlers

2010-12-18 Thread Russell Keith-Magee
On Sun, Dec 19, 2010 at 5:55 AM, dmitry b wrote: > On Dec 18, 1:44 am, Łukasz Rekucki wrote: >>[...]The problem with putting signal handlers >> in __init__, is that it isn't the place you would really expect Model >> related code to live (like post_save). It can also lead to non-obvious >> cyclic

Re: registering app level signal handlers

2010-12-18 Thread dmitry b
On Dec 18, 1:44 am, Łukasz Rekucki wrote: >[...]The problem with putting signal handlers > in __init__, is that it isn't the place you would really expect Model > related code to live (like post_save). It can also lead to non-obvious > cyclic imports, 'cause your handler code will most likely need

urls.py independient from application path

2010-12-18 Thread JMVmedia.es
In the urls.py of one application i decided to use this idea. import os APP_DIR = os.path.dirname(os.path.abspath(__file__)) APP_NAME = os.basemane(APP_PATH) I'm not sure about the performance implications of using this os import here. ¿Do you use any similar idea to make applications movab

Re: VirtualHost and external IP

2010-12-18 Thread andy
Thanks Craig, and yes it's for my personal network and not any company. On Dec 18, 6:50 am, "W. Craig Trader" wrote: > Andy ... > > Really hard to answer this without any knowledge of your network > architecture.  Presumably you have some sort of firewall/router/NAT between > the Internet and you

Re: VirtualHost and external IP

2010-12-18 Thread andy
Thanks Craig, and yes it's for my personal network and not any company. On Dec 18, 6:50 am, "W. Craig Trader" wrote: > Andy ... > > Really hard to answer this without any knowledge of your network > architecture.  Presumably you have some sort of firewall/router/NAT between > the Internet and you

Re: Order a QuerySet by Method

2010-12-18 Thread josch
Another Question: How can I filter such an object list? -- 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: ZSI WEB SERVICE

2010-12-18 Thread sami nathan
"""__init__() must be called with TypeCode instance as first argument (got String instance instead) """what this error says when i overriden the ZSI server file (generated using wsdl2py in ZSI) i got this error is there any one to say what this error says I am trying to act as server --

Re: get request from an java API to DJango

2010-12-18 Thread sami nathan
But i should act as an server will suds allow that? -- 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...@googl

why will HttpResponseRedirect prevent re submit of form?

2010-12-18 Thread Mingming Wang
>From the tutorial of Django, there is the following code in >here Who knows the mechanism behind a redirect or a direct response? Refer the comments below. Thanks a lot! from django

Re: What's a good site to solicit project bids

2010-12-18 Thread delegbede
Try freelancer.com Sent from my BlackBerry wireless device from MTN -Original Message- From: mehma sarja Sender: django-users@googlegroups.com Date: Sat, 18 Dec 2010 10:37:59 To: Reply-To: django-users@googlegroups.com Subject: What's a good site to solicit project bids I have a proje

What's a good site to solicit project bids

2010-12-18 Thread mehma sarja
I have a project which needs developer/s. I have not had good luck with djangogigs, is there any other place I can post to solicit offers? Does anyone have experience with rent-a-coder type places? I do have a requirements document. Mehma -- You received this message because you are subscribed t

Re: get request from an java API to DJango

2010-12-18 Thread sami nathan
thanks for notification.Please guide me through a source to get a grasp of suds and continue working.Suggest me a point to startwith.To be honest i am completely new to this. Regards, Sami -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Django training resources?

2010-12-18 Thread Bjørn Høj Jakobsen
I can advice you on a book "The defenitive guide to Django" from Apress. Regards Bjørn On 18 Dec., 00:12, Sean W wrote: > Is anyone aware of good quality, affordable training for Django?  I'm > entirely new to web development, although I do have some experience with > Python. I'm also a college

Re: JavaScript src files not found.

2010-12-18 Thread Bjørn Høj Jakobsen
They should be put in your "static" path. Regards Bjørn On 17 Dec., 15:53, Robert Steckroth wrote: > Hey coders, Where would stuff like .js src files go in a Django powered > Website? > ERROR -->  09:20:08.016: Network: > GEThttp://localhost:8000/users/PBUi/mouse.js[HTTP/1.0 404 NOT FOUND 30ms

Re: get request from an java API to DJango

2010-12-18 Thread Bjørn Høj Jakobsen
I would advice you to use the "suds" to create the soap (I presume) client. I spent a lot of time trying to get the ZSI to work but got stuck on "None-types". Otherwise it is straight forward. Regards Bjørn On 17 Dec., 19:32, sami nathan wrote: > THANKS FOR NOTIFICATION >              Hi i am

Planning model for a survey application

2010-12-18 Thread JMVmedia.es
Hi all, I'm planning how to design a model to be used in a survey application. The casic idea is to have some surveys made of questions. I'm not sure about the best choice betweem: a) define Survey class with no foreign key in it and define Question class with a ManyToManyField pointing to Survey

Re: Authenticate every def in views.py

2010-12-18 Thread Piotr Zalewa
I remember using a middleware with an exception list. (more than a year ago) On 10-12-18 05:35, Łukasz Rekucki wrote: On 18 December 2010 13:48, James Bennett wrote: On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: I've added a decorator to *each* def in views.py to require authentication.

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 13:48, James Bennett wrote: > On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: >> I've added a decorator to *each* def in views.py to require >> authentication. Is there a simpler way that allows me to apply >> authentication automatically to every def in the file? > > 1. Wr

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 12:24, Jonas H. wrote: > On 12/18/2010 10:30 AM, Łukasz Rekucki wrote: >> >> On 18 December 2010 03:43, suckerfish  wrote: >>> >>> Hi guys >>> >>> I've added a decorator to *each* def in views.py to require >>> authentication. Is there a simpler way that allows me to apply >>>

Re: Authenticate every def in views.py

2010-12-18 Thread James Bennett
On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: > I've added a decorator to *each* def in views.py to require > authentication. Is there a simpler way that allows me to apply > authentication automatically to every def in the file? 1. Write a middleware which will force authentication on all y

Re: Django vs Postgres Connection

2010-12-18 Thread armandoperico
Yes! you were right, but i also had to add os.environ['PGPASSFILE']='/home/ ap2/.pgpass to my wsgi file. Thank you very much "PROBLEM SOLVED" On Dec 18, 4:54 am, CLIFFORD ILKAY wrote: > On 12/17/2010 03:49 PM, armandoperico wrote: > > > > > > > > > > > on settings.py.. > > > DATABASES = { > >

Re: Django vs Postgres Connection

2010-12-18 Thread armandoperico
Yes! now it worked, but i also had to remove the HOST and the PORT value from the settings.py (suggested by CLIFFORD). Otherwise it was randomly rendering or given another strange error. like this though if running fine! Thank you very much! On Dec 18, 12:30 am, Anurag Chourasia wrote: > Hi Arma

Re: VirtualHost and external IP

2010-12-18 Thread W. Craig Trader
Andy ... Really hard to answer this without any knowledge of your network architecture. Presumably you have some sort of firewall/router/NAT between the Internet and your server. If you were working in a company with an IT department, you'd have asked them, not us, right? So, assuming a SOHO se

Re: ZSI WEB SERVICE

2010-12-18 Thread Jonas H.
On 12/18/2010 10:59 AM, sami nathan wrote: __init__() must be called with TypeCode instance as first argument (got String instance instead) what this error says when i overriden the ZSI server file i got this error is there any one to say what this error says * Do not open a second thread with

Re: Authenticate every def in views.py

2010-12-18 Thread Jonas H.
On 12/18/2010 10:30 AM, Łukasz Rekucki wrote: On 18 December 2010 03:43, suckerfish wrote: Hi guys I've added a decorator to *each* def in views.py to require authentication. Is there a simpler way that allows me to apply authentication automatically to every def in the file? Depends on your

ZSI WEB SERVICE

2010-12-18 Thread sami nathan
__init__() must be called with TypeCode instance as first argument (got String instance instead) what this error says when i overriden the ZSI server file i got this error is there any one to say what this error says -- You received this message because you are subscribed to the Google Groups "D

Re: registering app level signal handlers

2010-12-18 Thread Łukasz Rekucki
Not every app needs/has urls.py to be included. "models.py" is imported Django's get_app(). So, something like admin.autodiscover() will also import your models. The problem with putting signal handlers in __init__, is that it isn't the place you would really expect Model related code to live (like

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 03:43, suckerfish wrote: > Hi guys > > I've added a decorator to *each* def in views.py to require > authentication. Is there a simpler way that allows me to apply > authentication automatically to every def in the file? Depends on your code editor ? -- Łukasz Rekucki -- Y