Re: html templates and dynamic loading

2013-08-23 Thread Mantas Zilinskis
this might help you http://stackoverflow.com/questions/1879872/django-update-div-with-ajax let me know if you need more help On Fri, Aug 23, 2013 at 10:51 AM, Bastien Amiel wrote: > Le 23/08/2013 17:01, Mantas Zilinskis a écrit : > > can you post all of chat.html > > > >

Why cannot template tags be used for password reset email notification template file?

2013-08-23 Thread nobody
Hi, I have customized template string tags such as {{ org_name }} and {{ account_email }} which work fine for most of email template files and html files, but the tags {{ org_name }} and {{ account_email }} could not work with password reset email template. The django/contrib/auth/forms.py

Re: recaptcha options... which one to choose

2013-08-23 Thread Tom Lockhart
On 2013-08-23, at 11:19 AM, TinyJaguar wrote: > I'm about to implement recaptcha in my feedbackform but I'm a bit confused by > all the possibilities. > Should I use: > recaptcha-client 1.0.6 or recaptcha 1.0rc1. > django-recaptcha or django-recaptcha-works > other

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
I see. I don't understand how this works: {{ itens.instance.idproduto.codigobarra }} when this doesn't: {{ itens.instance.idproduto.idmercadoria.referencia }} Can you post your template code? On Fri, Aug 23, 2013 at 10:13 AM, Fellipe Henrique wrote: > form.instance is

Re: Advice on deploying multiple Django instances to single Apache server

2013-08-23 Thread TinyJaguar
Just go with mod_wsgi and virtual hosts for each application. PHP and mod_wsgi may clash given the two modus operandi for Apache. MPM or prefork Alternatively you could use NGINX with gunicorn On Friday, August 23, 2013 6:50:49 PM UTC+2, Jon Dufresne wrote: > > Hi, > > I am getting ready to

recaptcha options... which one to choose

2013-08-23 Thread TinyJaguar
I'm about to implement recaptcha in my feedbackform but I'm a bit confused by all the possibilities. Should I use: recaptcha-client 1.0.6 or recaptcha 1.0rc1 . django-recaptcha or

Merge a wiki app with static files

2013-08-23 Thread Skip Montanaro
I've horsed around with Django a bit, but it's been awhile since I worked my way through the tutorial literature. I now have a concrete application, my existing personal website. It's currently a site full of static files and a separate wiki. I want to get away from the wiki (PmWiki) and the

django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-23 Thread Daviddd
Dear All, In my view I create the following dictionary of lists from a queryset #view.py queryset = MyModel.objects.filter(owner=user, dashboard=tab).order_by('position') my_dict = collections.defaultdict(lambda: collections.defaultdict(list))for obj in queryset:

Re: I really about to give up Django

2013-08-23 Thread Fellipe Henrique
form.instance is "Pedido" model, not "ItensPedido". My "ItensPedido" has "idproduto" not my "Pedido". and all idproduto has idmercadoria, it a required field, never, never go null`s this field. Cheers, Em sexta-feira, 23 de agosto de 2013 12h15min15s UTC-3, Mark escreveu: > > Are you sure the

Advice on deploying multiple Django instances to single Apache server

2013-08-23 Thread Jon Dufresne
Hi, I am getting ready to deploy my Django application. This application must serve several independent parties. In the past, I've done this with multiple instances of a PHP application on the server. Is this the right approach in the Django world? My server is running Apache and MySQL. Each

Re: html templates and dynamic loading

2013-08-23 Thread Bastien Amiel
Le 23/08/2013 17:01, Mantas Zilinskis a écrit : can you post all of chat.html On Fri, Aug 23, 2013 at 7:04 AM, Bastien Amiel > wrote: Le 23/08/2013 11:26, Huu Da Tran a écrit : On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel

Re: html templates and dynamic loading

2013-08-23 Thread Mantas Zilinskis
can you post all of chat.html On Fri, Aug 23, 2013 at 7:04 AM, Bastien Amiel wrote: > Le 23/08/2013 11:26, Huu Da Tran a écrit : > > On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: > > >> I need to update the chat when an event come but : >> >> 1. >>

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
Are you sure the idmercadoria is not None on that idproduto record? {{ form.instance.idproduto.**idmercadoria }} Does this display anything? How about {{ form.instance.idproduto }}? If these don't display, verify the records in your database. In Django templates, if something is None or does not

Re: django1.5 - url resolver vs i18n_patterns : wrong behaviour

2013-08-23 Thread uniqe . klmov . anton
For those who also suffers: yes its a bug. https://code.djangoproject.com/ticket/17734 it was fixed in 1.6b2 вторник, 4 июня 2013 г., 13:23:23 UTC+4 пользователь Ivan Tatarchuk написал: > > When I using i18n_patterns in my project urls.py I have strange behaviour > of url resolver: > expected

Re: Getting 500 server error when debug=False

2013-08-23 Thread Jonathan Roberts
Nevermind. Solved it (I was setting it ALLOWED_HOSTS twice - removed the duplicate and it all worked fine). Nothing to see here :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Getting 500 server error when debug=False

2013-08-23 Thread Jonathan Roberts
I'm changing my development server over to production, and I'm getting a 500 error page as soon as I set DEBUG=False in the settings. I've been googling around, and have already checked here: http://stackoverflow.com/questions/15128135/django-setting-debug-false-causes-500-error I have set

Re: Get a list into request.POST

2013-08-23 Thread Nick Jiang
hi, you should consider of using JSON.stringify() function to convert javascript object to json data. *>>* * JSON.stringify({'array':[{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}]}) * **This is example build from jsfiddle *>> alert example

Re: Get a list into request.POST

2013-08-23 Thread Laurent Meunier
On 23/08/2013 13:30, Sarfraz Ahmad wrote: Hello guys, i am working on a view where i m needed to pass an array of objects into a ajax request. the array of java script objects is like this [{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}] i posted is in ajax request

Re: How to add a code table to this group?

2013-08-23 Thread Mário Neto
Paste your code in http://dpaste.com and share the link in this group Em 22/08/2013 12:42, "Gerd Koetje" escreveu: > In many posts i submit django code. > I tried to use the < c o d e > < / c o d e > tag but it doesnt format it > very nicely > Is there a other tags

Re: html templates and dynamic loading

2013-08-23 Thread Bastien Amiel
Le 23/08/2013 11:26, Huu Da Tran a écrit : On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: I need to update the chat when an event come but : 1. If I update my chat sub page, inputs are reset (seems logic since html is recreated). You can always have

Get a list into request.POST

2013-08-23 Thread Sarfraz Ahmad
Hello guys, i am working on a view where i m needed to pass an array of objects into a ajax request. the array of java script objects is like this [{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}] i posted is

Re: hello everyone error in python

2013-08-23 Thread abhijeet shete
Hi, Please provide more details about the error. Like what you are trying to do or which part of your code is raising this error ? On Fri, Aug 23, 2013 at 3:24 PM, Shru wrote: > error :'str' object is not callable > > error location

hello everyone error in python

2013-08-23 Thread Shru
error :'str' object is not callable error location :C:\Python27\lib\site-packages\django\core\handlers\base.py in get_response, line 115 so help me to fix it -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

how can I use django model with range like this?

2013-08-23 Thread jinge
Hi, everyone! We use django for processing our logs. We build our model like this class URL(models.Model): url = models.TextField(unique=True) class cachelogtype1(models.Model): url = models.ForeignKey(URL) datetime = models.DateTimeField() Our tables in DB

Re: Need Advise on the best way to track how much time a user is logged in.....

2013-08-23 Thread Huu Da Tran
On Thursday, August 22, 2013 3:09:45 PM UTC-4, 7equiv...@gmail.com wrote: > My users will not be able to logout by closing a browser because they have > no such interaction with the system. They will be passing an RFID tag over > a reader to unlock the door and clock in and a python script will

Re: html templates and dynamic loading

2013-08-23 Thread Huu Da Tran
On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: > I need to update the chat when an event come but : > > 1. > If I update my chat sub page, inputs are reset (seems logic since html > is recreated). > You can always have some field that keep when the chat was started (in