How modify Django to set URLs with decorators on the view functions like Flask? (rather than using urls.py)

2016-09-09 Thread Chris Seberino
Flask has a neat design where instead of having a urls.py file they bind URLs to view functions with decorators. Possible to do something similar with Django? What modifications would be needed? Thanks, cs -- You received this message because you are subscribed to the Google Groups "Django

How do you disable SECURE_SSL_REDIRECT for some views in Django?

2016-09-09 Thread Mauro Sánchez
Hello, I configured in my settings SECURE_SSL_REDIRECT=True, but now I want to disable it for some views. I have seen that there is an option SECURE_REDIRECT_EXEMPT where I can define a list of regular expressions for it. But for some reason I can't make it work. I've tried to use the same regul

Re: Custom form fields in admin site

2016-09-09 Thread Luis Zárate
Hi, I started to make a test project, and review the django code in options, but I see the problem and started to code in other way the result is in https://github.com/luisza/onetooneForm Now is more interesting because I try to provide a way to update onetoone fields in the same form. I made

Django Rest Create with a Writable Nested Serializer

2016-09-09 Thread Ronaldo Bahia
Hi everyone, I'm trying to perform a create in Django Rest Framework using a writable nested serializer. With the code bellow I can create a ScriptQuestion but I can't add a RecordedInterview into it. Django says OrderedDict is None. What am I doing wrong? Thanks in advance Thread: http

Re: pymssql

2016-09-09 Thread john
take a look at http://pymssql.org/en/latest/pymssql_examples.html Johnf On 09/08/2016 05:48 PM, sum abiut wrote: Hi, i have used pymssql to connet to windows database but i want to be able iterate and only print out some specific fields. here is what i did conn=pymssql.connect(server,use

Prevent Django from prepending site domain to beginning of feed links

2016-09-09 Thread Jamie
I'm creating an RSS feed that contains application links for URLs, but Django is prepending the domain name to any link that doesn't begin with *http*. So, links that should be *appname://* are being generated as *http://domain.comappname...* How do I prevent Django from trying to correct link

Django Ticketing Application

2016-09-09 Thread Alexandra
Hi! It's necessary to integrate a Chat bot (as Zopim) and Ticketing system in a new app. Chatting has to become a ticket. Can you suggest any Django Ticketing App which we can use for it? Thank you in advance! -- You received this message because you are subscribed to the Google Groups "Djang

Re: Django group email in spam

2016-09-09 Thread Lachlan Musicman
Oh! I've seen this behaviour before, and that would explain it - do you have a post or bug report I can read on that? Cheers L. -- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On 8 September 2016 at 23:06, Uri Even-Chen wrote: > Same here,

Re: Custom form fields in admin site

2016-09-09 Thread ludovic coues
It's not easy to understand what you are trying to do and in which way it is failing. It would require us setting up a test project. I am assuming you want that the Admin display a form with a field for each of Mymodel field plus the myextra_field attribute and what you get is either only the name