Thursday, September 30, 2021

Re: Python code changes are not reflecting on Django-based web server.

You can use the ps command:

ps -aef | grep "apache\|httpd"


The process id(pid) is the second column usually. If it changes, then
you know the process was restarted.

- Ryan N

On Thu, Aug 19, 2021 at 10:52:04PM -0400, Hasan Baig wrote:
> Yes systemctl stop and start httpd, i verified by checking the web page. How can i check pid?
>
> Regards
> Hasan
>
> > On Aug 19, 2021, at 8:55 AM, Ryan Nowakowski <tubaman@fattuba.com> wrote:
> >
> > I'd verify that the systemctl commands are actually starting and stopping httpd. Does the pid change?
> >
> >> On August 18, 2021 11:04:07 AM CDT, Hasan Baig <hasanbaigg@gmail.com> wrote:
> >> Hi,
> >>
> >> I have been hosting a django-based web server (httpd with mod_wsgi package) on Linux CentOS 7. I used to reflect the changes made in my code by restarting the web server using the following commands:
> >>
> >> sudo systemctl stop httpd
> >> sudo systemctl start httpd
> >>
> >> and it would reflect the changes smoothly. Since few days back, this strategy has not been work at all. That is, whenever I make any changes in my python code, even simply printing a message in log file, it is not reflected. To reflect the changes every time, I have to reboot the VM. I tried the following things already which did not help at all:
> >>
> >> • Clearing .pyc files
> >> • Restarting/Reloading httpd server
> >> • touch wsgi file
> >> • http is running without caching or proxying (modules have been commented out)
> >>
> >>
> >> All of the above mentioned tries did not appear to work. The changes are only reflected once when the VM is rebooted.
> >>
> >> What do I need to do to make the code changes reflected without rebooting the VM every time? Any clues, help or suggestions are highly appreciated.
> >>
> >> Thanks.
> >>
> >> regards
> >> HB
> >
> > --
> > 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+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06AA5FDA-FF21-498E-A2B5-AE3AC7252333%40fattuba.com.
>
> --
> 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+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/E8974440-DC64-4082-ACD7-6FB6AFAF04E5%40gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20210930193559.GF6979%40fattuba.com.

Monday, September 27, 2021

UnreadablePostError at /

I have seen two of these in recent days in production.

In both cases pwned-passwords-django seems to be involved.

On 25 September

Apache/mod_wsgi request data read error: Partial results are valid but processing is incomplete.

Today

Apache/mod_wsgi request data read error: The timeout specified has expired.


Stack overflow indicates they are random and to be expected sometimes
but they worry me.

If anyone has any ideas I'd appreciate hearing them.

If it gets more frequent I'll remove pwned-passwords-django to see if it
stops but I'd prefer to diagnose the proble before doing that.

Thanks for any help

Cheers

Mike


--
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6d5cb9b-1a4f-d236-bbd6-e7cf5fbfbba8%40dewhirst.com.au.

Sunday, September 26, 2021

Re: Cannot start Daphne / Looking for channels production deployment with daphne/nginx

Ok. Got a bit further but getting a different error....

daphne -b 0.0.0.0 -p 8000 mabtest.asgi.main

ERROR: 
ValueError: not enough values to unpack (expected 2, got 1)

Any suggestions?



On Thursday, September 23, 2021 at 9:45:59 AM UTC-5 jmenen...@gmail.com wrote:
You are missing a main attribute on your asgi.py file. Try with daphne -b 0.0.0.0 -p 8001 mabtest.asgi:application

El miércoles, 22 de septiembre de 2021 a las 20:37:50 UTC, mab.mo...@gmail.com escribió:
Hello, 

I am attempting to add asgi/channels to an existing django project/web app. I was originally able to get channels to work via python manage.py runserver ....
I am trying to deploy the project in production but cannot cat Daphne to start. Error messages and relevant files below. 

Questions
1. Can someone provide direction on getting the daphne error corrected?
2. Does anyone have any instruction on getting channels to work with daphne and nginx?

Thank you.
-------------------------
Attempting to run daphne server with error ...

(mabtest) marc@mymachine:~/webdev/mabtest$ daphne -b 0.0.0.0 -p 8001 mabtest.asgi:main
Traceback (most recent call last):
  File "/home/marc/Env/mabtest/bin/daphne", line 8, in <module>
    sys.exit(CommandLineInterface.entrypoint())
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 170, in entrypoint
    cls().run(sys.argv[1:])
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 232, in run
    application = import_by_path(args.application)
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/utils.py", line 14, in import_by_path
    target = getattr(target, bit)
AttributeError: module 'mabtest.asgi' has no attribute 'main'

## NOTES ##
- project name: mabtest
- app name: main
- redis is installed

----- mabtest/asgi.py -------

from .wsgi import * 
import os
import django
from django.core.asgi import get_asgi_application
from channels.routing import get_default_application
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.conf.urls import url
from main.routing import ws_urlpatterns

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mabtest.settings")
django.setup()
application = get_default_application()

----- main/routing.py -----

from django.urls import path
from .consumers import ws_consumer

# Set the path to call the consumer
ws_urlpatterns = [
    path('ws/main/', ws_consumer.as_asgi())

----- 

import json
#from channels.generic.websocket import WebsocketConsumer
from channels.generic.websocket import AsyncWebsocketConsumer
from datetime import datetime
from time import sleep

# Define the consumer class to send the data through WebsocketConsumer
class ws_consumer(AsyncWebsocketConsumer):

    # make a web socket connection 

    async def connect(self):

        # make a channel layer and group so it can display on multiple browers tabs

        self.group_name = "aprs"

        await self.channel_layer.group_add(
            self.group_name,
            self.channel_name
        )

        await self.accept()

        # group creates a message in key value pair format 

        now = datetime.now()

        await self.channel_layer.group_send(
            self.group_name,
            {
                'type': 'my_messages', # must match function def name below
                'my_message_1': 'This is message #1',
                'my_message_2': 'This is message #2',
                'my_message_3': now.strftime("%H:%M:%S"),
            }

        )


    # receive message from group and send it through websocket 

    async def my_messages(self, event):

        # collect information 

        my_message_1 = event['my_message_1']
        my_message_2 = event['my_message_2']
        my_message_3 = event['my_message_3']

        # send information via json and websocket

        await self.send(text_data=json.dumps({
            'my_message_1': my_message_1,
            'my_message_2': my_message_2,
            'my_message_3': my_message_3,

        }))


#        self.accept()

#        while(True):

#            now = datetime.now()
#            self.send(json.dumps({'timeValue': now.strftime("%H:%M:%S")}))
#            sleep(1)

    # disconnects from websocket

    async def disconnect(self, close_code):

        await self.channel_layer.group_discard(

            self.group_name,
            self.channel_name
        )

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/29c155be-fab3-4fe2-8821-de3aa56abd0fn%40googlegroups.com.

Thursday, September 23, 2021

Re: Cannot start Daphne / Looking for channels production deployment with daphne/nginx

You are missing a main attribute on your asgi.py file. Try with daphne -b 0.0.0.0 -p 8001 mabtest.asgi:application

El miércoles, 22 de septiembre de 2021 a las 20:37:50 UTC, mab.mo...@gmail.com escribió:
Hello, 

I am attempting to add asgi/channels to an existing django project/web app. I was originally able to get channels to work via python manage.py runserver ....
I am trying to deploy the project in production but cannot cat Daphne to start. Error messages and relevant files below. 

Questions
1. Can someone provide direction on getting the daphne error corrected?
2. Does anyone have any instruction on getting channels to work with daphne and nginx?

Thank you.
-------------------------
Attempting to run daphne server with error ...

(mabtest) marc@mymachine:~/webdev/mabtest$ daphne -b 0.0.0.0 -p 8001 mabtest.asgi:main
Traceback (most recent call last):
  File "/home/marc/Env/mabtest/bin/daphne", line 8, in <module>
    sys.exit(CommandLineInterface.entrypoint())
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 170, in entrypoint
    cls().run(sys.argv[1:])
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 232, in run
    application = import_by_path(args.application)
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/utils.py", line 14, in import_by_path
    target = getattr(target, bit)
AttributeError: module 'mabtest.asgi' has no attribute 'main'

## NOTES ##
- project name: mabtest
- app name: main
- redis is installed

----- mabtest/asgi.py -------

from .wsgi import * 
import os
import django
from django.core.asgi import get_asgi_application
from channels.routing import get_default_application
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.conf.urls import url
from main.routing import ws_urlpatterns

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mabtest.settings")
django.setup()
application = get_default_application()

----- main/routing.py -----

from django.urls import path
from .consumers import ws_consumer

# Set the path to call the consumer
ws_urlpatterns = [
    path('ws/main/', ws_consumer.as_asgi())

----- 

import json
#from channels.generic.websocket import WebsocketConsumer
from channels.generic.websocket import AsyncWebsocketConsumer
from datetime import datetime
from time import sleep

# Define the consumer class to send the data through WebsocketConsumer
class ws_consumer(AsyncWebsocketConsumer):

    # make a web socket connection 

    async def connect(self):

        # make a channel layer and group so it can display on multiple browers tabs

        self.group_name = "aprs"

        await self.channel_layer.group_add(
            self.group_name,
            self.channel_name
        )

        await self.accept()

        # group creates a message in key value pair format 

        now = datetime.now()

        await self.channel_layer.group_send(
            self.group_name,
            {
                'type': 'my_messages', # must match function def name below
                'my_message_1': 'This is message #1',
                'my_message_2': 'This is message #2',
                'my_message_3': now.strftime("%H:%M:%S"),
            }

        )


    # receive message from group and send it through websocket 

    async def my_messages(self, event):

        # collect information 

        my_message_1 = event['my_message_1']
        my_message_2 = event['my_message_2']
        my_message_3 = event['my_message_3']

        # send information via json and websocket

        await self.send(text_data=json.dumps({
            'my_message_1': my_message_1,
            'my_message_2': my_message_2,
            'my_message_3': my_message_3,

        }))


#        self.accept()

#        while(True):

#            now = datetime.now()
#            self.send(json.dumps({'timeValue': now.strftime("%H:%M:%S")}))
#            sleep(1)

    # disconnects from websocket

    async def disconnect(self, close_code):

        await self.channel_layer.group_discard(

            self.group_name,
            self.channel_name
        )

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e8332c6f-9f67-48fc-887f-da89cdcc03d4n%40googlegroups.com.

Wednesday, September 22, 2021

Cannot start Daphne / Looking for channels production deployment with daphne/nginx

Hello, 

I am attempting to add asgi/channels to an existing django project/web app. I was originally able to get channels to work via python manage.py runserver ....
I am trying to deploy the project in production but cannot cat Daphne to start. Error messages and relevant files below. 

Questions
1. Can someone provide direction on getting the daphne error corrected?
2. Does anyone have any instruction on getting channels to work with daphne and nginx?

Thank you.
-------------------------
Attempting to run daphne server with error ...

(mabtest) marc@mymachine:~/webdev/mabtest$ daphne -b 0.0.0.0 -p 8001 mabtest.asgi:main
Traceback (most recent call last):
  File "/home/marc/Env/mabtest/bin/daphne", line 8, in <module>
    sys.exit(CommandLineInterface.entrypoint())
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 170, in entrypoint
    cls().run(sys.argv[1:])
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/cli.py", line 232, in run
    application = import_by_path(args.application)
  File "/home/marc/Env/mabtest/lib/python3.8/site-packages/daphne/utils.py", line 14, in import_by_path
    target = getattr(target, bit)
AttributeError: module 'mabtest.asgi' has no attribute 'main'

## NOTES ##
- project name: mabtest
- app name: main
- redis is installed

----- mabtest/asgi.py -------

from .wsgi import * 
import os
import django
from django.core.asgi import get_asgi_application
from channels.routing import get_default_application
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.conf.urls import url
from main.routing import ws_urlpatterns

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mabtest.settings")
django.setup()
application = get_default_application()

----- main/routing.py -----

from django.urls import path
from .consumers import ws_consumer

# Set the path to call the consumer
ws_urlpatterns = [
    path('ws/main/', ws_consumer.as_asgi())

----- 

import json
#from channels.generic.websocket import WebsocketConsumer
from channels.generic.websocket import AsyncWebsocketConsumer
from datetime import datetime
from time import sleep

# Define the consumer class to send the data through WebsocketConsumer
class ws_consumer(AsyncWebsocketConsumer):

    # make a web socket connection 

    async def connect(self):

        # make a channel layer and group so it can display on multiple browers tabs

        self.group_name = "aprs"

        await self.channel_layer.group_add(
            self.group_name,
            self.channel_name
        )

        await self.accept()

        # group creates a message in key value pair format 

        now = datetime.now()

        await self.channel_layer.group_send(
            self.group_name,
            {
                'type': 'my_messages', # must match function def name below
                'my_message_1': 'This is message #1',
                'my_message_2': 'This is message #2',
                'my_message_3': now.strftime("%H:%M:%S"),
            }

        )


    # receive message from group and send it through websocket 

    async def my_messages(self, event):

        # collect information 

        my_message_1 = event['my_message_1']
        my_message_2 = event['my_message_2']
        my_message_3 = event['my_message_3']

        # send information via json and websocket

        await self.send(text_data=json.dumps({
            'my_message_1': my_message_1,
            'my_message_2': my_message_2,
            'my_message_3': my_message_3,

        }))


#        self.accept()

#        while(True):

#            now = datetime.now()
#            self.send(json.dumps({'timeValue': now.strftime("%H:%M:%S")}))
#            sleep(1)

    # disconnects from websocket

    async def disconnect(self, close_code):

        await self.channel_layer.group_discard(

            self.group_name,
            self.channel_name
        )

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/26317000-ce40-4068-814e-27dfde3af8edn%40googlegroups.com.

Tuesday, September 21, 2021

Re: Deploy help

Please provide the absolute path for static files does so that Django will be able to find and collect before putting to static root.

On Tue, 21 Sep 2021, 10:05 pm Daniel Gauvin, <daniel.gauvin@solutionsnc.qc.ca> wrote:
Hi,

I am looking for support to deploy a Django application on cPanel.  The application itself is working, however the static files (CSS, JS and Images) do not load in the application. 

In my settings.py file, it is as such:

STATIC_URL = '/static/'
STATICFILES_DIRS = ['static']
STATIC_ROOT = os.path.join(BASE_DIR, 'assets') 

MEDIA_URL = '/media/' 
MEDIA_ROOT = os.path.join(BASE_DIR, '/home/<myusername>/public_html/media') 

The static files are located in : /home/<myusername>/public_html/app/static and a copy is located in  /home/<myusername>/public_html/static.

Thank you for your help.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b3aa9ed-335b-4826-80a0-8a8852b18660n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHWAmNaMsxx4Yd8idSpv%2BUHTaxA6syssdtJnyN4L4yVdmMUj_A%40mail.gmail.com.

Re: need help integrating SSL with react/django web app

hi

I don't want to deep analysis of how can Cloudflare bring more preferred than normal cartbot but most likely it is the way it is built. it proxied connections offer tls /mtls edge certificate etc. which is known to us all but it is also there that it maintains its own CA and CA record underneath to maintain transparency. hope I am clear now. so why not? 

let me know if you have any good solution with Cloudflare that helps. 

On Tue, Sep 21, 2021 at 4:23 AM David Nugent <davidn@uniquode.io> wrote:
On Tue, Sep 21, 2021 at 2:11 AM hey there <c.sayan2016@gmail.com> wrote:
1. oracle autonomous linux's epl dont have certbot

pip install certbot
You already have pip installed if you're running Django. This takes all of 10-15 seconds...

and
2.  I mostly like Cloudflare than certbot because Cloudflare has some own methods to maintain ssl certificate

In your crontab:

30 03 01 * * /path/to/certbot renew

Change time and/or date as appropriate - zero cost, fully automated SSL certificate updates. Certbot is pretty cool when it comes to detecting certs that require updating.

Not too difficult, right?

Regards, David

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgUUtrW%2BdduS8aDURT-7odWcGk768QPtPfnLhQ9N%3D704WQ%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BiAj8hF7J%3DAJuT0x7t0SL5uZ-r8A2_-7mJYQ0v5TmGU44WLkQ%40mail.gmail.com.

Re: Deploy help

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHmRmrqYVFzXu1a
SBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiytNkhOOIYA/l8ppvyaRlrp/jP
jAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxpxyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5Tpt
wRP9cPRWIoR5fcRA8RQ1X66NkIplVBbH7NeLuTtICAa0dnyTh50x+Wapu1kDEWmr8ssUzf6c8yBJ
AHKBohQowZmQ8sYtw2h4gX0zT4V3TY9y8TvTFGhPlM7l5QRFBlZqCBp5K/6xkyaAf+VlUwsdMqe8
UOz5mMJ5ZLU9JEzFyfSiM8xScwIzPcyQhOiLAgqIozTag+9B6QgD66Xa80yrFmfXyVtUOtS6ykQs
epR/fq6ySUKjWGFJ/Psq0wNuBaCHzEwEfeShZquL/jXmcUFJhVbeDYIZcPngktFCZ30fYuMAEQEA
Ac0mS2FzcGVyIExhdWRydXAgPGxhdWRydXBAc3RhY2t0cmFjZS5kaz7CwQ8EEwEIADkWIQS5plkB
vlt0D6iFDi7l2crGSqpV6wUCYEl+sQUJBaOagAIbAwULCQgHAgYVCAkKCwIFFgIDAQAACgkQ5dnK
xkqqVeuAxQwApU4laVk34B2dZpFUMmkO46OeimzLiZaNYgs+SVIDw/WtaVbLUq+KH/TIMTiX5wgG
RZ4WEC2L4w66j8EzVx8vE2fNPx+yP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xoxM8WDp3bCdr5E1bziJYkG+VuEejk60rlURO6dZ9uJMtDnKMTZdJ26cN
01iwWG/O83pOL9vyMOj5q+XC4nmi4DV/N2wneBH4VyNfv1fNubDrE0M8iXX/WECIG2RSE0N6C4Rf
KIC03yslL4lnhSc426Bnxkf8sZm+oFo4ian0GcuNdIQBdBdAek9F2CX6whDbL4mZFAeY/e6emWmP
8Y/z4X2qaCpW/GHS+XFccT1h8CxqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo4U7bitCfyO17dt6N
C/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKroG/Vrwq029ftqnuDluS/DzmuIqWL
uAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGpucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3
APy6Ex02Mxub8nNnQjXcStHZBHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----On 20/09/2021 21.14, Anornymous u wrote:
> Sorry my bad, it was meant for the person asking the question about
> deployment.
>

No worries.

Just a bit confusing when it happens.

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8b98f8ce-4a54-7779-9d49-ac5a71924e77%40stacktrace.dk.

Re: Deploy help

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHmRmrqYVFzXu1a
SBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiytNkhOOIYA/l8ppvyaRlrp/jP
jAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxpxyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5Tpt
wRP9cPRWIoR5fcRA8RQ1X66NkIplVBbH7NeLuTtICA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anornymous u wrote:
> Open the domain on a different browser see if it works, could be your
> browser is stuck with cache. Am assuming you had collected all the
> static files using the command python manage.py collecstatic
>

I think you replied to the wrong person. I don't see how this is
relevant to what I wrote.

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0014d693-b25a-06fb-d7e4-75f131c25350%40stacktrace.dk.

Re: Deploy help

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsDNBGBJfrABDACxIFOMQIsP94wTkgf76JEHyTITmYnprsTeRmDet01G5etZ9ZHmRmrqYVFzXu1a
SBbaejm/ppbRrBB7YmFETbpnZepWJnuhridvjV37duRH3g/9ppiytNkhOOIYA/l8ppvyaRlrp/jP
jAm27HVxi1Nu0syaWwTFKbUTtLKldIhuWvAXkgxpxyBdB3jfmKoJ4rvTzZU+saKgaFExRmdd5Tpt
wRP9cPRWIoR5fcRA8RQ1X66NkIplVBbH7NeLuTtICAa0dnyTh50x+Wapu1kDEWmr8ssUzf6c8yBJ
AHKBohQowZmQ8sYtw2h4gX0zT4V3TY9y8TvTFGhPlM7l5QRFBlZqCBp5K/6xkyaAf+VlUwsdMqe8
UOz5mMJ5ZLU9JEzFyfSiM8xScwIzPcyQhOiLAgqIozTag+9B6QgD66Xa80yrFmfXyVtUOtS6ykQs
epR/fq6ySUKjWGFJ/Psq0wNuBaCHzEwEfeShZquL/jXmcUFJhVbeDYIZcPngktFCZ30fYuMAEQEA
Ac0mS2FzcGVyIExhdWRydXAgPGxhdWRydXBAc3RhY2t0cmFjZS5kaz7CwQ8EEwEIADkWIQS5plkB
vlt0D6iFDi7l2crGSqpV6wUCYEl+sQUJBaOagAIbAwULCQgHAgYVCAkKCwIFFgIDAQAACgkQ5dnK
xkqqVeuAxQwApU4laVk34B2dZpFUMmkO46OeimzLiZaNYgs+SVIDw/WtaVbLUq+KH/TIMTiX5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ysZKqlXrbHsL
/0rWbmkdYmZ+Wdj9vrhxoxM8WDp3bCdr5E1bziJYkG+VuEejk60rlURO6dZ9uJMtDnKMTZdJ26cN
01iwWG/O83pOL9vyMOj5q+XC4nmi4DV/N2wneBH4VyNfv1fNubDrE0M8iXX/WECIG2RSE0N6C4Rf
KIC03yslL4lnhSc426Bnxkf8sZm+oFo4ian0GcuNdIQBdBdAek9F2CX6whDbL4mZFAeY/e6emWmP
8Y/z4X2qaCpW/GHS+XFccT1h8CxqsFxnAhnecjdMCv/TJLXMNk9LihEeUEZo4U7bitCfyO17dt6N
C/7wbGZCJmNPO7V3YYeI8MwzOkvmXqLcHz0IPQATuLMB1HKroG/Vrwq029ftqnuDluS/DzmuIqWL
uAT+2nIe1JLWFlS9OUTi4i+y0NDlxWCZOaGpucR+ueFKv1de3nVjdd6oN+MIO9gQ3NE53FrO46A3
APy6Ex02Mxub8nNnQjXcStHZBHO6KilQ+QLzSektD8IpHM7tR6P+5PP6AQ==
=NePe
-----END PGP PUBLIC KEY BLOCK-----On 21/09/2021 17.39, Daniel Gauvin wrote:
> Hi,
>
> I am looking for support to deploy a Django application on cPanel.  The
> application itself is working, however the static files (CSS, JS and
> Images) do not load in the application.
>

Will this guide help you?

https://tubemint.com/deploy-django-on-cpanel/

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a854aad6-fc0b-269e-f95a-75975ca01903%40stacktrace.dk.

Deploy help

Hi,

I am looking for support to deploy a Django application on cPanel.  The application itself is working, however the static files (CSS, JS and Images) do not load in the application. 

In my settings.py file, it is as such:

STATIC_URL = '/static/'
STATICFILES_DIRS = ['static']
STATIC_ROOT = os.path.join(BASE_DIR, 'assets') 

MEDIA_URL = '/media/' 
MEDIA_ROOT = os.path.join(BASE_DIR, '/home/<myusername>/public_html/media') 

The static files are located in : /home/<myusername>/public_html/app/static and a copy is located in  /home/<myusername>/public_html/static.

Thank you for your help.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b3aa9ed-335b-4826-80a0-8a8852b18660n%40googlegroups.com.

Monday, September 20, 2021

Re: need help integrating SSL with react/django web app

On Tue, Sep 21, 2021 at 2:11 AM hey there <c.sayan2016@gmail.com> wrote:
1. oracle autonomous linux's epl dont have certbot

pip install certbot
You already have pip installed if you're running Django. This takes all of 10-15 seconds...

and
2.  I mostly like Cloudflare than certbot because Cloudflare has some own methods to maintain ssl certificate

In your crontab:

30 03 01 * * /path/to/certbot renew

Change time and/or date as appropriate - zero cost, fully automated SSL certificate updates. Certbot is pretty cool when it comes to detecting certs that require updating.

Not too difficult, right?

Regards, David

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAE5VhgUUtrW%2BdduS8aDURT-7odWcGk768QPtPfnLhQ9N%3D704WQ%40mail.gmail.com.

Re: Deploy help

Sorry my bad, it was meant for the person asking the question about deployment.

On Tue, 21 Sep 2021, 21:49 Kasper Laudrup, <laudrup@stacktrace.dk> wrote:
On 20/09/2021 19.08, Anornymous u wrote:
> Open the domain on a different browser see if it works, could be your
> browser is stuck with cache. Am assuming you had collected all the
> static files using the command python manage.py collecstatic
>

I think you replied to the wrong person. I don't see how this is
relevant to what I wrote.

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0014d693-b25a-06fb-d7e4-75f131c25350%40stacktrace.dk.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMXTB%3Dco8x%2BSz1OHeNFFUNu%2BtCDduBmeSRQ3smBLdquEEPuT4A%40mail.gmail.com.

Re: Deploy help

Open the domain on a different browser see if it works, could be your browser is stuck with cache. Am assuming you had collected all the static files using the command python manage.py collecstatic

On Tue, 21 Sep 2021, 19:41 Kasper Laudrup, <laudrup@stacktrace.dk> wrote:
On 21/09/2021 17.39, Daniel Gauvin wrote:
> Hi,
>
> I am looking for support to deploy a Django application on cPanel.  The
> application itself is working, however the static files (CSS, JS and
> Images) do not load in the application.
>

Will this guide help you?

https://tubemint.com/deploy-django-on-cpanel/

Kind regards,

Kasper Laudrup

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a854aad6-fc0b-269e-f95a-75975ca01903%40stacktrace.dk.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMXTB%3DdHVrdx8eGUcfDsWxJXgPUEDO9_%3D6%2BTE4jYGJNKQozcUw%40mail.gmail.com.

Re: need help integrating SSL with react/django web app

1. oracle autonomous linux's epl dont have certbot
and
2.  I mostly like Cloudflare than certbot because Cloudflare has some own methods to maintain ssl certificate

On Mon, Sep 20, 2021 at 2:37 PM FIRDOUS BHAT <frdsbhat9@gmail.com> wrote:
Why don't you explore certbot? 

On Sun, Sep 19, 2021, 8:14 PM MR INDIA <buddietube123@gmail.com> wrote:
Select os and server and it will show the docs, you have to first shutdown the server then after following the docs restart the server.


On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:
hey

I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. 
foe Django you need mod_wsgi with all which is tricky. 

On Sat, Sep 18, 2021 at 7:18 PM MR INDIA <buddie...@gmail.com> wrote:
See this 
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if you have shell access
On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

python 3.2.6
django 3.2.7
cx_oracle 8



On Sat, 18 Sep 2021, 2:25 am hey there, <c.say...@gmail.com> wrote:
hi 

i am also stuck 

On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed <amarb...@gmail.com> wrote:
I am using Nginx as a proxy for my Django app and this method is working just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed <amarb...@gmail.com> wrote:
I think you're supposed to install the certificate in your web server (Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain <jmccla...@gmail.com> wrote:
Hello,

I am having difficulties connecting SSL to my React/Python webapp

I am trying to integrate the PWA and am having difficulties getting the SSL to adopt to the app.

Does anyone have experience with this?

Cheers

--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com.

--
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...@googlegroups.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6f2767b-510a-4cf6-b74c-44c7e1d87333n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFB6YJr8eFXjgTX_%2B2s4WypzMQ%2BDy4XVfqiZDKNCUYD3MnNmXA%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BiAj8gXHWsKwGHdDmRZR8Pqn_tDLrbXF35hpEG1tSG7Taam5A%40mail.gmail.com.

Re: need help integrating SSL with react/django web app

Why don't you explore certbot? 

On Sun, Sep 19, 2021, 8:14 PM MR INDIA <buddietube123@gmail.com> wrote:
Select os and server and it will show the docs, you have to first shutdown the server then after following the docs restart the server.


On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:
hey

I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. 
foe Django you need mod_wsgi with all which is tricky. 

On Sat, Sep 18, 2021 at 7:18 PM MR INDIA <buddie...@gmail.com> wrote:
See this 
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if you have shell access
On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

python 3.2.6
django 3.2.7
cx_oracle 8



On Sat, 18 Sep 2021, 2:25 am hey there, <c.say...@gmail.com> wrote:
hi 

i am also stuck 

On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed <amarb...@gmail.com> wrote:
I am using Nginx as a proxy for my Django app and this method is working just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed <amarb...@gmail.com> wrote:
I think you're supposed to install the certificate in your web server (Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain <jmccla...@gmail.com> wrote:
Hello,

I am having difficulties connecting SSL to my React/Python webapp

I am trying to integrate the PWA and am having difficulties getting the SSL to adopt to the app.

Does anyone have experience with this?

Cheers

--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com.

--
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...@googlegroups.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6f2767b-510a-4cf6-b74c-44c7e1d87333n%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFB6YJr8eFXjgTX_%2B2s4WypzMQ%2BDy4XVfqiZDKNCUYD3MnNmXA%40mail.gmail.com.

Sunday, September 19, 2021

Re: need help integrating SSL with react/django web app

Select os and server and it will show the docs, you have to first shutdown the server then after following the docs restart the server.


On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote:
hey

I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. 
foe Django you need mod_wsgi with all which is tricky. 

On Sat, Sep 18, 2021 at 7:18 PM MR INDIA <buddie...@gmail.com> wrote:
See this 
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if you have shell access
On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

python 3.2.6
django 3.2.7
cx_oracle 8



On Sat, 18 Sep 2021, 2:25 am hey there, <c.say...@gmail.com> wrote:
hi 

i am also stuck 

On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed <amarb...@gmail.com> wrote:
I am using Nginx as a proxy for my Django app and this method is working just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed <amarb...@gmail.com> wrote:
I think you're supposed to install the certificate in your web server (Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain <jmccla...@gmail.com> wrote:
Hello,

I am having difficulties connecting SSL to my React/Python webapp

I am trying to integrate the PWA and am having difficulties getting the SSL to adopt to the app.

Does anyone have experience with this?

Cheers

--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com.

--
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...@googlegroups.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b6f2767b-510a-4cf6-b74c-44c7e1d87333n%40googlegroups.com.

Using ModelForm to get labels in a DetailView

I don't know if this is good practice, but to get field labels in a DetailView, it seems to work fine if you just add a form to the context:

views.py:

class ItemDetailView(DetailView):

    model = Item
    context_object_name = "item"

    def get_context_data(self, **kwargs):
        context_data = super().get_context_data(**kwargs)
        context_data['form'] = ItemForm # just to get the labels
        return context_data


item_detail_view.html:

<div class="label">{{ form.name.label_tag }}</div><div class="value"> {{ item.name }}</div>
<div class="label">{{ form.notes.label_tag }}</div><div class="value"> {{ item.notes }}</div>
<div class="label">{{ form.asset_number.label_tag }}</div><div class="value"> {{ item.asset_number }}</div>
<div class="label">{{ form.serial_number.label_tag }}</div><div class="value"> {{ item.serial_number }}</div>
<div class="label">{{ form.network_name.label_tag }}</div><div class="value"> {{ item.network_name }}</div>

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e84f2b57-6e64-4801-bd0f-ff8525e93ba1n%40googlegroups.com.

Saturday, September 18, 2021

Re: need help integrating SSL with react/django web app

hey

I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. 
foe Django you need mod_wsgi with all which is tricky. 

On Sat, Sep 18, 2021 at 7:18 PM MR INDIA <buddietube123@gmail.com> wrote:
See this 
https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx Use letsencrypt if you have shell access
On Saturday, 18 September 2021 at 02:41:54 UTC+5:30 hey there wrote:

python 3.2.6
django 3.2.7
cx_oracle 8



On Sat, 18 Sep 2021, 2:25 am hey there, <c.say...@gmail.com> wrote:
hi 

i am also stuck 

On Monday, May 10, 2021 at 12:21:25 AM UTC+5:30 jmccla...@gmail.com wrote:
Hello Ammar,

we're stuck, have been for days

We have nginx set in ec2 instance but cannot get the ssl to slip in.

I copied in Divy who is also working to get this solved

any help would be appreciated


can you help me with this or provide any documentation

On Sat, 8 May 2021 at 10:16, Ammar Mohammed <amarb...@gmail.com> wrote:
I am using Nginx as a proxy for my Django app and this method is working just fine.

On Sat, May 8, 2021, 11:14 Ammar Mohammed <amarb...@gmail.com> wrote:
I think you're supposed to install the certificate in your web server (Nginx, Apache).
Follow the manual to install it to your server and everything will be fine.

On Sat, May 8, 2021, 10:35 John McClain <jmccla...@gmail.com> wrote:
Hello,

I am having difficulties connecting SSL to my React/Python webapp

I am trying to integrate the PWA and am having difficulties getting the SSL to adopt to the app.

Does anyone have experience with this?

Cheers

--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN-hv_qHS2wdhuwYQLob1C_uM8vgfpbqnvxGke5oy8CyuT551g%40mail.gmail.com.

--
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...@googlegroups.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c48904e-41b0-4959-8daf-6926f7b95652n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/4WtsxZ6FUJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fc47fc8f-2894-4869-b275-4ebe7211c2bbn%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BiAj8ibGrSeh4L5tQqhQd%2BampM3XV0yOyJ6o1N6yKy6Ku-gWA%40mail.gmail.com.