Re: Template doesn't run in browser

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
Folder `projects` should be inside `templates`. Right now the folder is named 'templates/projects`. Please fix that first. On Friday, 2 June 2023 at 22:04:03 UTC+8 Safaet Jaman wrote: > > [image: Screenshot 2023-06-02 105157.png][image: Screenshot 2023-06-02 > 105348.png] -- You received this

Re: how to convert to Django 3 or 4

2023-06-02 Thread Mike Dewhirst
On 3/06/2023 11:57 am, john fabiani wrote: aware there is no longer the "patterns" urlpatterns = [     ... ] It is just a list nowadays. -- 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 d

Re: how to convert to Django 3 or 4

2023-06-02 Thread carlos
maybe maybe this app hepl you i don't used never but a read this good, but i don't know is helped you https://github.com/adamchainz/django-upgrade On Fri, Jun 2, 2023 at 8:38 PM Mike Dewhirst wrote: > On 3/06/2023 7:20 am, john fabiani wrote: > > Hi everyone, > > I am tasked with updating/upgrad

Re: how to convert to Django 3 or 4

2023-06-02 Thread Mike Dewhirst
On 3/06/2023 7:20 am, john fabiani wrote: Hi everyone, I am tasked with updating/upgrading a very old Django web site - I believe it is 1.7.  I need convert and need what is required. Thanks in advance. I need to convert the following: Because all your urls are regular expressions, you ca

Re: how to convert to Django 3 or 4

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
I think Django 4 still have backward compatibility with `url` although `path` is preferable. You can try to `runserver` in your local, upgrade your django version in your virtualenv to version 4 and troubleshoot the error messages (if any) one by one. On Sat, 3 Jun 2023 at 05:20, john fabiani wr

Re: how to convert to Django 3 or 4

2023-06-02 Thread john fabiani
Thanks for taking the time. I'm hoping someone will take the time to explain how to replace the old code.  As you might be aware there is no longer the "patterns".  So I am trying to determine how the url.py directs Django to the correct view? Johnf On 6/2/23 6:12 PM, David Nugent wrote: I h

Re: how to convert to Django 3 or 4

2023-06-02 Thread David Nugent
I have been through the experience of moving existing Django 1.5 app to 3.2 a couple years ago. Without doubt, the path of least resistance is to rebuild the site from scratch. Start with the latest release (ie. 4.2 as of today). You'll have the apps already defined and these have a blueprint. You

how to convert to Django 3 or 4

2023-06-02 Thread john fabiani
Hi everyone, I am tasked with updating/upgrading a very old Django web site - I believe it is 1.7.  I need convert and need what is required. Thanks in advance. I need to convert the following: from django.conf.urls import patterns, include, url from django.contrib import admin from django.c

Connection reset by peer on file upload if JWT expires

2023-06-02 Thread Larry Martell
We have a django app and it supports a file upload request. The entire upload comprises multiple requests. We are authenticating with JWT and we have logic to handle a 401 and in that case use the refresh token to get a new access token and resend the failed request. However if the token expires be

Re: Template doesn't run in browser

2023-06-02 Thread 'Kasper Laudrup' via Django users
If you want someone to spend their time writing a proper answer, start by writing a proper question. 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,