Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
Nevermind. heroku has SSL on by default. There's no option to turn it off. On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote: > > I have a embedded system that doesn't support the 'secure' part of > websocket secure, how do i disable the websocket "secure" part of my daphne >

Re: Django deployment with .htacess

2020-01-30 Thread Motaz Hejaze
I dont think that will work for django ! On Thu, 30 Jan 2020, 10:07 pm Perceval Maturure, wrote: > Hi All > Is there anyone who has used .htacess to deploy a Django website on a > server you do not have access to the apache2 conf file. ? > > Please share the tricks > Regards > Perceval > > -- >

Django deployment with .htacess

2020-01-30 Thread Perceval Maturure
Hi All Is there anyone who has used .htacess to deploy a Django website on a server you do not have access to the apache2 conf file. ? Please share the tricks Regards Perceval -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
I am not using Nginx, I am using daphne, django/channel. On Thursday, January 30, 2020 at 2:15:25 AM UTC-8, Aldian Fazrihady wrote: > > I don't think you should do anything. > My daphne becomes secure/wss because it is behind nginx HTTP termination. > > On Thu, Jan 30, 2020 at 3:06 PM Jeremy Wai

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Michael Rohan
Hi, Just fyi, it was, in part, to solve this problem that I implemented the django-yamlconf module: https://django-yamlconf.readthedocs.io/en/latest/ While getting the data into either a private yaml file or env variable in the container isn't addressed, it does allow injecting the values into

Re: Can't find image files

2020-01-30 Thread Dick Arnold
Please ignore. I finally got it to work, It was the directory structure to the image file. Needed: project folder project folder application folder 'static' folder application folder image file application On Monday, January 27,

Re: Can't find image files

2020-01-30 Thread Dick Arnold
'about a day or so after my original post I discovered that static files might be related to my problem.. getting the first reply that pointed me in the same direction gave my hope that a solution was close. unfortunately, nothing worked. Below I have the pertinent code. hopefully, someone

JSONField() ordering and removing latest

2020-01-30 Thread wagner
Hello together, i have the following problem. I need to save different versions of an article in a json object: { "1580388458.2877874": { "title": "Erster Artikel", "text_block_with_image": [{"text": "Super Text der einen weiterhilft", "image": "http://test.de/test.jpg"}] },

Django

2020-01-30 Thread Desmond Nyamador
Hi Mick, I suggest you create a slug field in your model which will be used to filter your model rather than an id.If an object get saved with a title of foo bar, the slug field would handle the slugification of that title to "foo-bar" -- You received this message because you are subscribed to

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Chris Wedgwood
Hi Tom You are definitely not overthinking this. it's important. This is an area that has baked my noodle for a while now and I always am left wondering "Do I have this right?" "Am I vulnerable to attack?" . and I still haven't figured it out completely. It's like static files I never

Django

2020-01-30 Thread mick
How to make custom url in the Django,I want to extract title from the HTML template and then get it displayed in url -- 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

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Shaheed Haque
I don't think you are overthinking this. On Thu, 30 Jan 2020, 12:40 Tom Moore, wrote: > Hi there, I'm following the guidelines by making sure the environment > variables are stored outside of the settings.py files. > > The project is "dockerised" and so the environment variables have been >

Re: What's a recommended/common approach to staging and production apps in Heroku, using Docker containers?

2020-01-30 Thread Álvaro Durán
Hi Tom, I had a similar problem a while ago using React and Django as separate containers, this tutorial helped me very much: https://dev.to/englishcraig/creating-an-app-with-docker-compose-django-and-create-react-app-31lf I'm not aware whether that's suitable to your case, but if it is so, I

How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Tom Moore
Hi there, I'm following the guidelines by making sure the environment variables are stored outside of the settings.py files. The project is "dockerised" and so the environment variables have been stored in files *docker-compose.yml* and *docker-compose-prod.yml*. This includes things like the

What's a recommended/common approach to staging and production apps in Heroku, using Docker containers?

2020-01-30 Thread Tom Moore
Hi there, I'm trying to set up *staging* and *production* apps in Heroku. Nothing fancy, just a way to test the app is running okay on Heroku's platform before it gets pushed to production. The project is containerised in Docker. I've tried setting up a pipeline in Heroku, but when I

Re: want to create multiple tables for the same app in Django

2020-01-30 Thread maninder singh Kumar
Write as many models for tables reqd in db What is the problem you are facing ? Could it be the tables don't appear in all HTML! Sent from my iPad > On 29-Jan-2020, at 9:32 PM, Pawan Kumar wrote: > > Hi Team, > > I want to create multiple tables for the same app in Django & data from these >

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Aldian Fazrihady
I don't think you should do anything. My daphne becomes secure/wss because it is behind nginx HTTP termination. On Thu, Jan 30, 2020 at 3:06 PM Jeremy Wai wrote: > My procfile has this line: > web: daphne APbackend.asgi:application --port $PORT --bind 0.0.0.0 > > On Thursday, January 30, 2020

django-request to log user statistics

2020-01-30 Thread Santhosh sridhar
Hi All, I am trying to use django_request module to login the user statistics. I have two versions of django-request 1.5.2 and 1.5.5 installed and I could see both the egg files inside site-packages directory. But when I tried to use 'request' in my INSTALLED_APPS settings I am getting an

Re: How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
My procfile has this line: web: daphne APbackend.asgi:application --port $PORT --bind 0.0.0.0 On Thursday, January 30, 2020 at 12:04:05 AM UTC-8, Jeremy Wai wrote: > > I have a embedded system that doesn't support the 'secure' part of > websocket secure, how do i disable the websocket "secure"

How do I use Daphne without websocket "secure"?

2020-01-30 Thread Jeremy Wai
I have a embedded system that doesn't support the 'secure' part of websocket secure, how do i disable the websocket "secure" part of my daphne application? I don't see it anywhere in my code that i've actually set it up. -- You received this message because you are subscribed to the Google