Re: location of sitemap files

2011-12-21 Thread kenneth gonsalves
On Wed, 2011-12-21 at 11:47 -0200, Andre Terra wrote: > I'm not sure I understand your question, but here's my attempt at an > answer. > > root directive in HttpCoreModule: > http://wiki.nginx.org/HttpCoreModule#root > Example nginx.conf: http://dpaste.com/hold/676259/ thanks - did it. I hope th

Re: forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Fantastic. Thanks Amao. 2011/12/22 Branton Davis > AmaoZhao's answer is probably the best. You can also try: > > class PostForm(forms.Form): > post = forms.CharField(label='', help_text=None, max_length=160, > widget=forms.Textarea(attrs={'rows':3, "cols":70,})) > > The auto

Re: forms.CharField() remove text

2011-12-21 Thread Branton Davis
AmaoZhao's answer is probably the best. You can also try: class PostForm(forms.Form): post = forms.CharField(label='', help_text=None, max_length=160, widget=forms.Textarea(attrs={'rows':3, "cols":70,})) The auto_id parameter only controls whether label tags and id attributes

Re: forms.CharField() remove text

2011-12-21 Thread AmaoZhao
? 2011?12?22? 06:04, Timothy Makobu ??: ow do I get rid of the "Post: The template render the form is {{field.label}} and {{field}}, you only need to display {{filed}}, for example: {% for field in form %} {{field}} {% endfor %} Hope this can help you. -- You received this message becaus

ModelChoiceField with multiple databases

2011-12-21 Thread Brian Craft
Is there an easy way to use a ModelChoiceField with multiple databases? The only thing I've seen that looks promising is overriding the form __init__ and setting the queryset for the field. Seems kinda clunky. -- You received this message because you are subscribed to the Google Groups "Django

forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Hi, I have this form: class PostForm(forms.Form): post = forms.CharField(label=None, help_text=None, max_length=160, widget=forms.Textarea(attrs={'rows':3, "cols":70,})) And the constructor looks like this: PostForm(auto_id=False) according to folks on the net, this should

Re: TemplateDoesNotExist at /search/

2011-12-21 Thread Tebogo Moloi
On Dec 21, 7:18 pm, Tom Evans wrote: > On Wed, Dec 21, 2011 at 5:04 PM, Tebogo Moloi wrote: > > Hi guys I am getting this error every time i submit the form, when the > > submit and the field is empty the error message appears, which > > indicates that django does see the templates which I have

Re: TemplateDoesNotExist at /search/

2011-12-21 Thread Tom Evans
On Wed, Dec 21, 2011 at 5:04 PM, Tebogo Moloi wrote: > Hi guys I am getting this error every time i submit the form, when the > submit and the field is empty the error message appears, which > indicates that django does see the templates which I have set in the > settings. > Are you trying to say

Re: Which IDE should I use for Django?

2011-12-21 Thread Sandro Dutra
I bought PyCharm at launch and I did not regret. Today all my Python work, not only Django, is made with PyCharm, I'm using 1.5.4 and when I can, I'll upgrade to version 2. PyCharm is payed, but if you'll work on a open source project, you can apply to a Open Source Project License: http://www.jet

TemplateDoesNotExist at /search/

2011-12-21 Thread Tebogo Moloi
Hi guys I am getting this error every time i submit the form, when the submit and the field is empty the error message appears, which indicates that django does see the templates which I have set in the settings. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/search/?q=Pro+.

Do not open any file from me that contains a pdf

2011-12-21 Thread Hani Musallam
My account was hacked. If you are not expecting a pdf from me, do not open the file. The email may have subject regarding a report of some kind. Please ignore. My apologies to all. Hani -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Get 500 error with Ajax on firebug

2011-12-21 Thread Mike Duke Hall
Tsung, what was the problem in your views.py? I am working on this same problem. Here is my views.py - @login_required def bookmark_save_page(request): ajax = 'ajax' in request.GET if request.method == '

Re: Anyone got time for a large scale project ?

2011-12-21 Thread JohnyB
I can only pay what I earn from my salary, so it can be either poor payed, or as earning after launching (trough ad commercials) On Dec 20, 11:55 pm, Robert Steckroth wrote: > Is this a paying project? I have a wide range of skills including Django. > > > > > > > > > > On Tue, Dec 20, 2011 at 3:1

Re: Which IDE should I use for Django?

2011-12-21 Thread Tom Evans
On Wed, Dec 21, 2011 at 1:59 PM, wrote: > Hi, > > Please stop posting +1 whatever mails. > This isn't a like/dislike contest mailing list and it doesn't bring any > value to the table. > If you have pros, cons or personal experience, share them. > TBH, I'm just happy it hasn't degraded into a On

Re: Which IDE should I use for Django?

2011-12-21 Thread Alen Mujezinovic
PyDev. You don't need to use Aptana to get PyDev. I dislike Aptana but really like PyDev. It's very feature rich and supports quite everything that I need * Syntax / Error highlighting * Virtual environments * Documentation * Autocompletion * Jump-to-file/definition If you do use PyDev, don't

Re: Coloring some particular lines in log files

2011-12-21 Thread Bill Freeman
So what is the nature of your problem? 1. That you don't know about regular expressions for detecting keywords in lines? (You might be able to just use the" in" operator on strings.) 2. That file (like object)s have a readline() method for processing a line at a time? 3. That you can't decide amon

Re: Which IDE should I use for Django?

2011-12-21 Thread xordoquy
Hi, Please stop posting +1 whatever mails. This isn't a like/dislike contest mailing list and it doesn't bring any value to the table. If you have pros, cons or personal experience, share them. Regards, Xavier. -- You received this message because you are subscribed to the Google Groups "Djan

Re: Which IDE should I use for Django?

2011-12-21 Thread Aleksandar Ristić
PyCharm +1. Worth every penny. On Tue, Dec 20, 2011 at 3:28 PM, Parisson wrote: > On 20/12/2011 08:23, Alex Mandel wrote: > > Code completion is subpar, actually one of the worst python editors for > > that because you have to pregenerate the lists. > > > > Eric's completion is based on QScintil

Re: location of sitemap files

2011-12-21 Thread Andre Terra
I'm not sure I understand your question, but here's my attempt at an answer. root directive in HttpCoreModule: http://wiki.nginx.org/HttpCoreModule#root Example nginx.conf: http://dpaste.com/hold/676259/ Cheers, AT On Wed, Dec 21, 2011 at 10:22 AM, kenneth gonsalves wrote: > hi, > > I have a s

location of sitemap files

2011-12-21 Thread kenneth gonsalves
hi, I have a site which is running nginx virtual host proxied to gunicorn. The client has hired some SEO firm who have given me a bunch of sitemap files that they want me to put in document root. Apache virtual hosts define a document root, but I cannot find anything wrt nginx. Any clues? -- rega

Re: Jython zxJDBC / Python cx_oracle wrong number or types of arguments when calling to oracle's stored procedure

2011-12-21 Thread Daniel Roseman
On Wednesday, 21 December 2011 05:41:53 UTC, Akira Kir wrote: > > > > {stackoverflow xposted} > > Answered on SO. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/