Re: You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread 'Kasper Laudrup' via Django users
On 09/11/2022 10.52, Priyanka Sivaratri wrote: Hi, I am new to django and I appreciate your quick help. I am able to run django server on localhost:8000 but I am seeing this error : *You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.*

Re: Email Sending In Django not working

2022-11-09 Thread Ahmed omar miladi
you can use the function send mail of django Téléchargez Outlook pour iOS De : django-users@googlegroups.com de la part de It's Aladdin Envoyé : Wednesday, November 9, 2022 12:06:33 PM À : django-users@googlegroups.com Objet : Re: Email

Re: Email Sending In Django not working

2022-11-09 Thread Jitendra kumar Patra
Please use int type EMAIL_PORT = 587 On Wed, 9 Nov, 2022, 16:42 peteru mimo, wrote: > EMAIL_PORT = '587' > > On Wed, Nov 9, 2022 at 11:56 AM peteru mimo wrote: > >> Good day team, >> >> I have been facing this challenge in sending mail in django >> >> here is the error *"A connection attempt

Re: Email Sending In Django not working

2022-11-09 Thread Lakshyaraj Dash
It's more likely that google is not accepting the credentials you are providing or else the smtp server has just hung up due to several requests. You can do it without using the django.core.mail. I've written an article recently on dev.to

Re: Email Sending In Django not working

2022-11-09 Thread peteru mimo
EMAIL_PORT = '587' On Wed, Nov 9, 2022 at 11:56 AM peteru mimo wrote: > Good day team, > > I have been facing this challenge in sending mail in django > > here is the error *"A connection attempt failed because the connected > party did not properly respond after a period of time, or

Email Sending In Django not working

2022-11-09 Thread peteru mimo
Good day team, I have been facing this challenge in sending mail in django here is the error *"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"* *Code* def

STATIC FILE

2022-11-09 Thread Mh Raffi
Hi, I run cmd to collect static files but files are stored in c:\ but not in the actual project folder. My project folder is on the desktop. while running the command am into that root folder of the project. and i have images that are also not stored. I have an app in railway host and debug in a

You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread Priyanka Sivaratri
Hi, I am new to django and I appreciate your quick help. I am able to run django server on localhost:8000 but I am seeing this error : *You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.* urls.py: from django.contrib import admin from

Re: Reply: Re: Hosting django with Namecheap

2022-11-09 Thread Kiyavilo Msekwa
The static files in ur Django project should reflect to public_html/static files Sent from my iPhone > On 9 Nov 2022, at 09:27, Namanya Daniel wrote: > > Thanks Jeff, > > i re-uploaded the website and it worked but now i have an issue with static > files. > > i've static_url= "/static/"

Re: Email Sending In Django not working

2022-11-09 Thread It's Aladdin
Google hast stopped less secure apps, so u cant send email messages anymore with ur email and password, U will have to find some other way of sending mails. On Wed, 9 Nov, 2022, 16:26 peteru mimo, wrote: > Good day team, > > I have been facing this challenge in sending mail in django > > here

Re: Email Sending In Django not working

2022-11-09 Thread Lakshyaraj Dash
Even if Google has stopped the support, emails can be still sent using two step verification and generating app passwords after enabling two step verification. Please update you email password with the generated app password. Steps: 1. Go to manage my Google account 2. Go to security tab 3.

Combining two subquery counts using ORM

2022-11-09 Thread Matthew Hegarty
My question is about translating a SQL query to the ORM. I want to combine the output of two queries into one. The query is counting records in the same table (Task) using two different fields. The query is: select q1.taskname, q1.count, q2.count, (q1.count + q2.count) as total from ( select

Re: STATIC FILE

2022-11-09 Thread Lakshyaraj Dash
Set the STATIC_ROOT conf as follows import os # ignore if once imported STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') Also see of you've allowed that particular host. Thanks and Regards Lakshyaraj Dash On Wed, Nov 9, 2022, 20:57 Mh Raffi wrote: > Hi, > I run cmd to collect static files

Re: Combining two subquery counts using ORM

2022-11-09 Thread Matthew Hegarty
Thanks I made some progress, and this gets me most of the way there (only the total count is wrong at present) def get_queryset(self): created_q = Q(created__gte=self.start_date) & Q(created__lt=self.end_date) completed_q = Q(completed__gte=self.start_date) &

Re: Combining two subquery counts using ORM

2022-11-09 Thread kateregga julius
Post your model here and we do it On Wed, Nov 9, 2022, 7:37 PM Matthew Hegarty wrote: > My question is about translating a SQL query to the ORM. > > I want to combine the output of two queries into one. The query is > counting records in the same table (Task) using two different fields. > >

formulaire dynamique

2022-11-09 Thread Arnold Falanga
Bonjour quelqu'un peut m'aider à concevoir un formulaire dynamique avec Django[image: capture_jupiter.png] l'idée est d'avoir deux parties dans ce formulaire . un lien pour ajouter les lignes -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs.

2022-11-09 Thread Chukwudi Onwusa
Please What exactly is the name of your error? Is it showing 'page not found' ? If so, then kindly apply the urls to your localhost:8000/urls_name Regards... On Wed, Nov 9, 2022, 18:26 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > On 09/11/2022 10.52, Priyanka

Re: Combining two subquery counts using ORM

2022-11-09 Thread Ross Meredith
Last time I checked you can't use subquery inside the FROM clause. If you can please let me know how because I had this a while back and got stuck. I ended up using a package called django-cte. On Wed, Nov 9, 2022 at 9:01 PM Matthew Hegarty wrote: > Thanks > > I made some progress, and this

Re: STATIC FILE

2022-11-09 Thread ritik sahoo
You must import media url On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > Hi, > I run cmd to collect static files but files are stored in c:\ but not in > the actual project folder. > My project folder is on the desktop. > while running the command am into that root folder of the project. > and

Re: STATIC FILE

2022-11-09 Thread Mh Raffi
I have that configuration setup. Images are not loading and collect static is collecting in c drive but my project is in desktop. On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > You must import media url > > On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > >> Hi, >> I run cmd to collect

Re: STATIC FILE

2022-11-09 Thread Mh Raffi
Media url in settings I have. On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > You must import media url > > On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > >> Hi, >> I run cmd to collect static files but files are stored in c:\ but not in >> the actual project folder. >> My project folder

Re: STATIC FILE

2022-11-09 Thread Chukwudi Onwusa
I think you should make your work more organized, iff I truly understand you, by putting your static directory inside your working directory. On Thu, Nov 10, 2022, 04:25 Mh Raffi wrote: > Media url in settings I have. > > On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > >> You must import