Re: Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Luis Zárate
In the success method do something like $('myform').reset (); I don't understand well but if you have cache clean it too. El sábado, 19 de septiembre de 2015, Martín Torre Castro < martin.torre.cas...@gmail.com> escribió: > Maybe I should have made the context more clear. > > First of all, we're

Re: Django error report not being sent through email

2015-09-19 Thread Luis Zárate
Your SMTP server are not using TLS or ssl ? El sábado, 19 de septiembre de 2015, Gergely Polonkai escribió: > It belongs to settings.py, as everything else. However, if you haven't overridden it, it should send yeu the emails. Are you sure your e-mail sender settings are set properly? > > Best, >

Re: Django error report not being sent through email

2015-09-19 Thread Gergely Polonkai
It belongs to settings.py, as everything else. However, if you haven't overridden it, it should send yeu the emails. Are you sure your e-mail sender settings are set properly? Best, Gergely On 19 Sep 2015 14:27, "Xin Ji" wrote: > No, I haven't. > How should I override? And Which file should I pu

Re: Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Martín Torre Castro
Maybe I should have made the context more clear. First of all, we're not using ModelForms but just Django Forms. It's true that when it's not filled correctly, the form returns the validation but we have cases in which the data in the fields is not returned when the form operation is not successf

Re: Django error report not being sent through email

2015-09-19 Thread Xin Ji
No, I haven't. How should I override? And Which file should I put the LOGGING settings in? 在 2015年9月19日星期六 UTC+8下午7:49:56,Xin Ji写道: > > I'm using apache + django + mod_wsgi to serve my app. > My apache version is 2.4.7 and my django version is 1.8.4 > > My django settings are: > * DEBUG=False* >

Re: Django error report not being sent through email

2015-09-19 Thread Gergely Polonkai
Hello, BrokenLinkEmailsMiddleware sends error reports about 404 errors. 500 errors are reported via logging. Have you overridden the LOGGING setting? Best, Gergely 2015-09-19 13:49 GMT+02:00 Xin Ji : > I'm using apache + django + mod_wsgi to serve my app. > My apache version is 2.4.7 and my dj

Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

2015-09-19 Thread sankar vasu
Hi All, I got below error, please advise. please look at the following link: http://pysan.pythonanywhere.com/ [image: Inline image 1] *url.py*from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.post_list, name='post_list'), url(r'^post/(?P[0-9]+)/$',

Django error report not being sent through email

2015-09-19 Thread Xin Ji
I'm using apache + django + mod_wsgi to serve my app. My apache version is 2.4.7 and my django version is 1.8.4 My django settings are: * DEBUG=False* * ADMINS = [ ('username','usern...@comp.nus.edu.sg'), ] MANAGERS = [ ('username','usern...@comp.nus.edu.sg'), ] M

Re: Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Gergely Polonkai
Hello, I can't see the use case here. If you are submitting the form with AJAX, why would you store it? Or, if I misunderstood you and you submit in the non-AJAX way, Django will send give you back your filled form with the validation errors. Best, Gergely On 19 Sep 2015 10:09, "Martin Torre Cast

Re: Forms questions

2015-09-19 Thread Martin Torre Castro
If there's a file in the form data, I'm no expert but I have fought a little with forms and files and I advise you to look in the internet for multipart forms and file inputs inside forms. On Tuesday, 25 August 2015 21:12:46 UTC+2, Hugo Kitano wrote: > > I've realized that the action field in th

Re: Ajax in Django

2015-09-19 Thread Martin Torre Castro
If you use jQuery (I do), making AJAX requests is incredibly easy. Just use the $.get(), $.post() or $.ajax() functions. If you have any doubt, the api.jquery.com page has all the references and information for using them (search for jQuery.get(), jQuery.post() and jQuery.ajax() ). On Monday,

Re: DJANGO

2015-09-19 Thread Martin Torre Castro
Search in Google "tangowithdjango" and "gettingstartedwithdjango". The first one maybe is best fr beginners On Thursday, 10 September 2015 17:41:07 UTC+2, Arindam sarkar wrote: > > The django tutorial itselt > https://docs.djangoproject.com/en/1.8/intro/tutorial01/ > On Thu, Sep 10, 2015 at 8:0

Best way to trigger javascript function when returning a page from django view

2015-09-19 Thread Martin Torre Castro
Hello, I have a django project where I make requests to the server views both by AJAX and the usual simple URL requests to Django. The thing is that I have made one javascript function for storing the forms contents in the HTML5 webstorage and I want to clear the stored data after coming from

Re: Not getting static files with django & heroku deployment

2015-09-19 Thread Martin Torre Castro
At the end I used WhiteNoise. If anyone there wants to know about how I made the configuration, just write. :-) On Sunday, 5 July 2015 09:00:43 UTC+2, Martín Torre Castro wrote: > > I have just read now your mail when awakening. I also love the work from > Danny and Audrey and got his las two b

Re:

2015-09-19 Thread Gergely Polonkai
Hello, 0) learn to use Google. Getting the following two links took about 12 seconds 1) if you want to contribute to Open Source in general, go to [1] 2) if you want to contribute to Django specifically, go to [1], then go to [2] 3) profit! Best, Gergely [1] http://developer.com/open/how-to-star