Re: Why does OpenLayers not load in django with this template ?

2011-06-19 Thread Malcolm Box
On 17 Jun 2011, at 23:07, Satyajit Sarangi wrote: > > This is my template . > > > Where should I store the OpenLayers-2.10 folder for this template to > work ? Almost certainly there is no such place. Assuming your web page is at http://example.com/a/path/to/page, you've told it to look

Re: Creating a simple contact form

2011-06-19 Thread raj
Thank you so much. It worked, but I had to also comment out the EMAIL_BACKEND part of the settings.py file. Thanks again. On Jun 17, 10:57 pm, william ratcliff wrote: > Hi Raj, > > It sounds like your problem is email, rather than the form.   In our > settings.py we

Re: Easiest way to limit email warnings?

2011-06-19 Thread Brian Bouterse
+1 for django-sentry. I use it on even the smallest sites and it works great there too. Brian On Sun, Jun 19, 2011 at 9:17 AM, graeme wrote: > What is the simplest way of preventing the flood of emails that > results from a site wide error? I do not want to end up

Re: Easiest way to limit email warnings?

2011-06-19 Thread Developr
Look into Queuing, something like AMQP or REDIS On Jun 19, 2:17 pm, graeme wrote: > What is the simplest way of preventing the flood of emails that > results from a site wide error? I do not want to end up with 10,000 > emails because the database was down for an

Form login and get information.

2011-06-19 Thread Carsten Jantzen
Hi I have started to build a application using django. I am about to receive input from a form. Using this input ( login and security code ) and I have to connect to another site login and retrive player information. I am kind confused as to where should the code which connect to the remote site

Easiest way to limit email warnings?

2011-06-19 Thread graeme
What is the simplest way of preventing the flood of emails that results from a site wide error? I do not want to end up with 10,000 emails because the database was down for an extended period. I do not want to turn it off with ADMINS = () because it is useful for reporting one-off errors. I

Re: registering unzipped files on the local disk

2011-06-19 Thread francescortiz
Well, I run the test: code used: http://pastebin.com/9FNT82ym results (second result is stream copy): $ python2 cp.py 8.55721712112 5.28589200974 $ python2 cp.py 8.5057990551 6.55976104736 $ python2 cp.py 6.88285589218 8.86908006668 $ python2 cp.py 5.8047721386 8.57982397079 $ python2

Re: registering unzipped files on the local disk

2011-06-19 Thread francescortiz
Faheem, In your post you write: "This works, but I traced through the code, and found that the code was using streaming, when clearly the optimal thing to do in this case would be to just copy the file from the temporary location to the permanent location" In java copying files is performed by

Form wizard

2011-06-19 Thread veva...@yandex.ru
Please give me a reference to a full example of Form wizard. To learn it I try to solve such an application (details are omitted): urls.py: urlpatterns = patterns('', (r'^hotel_wizard/', 'my.app.views.hotel_info'), models.py: class Country(models.Model): name =

django comments application Caught No Reverse Mismatch while rendering

2011-06-19 Thread Pulkit Mehrotra
{% load comments i18n %} 2 {% csrf_token %} 3 {% if next %}{% endif %} 4 {% for field in form %} 5 {% if field.is_hidden %} 6 {{ field }} 7 {% else %} 8 {% if field.errors %}{{ field.errors }}{% endif %} 9 12 {{ field.label_tag }} {{ field }} Whenever i use comment_form_target i am