Re: implementing a ticket submission system

2014-06-13 Thread Anurag Baidyanath
Thanks! it solved the problem On Wednesday, 11 June 2014 23:40:59 UTC+5:30, Ilya Kazakevich wrote: > > Hello, > > Use Primary Key: > https://docs.djangoproject.com/en/dev/topics/db/models/#automatic-primary-key-fields > > > > Ilya Kazakevich, > JetBrains PyCharm (Best Python/Django IDE) > ht

Re: Combine page content (html) and model instance (json) in ajax response

2014-06-13 Thread Max Demars
I got the solution from Daniel Rossman on SO: Firstly, use `render_to_string` to get the template fragment as an HTML string. Secondy, serialize your object as a Python dict, not JSON. Then you can convert the whole lot to JSON in one go. html = render_to_string("page_content.html", {'form'

Re: django-allauth--"cannot import name SignupForm"

2014-06-13 Thread Fabio Caritas Barrionuevo da Luz
Please, show me the code. put the code and all traceback of the error on gist.github.com and send gist reference link here. Em quinta-feira, 12 de junho de 2014 11h15min37s UTC-3, willyhakim escreveu: > > Good morning the good people of django. > > > I customized django-allauth signup page with

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2014-06-13 Thread Scott Simmerman
I faced a similar issue (request.user becoming anonymous after login) and found the following solution. It had to do with the naming convention for the auth backend under AUTHENTICATION_BACKENDS in settings.py. I had a custom auth backend class called PamBackend which I had in a file called Pam

offline appcache / response headers

2014-06-13 Thread Maximilian Bucher
Hi there, I am trying to build an offline-django(1.6.5)-app (a single page for the beginning). I am serving a manifest-file with correct mime-type (text/cache-manifest), linking it with the -tag, rendered in a template. The page is cached and shown offline in chrome, but not in IE11 nor Firefox

[no subject]

2014-06-13 Thread S. M. Mirghorbani
-- 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 it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. V

Python Brasil[10]

2014-06-13 Thread Renato Oliveira
Hi all! My name is Renato Oliveira, I'm board member of Python Brazil Association and co-chair of the next Python Brasil Conference . This year the conf is taking place in Porto de Galinhas, Pernambuco (for ten times in a row elected the most