Re: Best Practices for transferring email form data to web server

2015-08-31 Thread pythonista
That worked. I was not aware of the csrf exempt directive. My email form works the way that I want. On Friday, August 28, 2015 at 5:22:46 PM UTC-4, pythonista wrote: > > > > I have created a form that works fine for GETS and POSTS through the > browser. > > I have embedde

Best Practices for transferring email form data to web server

2015-08-28 Thread pythonista
I have created a form that works fine for GETS and POSTS through the browser. I have embedded the form with a GET (action) in the email, and the data gets transferred to the server as expected. The email POST looks like it needs a csrf token. Is there anyway to generate this and embed it on t

Problem migration to server with gunicorn and nginx

2015-01-02 Thread pythonista
The application is working as expected in my development region, but when the admin migrates it to the server and starts up gnicorn and nginx, I get the following errror. I would appreciate any assistance. The application was running the first time we migrated 2 weeks ago to QA. Not sure if th

How to capture any incorrect typing of a url and pass it to a default page

2014-12-24 Thread pythonista
I want to code the urls.py such that if someone types in any garbage inn the browser the final line of the url router will grab the line and reroute it to some page(the home page) for example. I added the following line of code to the bottom of the url url(r'^([a-zA-Z0-9\-\_]*)', views.my_def

Re: Database queries location

2014-12-23 Thread pythonista
ple of creating a custom manager here: > https://docs.djangoproject.com/en/dev/topics/db/managers/#custom-managers > > Collin > > On Saturday, December 20, 2014 8:28:57 AM UTC-6, pythonista wrote: >> >> Thank you for your response. >> >> Most of my data is co

Django url issues, append slash and case insensitvity

2014-12-23 Thread pythonista
I am having some issues with trailing slashes. The application is working fine from my local machine whether I add a trailing slash or not. It is not working as expected on the servers. The link is being redirected to localhost for some reason. I thought that SLASH_APPEND= True was on by def

Re: Database queries location

2014-12-20 Thread pythonista
SQL, complex queries) > - models.py: All logic as a row level / object level (python computing > data) > - forms.py: All logic as forms data / processing / validation for > request data > > Have a good one, > > aRkadeFR > > On 12/18/2014 10:12 PM, pythonista wrote

Database queries location

2014-12-18 Thread pythonista
I understand that functions can be placed in the models fille However if I have complex queries that receive post input does the Query live in the model the views or an external module -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Re: Django and SSL

2014-12-10 Thread pythonista
0, 2014 11:55:15 AM UTC-5, pythonista wrote: > > I am getting a request from the security infrastructure and I could use > some advice/recommendation. > > This is a 3 tier application. > > Apache/Django/Sql Server > > Apache is https and there is a proxy server between.

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread pythonista
I can actually help you here. I had the same problem and tried 4 different modules. The only module that works with sql server is https://github.com/michiya/django-pyodbc-azure I am running it both on windows and linux, simultaneously. The settings components are displayed on the web site.

Django and SSL

2014-12-10 Thread pythonista
I am getting a request from the security infrastructure and I could use some advice/recommendation. This is a 3 tier application. Apache/Django/Sql Server Apache is https and there is a proxy server between. The security team is saying that the communication from Django should also be ssl enc

Django server and Apache serving static files

2014-12-08 Thread pythonista
My apache admin is having problems serving static files to the django app. Apache is on its own server. My admin says that he needs a relative path defined in Django in order to get Apache to serve the static files from that server for the Django App Is it possible to define relative paths in

Problem implementing django-sslserver

2014-11-26 Thread pythonista
The application was working successfully on the Linux server. I am trying to implement the ssl functionality and getting the stack trace below after following the instructions Any suggestions as to what is going on and how to fix this. We are running the dev server with a separate Apache ser

Newbie question on serving static files from apache

2014-11-14 Thread pythonista
I am using django 1.7 and apache. I do not understand the instructions on the django tutorial. The files were delivered as expected in debug mode and locally from the django web server. Can someone provide me with a simple example or link to a site. Thanks -- You received this message becau

Re: Django-mssql repo has switched to Git

2014-11-14 Thread pythonista
I am connecting django linux and windows 7 to sql server.successfully django 1.7 and python 2.7.8 I was successful with django-azure-pyodbc The 3 other packages that I tried did not work. On Friday, November 14, 2014 9:37:41 PM UTC-5, Michael Manfre wrote: > > A heads up to anyone using Django-