Re: Django not saving form in DB from frontend

2016-09-30 Thread Ali khan
Thanks Mudassar, Its working now. On Fri, Sep 30, 2016 at 8:42 PM, M Hashmi wrote: > *Please change* > > def contact_form(request): > template = 'contact.html' > if request.method == 'POST': >form = ContactForm(request.POST or None,

Re: Django not saving form in DB from frontend

2016-09-30 Thread M Hashmi
*Please change* def contact_form(request): template = 'contact.html' if request.method == 'POST': form = ContactForm(request.POST or None, request.Files or None) if form.is_valid(): new_form = form

Re: Django software docs

2016-09-30 Thread Luis Zárate
Are you looking for something like https://d3js.org/ ? Or something like blender with django ? El lunes, 26 de septiembre de 2016, Jani Tiainen escribió: > Hi, > > What you expect Django to do for you? > > Django has been successfully used to write great variety of webapps

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-30 Thread Luis Zárate
You need to create a setup.py file (see setuptools doc) it's a simple file find examples. Then do python setup.py sdist This will create dist file then surft to the .tar.gz file pip install -u django-poll.tar.gz Or you also can do python setup.py install El martes, 27 de septiembre de

Subscribe / unsubscribe to data streams over websocket channel

2016-09-30 Thread Ian Danforth
Hello! Channels + databinding is a great way to push updates to clients of an API. I'm wondering however if there are any good examples of the client being able to subscribe and unsubscribe to streams of data over an existing websocket/channel pair (while making use of databinding) For

Re: Visiting one Django server logs me out of another Django server, both behind the same proxy

2016-09-30 Thread Stodge
Thanks again. I set a different session cookie name for S1 and it seems to have worked. -- 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

Re: download file when debug=false

2016-09-30 Thread Constantine Covtushenko
Hi Richard, There are a lot of options of how to change/switch application behaviour. It depends on what you eventually need to get. Mentioned solution: settings.DEBUG = true/false can be one of them Hope it helps. Regards, Constantine C. > On Sep 30, 2016, at 12:06, Richard Auscard

Re: Upgrading a django 1.2 Alpha site to 1.10 final site, passwords don't work

2016-09-30 Thread Tim Graham
Django 1.10 can still support SHA1, but it's not enabled by default. Please read https://docs.djangoproject.com/en/dev/releases/1.10/#removed-weak-password-hashers-from-the-default-password-hashers-setting and https://docs.djangoproject.com/en/stable/topics/auth/passwords/. On Friday,

Re: How to setup django 1.9 with mongodb

2016-09-30 Thread ludovic coues
Django's ORM doesn't support mongodb or any non-relational database (read SQL only). So you set it up like any django, but you don't use the models 2016-09-30 11:37 GMT+02:00 danang geek : > hai Man How to setup django 1.9 with mongodb > > -- > You received this message

Upgrading a django 1.2 Alpha site to 1.10 final site, passwords don't work

2016-09-30 Thread Evan Roberts
Hello All, I'm new to django and python. A project that was last maintained in 2009 was bestowed upon me because the underlying OS is approaching end-of-life. I've read the first few chapters the Django book and the first 10 chapters of Django Unleashed. I've got the project and supporting

Re: Visiting one Django server logs me out of another Django server, both behind the same proxy

2016-09-30 Thread Michal Petrucha
Hi Mike, On Fri, Sep 30, 2016 at 06:00:30AM -0700, Stodge wrote: > Thanks Michal, > > The two servers are on the same domain and use different databases. At the > moment I'm using the default Django session backend. > > It's an experiment, nothing more really. I just wanted to see if I could

Re: Visiting one Django server logs me out of another Django server, both behind the same proxy

2016-09-30 Thread Stodge
I discovered JSON Web Tokens after I posted my original question. So I'll read about how they work. Thanks Mike On Thursday, 29 September 2016 16:50:22 UTC-4, Stodge wrote: > > I have two Django servers A1 and S1, which sit behind a simplistic NodeJS > proxy. This is a silly attempt at single

Re: Visiting one Django server logs me out of another Django server, both behind the same proxy

2016-09-30 Thread Stodge
Thanks Michal, The two servers are on the same domain and use different databases. At the moment I'm using the default Django session backend. It's an experiment, nothing more really. I just wanted to see if I could make it work. I haven't really worked out the flow, but it's probably

How to setup django 1.9 with mongodb

2016-09-30 Thread danang geek
hai Man How to setup django 1.9 with mongodb -- 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,

download file when debug=false

2016-09-30 Thread Richard Auscard
hello, i have developp a django application where excel file are generate after some operation. when debug=true thes excel files can be download but when false it is not possible. my question is how to solve this issus. all think are ok when debug=true -- You received this message because

Re: Visiting one Django server logs me out of another Django server, both behind the same proxy

2016-09-30 Thread Michal Petrucha
On Thu, Sep 29, 2016 at 01:50:22PM -0700, Stodge wrote: > I have two Django servers A1 and S1, which sit behind a simplistic > NodeJS proxy. This is a silly attempt at single sign on. > > I can log into and out of A1 (authentication server) just fine. If I > log into A1, visit S1 (without being