how to configure django to use TLS/SSL for db auth in configuration.py

2016-08-25 Thread johny casanova
helo, in my organization we have to use TLS/SSL for everything. I have set up my postgresql db to use the certs and ciphers I need. Now I need to configure my configuration.py to authentication using certs and TLS/SSL and not a user/pass combo. How do I go about that? this is what I got

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
Thank you so much Andromeda. I didn't know you could use class based views. I'll have a look at the documents. I don't know why I was trying to use them when I didn't need to. On Thu, Aug 25, 2016 at 4:23 PM, Andromeda Yelton < andromeda.yel...@gmail.com> wrote: > The stacktrace is helpful,

Re: What is this? CASCADE clausule on DROP COLUMN???

2016-08-25 Thread RompePC
Hi, I searched for it, and looks like Django uses a general schema constants for common commands (like *ALTER*). It is stored inside a class, which is the parent class of the rest of the RDBMS schemas. And it isn't replaced, so it justs assumes the value of the parent. More info

Re: What is this? CASCADE clausule on DROP COLUMN???

2016-08-25 Thread Erik Cederstrand
> Den 25. aug. 2016 kl. 17.09 skrev RompePC : > > I did a migration of Django, and then applied a sqlmigrate, giving me this > output... > > BEGIN; > -- > -- Remove field my_column from my_table > -- > ALTER TABLE `my_table` DROP COLUMN `my_column` CASCADE; > > I

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Andromeda Yelton
The stacktrace is helpful, thanks! The specific message with the AttributeError is helpful here: `AttributeError: 'module' object has no attribute 'DepositView'` The line above it is ` File "/home/soupdragon/DJapps/banking/mybank/banking/urls.py", line 8, in url(r'^deposit/$',

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
Thanks for your speedy reply, I've attached the stack trace On Thursday, August 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote: > > Could you share the full stack trace you get when trying to run the server > ? > The attribute error should come with a ton of information like the > file and

What is this? CASCADE clausule on DROP COLUMN???

2016-08-25 Thread RompePC
I did a migration of Django, and then applied a *sqlmigrate*, giving me this output... BEGIN; -- -- Remove field my_column from my_table -- ALTER TABLE `my_table` DROP COLUMN `my_column` CASCADE; I don't find info about it, and I've never seen something like this in my MySQL experience. And

Re: Attribute error, with a very basic banking app

2016-08-25 Thread ludovic coues
Could you share the full stack trace you get when trying to run the server ? The attribute error should come with a ton of information like the file and the line where the error occur. 2016-08-25 16:57 GMT+02:00 Neil Hunt : > I've beem working on a simple banking app based on

Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
I've beem working on a simple banking app based on the Django tutorial. Thanks to your help it almost works now. It was working using templates but after making some changes to get HttpResponseRedirect to work I changed what was in the urls file like it shows in the tutorial. Now, the server

Re: Isolate Django apps in different Docker containers

2016-08-25 Thread Christian Ledermann
On 25 August 2016 at 14:50, Guillaume Dupin wrote: > Hello, > > On a Django project (which will consist of several REST web services), I > would like to isolate my services (each service would be a Django > application) into different Docker containers to aim to a micro-services

Different values for csrfmiddlewaretoken and csrftoken causing 403 errors in Django admin

2016-08-25 Thread lorcanoshea
Hi, I am trying to debug some 403 errors I am getting in the Django admin. When I have debug set to true, everything works fine, but when I have it set to false, I get a 403 CSRF verification failed response. This is a superuser account which has all permissions so it shouldn't be related to

Re: Hi. i'm new to django, i have lot of doubts about AD

2016-08-25 Thread M Hashmi
What is your code and what you are trying to achieve? On Thu, Aug 25, 2016 at 5:18 AM, rajeshkmr9583 wrote: > Hi guys, > i'm new to django framework and now my doubt id how to create AD for > login page > > Thanks > > -- > You received this message because you are

Isolate Django apps in different Docker containers

2016-08-25 Thread Guillaume Dupin
Hello, On a Django project (which will consist of several REST web services), I would like to isolate my services (each service would be a Django application) into different Docker containers to aim to a micro-services architecture. It will allow to benefit of Docker isolation to update

Hi. i'm new to django, i have lot of doubts about AD

2016-08-25 Thread rajeshkmr9583
Hi guys, i'm new to django framework and now my doubt id how to create AD for login page Thanks -- 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: Postcode Search

2016-08-25 Thread 'David Turner' via Django users
Thanks for this. Exactly what I am looking for. On 25 August 2016 at 12:59, Christian Ledermann < christian.lederm...@gmail.com> wrote: > have a look at https://github.com/cleder/os-opendata-edubase > > import of uk postcodes from ordonance survey: >

Re: Postcode Search

2016-08-25 Thread Christian Ledermann
have a look at https://github.com/cleder/os-opendata-edubase import of uk postcodes from ordonance survey: https://github.com/cleder/os-opendata-edubase/blob/master/fabric/fabfile.py#L286 get points near to: https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L63

Re: Postcode Search

2016-08-25 Thread 'David Turner' via Django users
Thanks for this but am looking for Uk Postcodes. Will continue my research. On 24 August 2016 at 15:10, Derek wrote: > The Google geocoding API can help - see: > https://developers.google.com/maps/documentation/geocoding/intro > Their example shows the ZIP code being