[no subject]

2019-11-15 Thread Paras Jain
i am not able to send email showing odd type of error need help views.py: from django.shortcuts import render, redirect from django.contrib import messages from profilestorer.settings import EMAIL_HOST_USER from django.conf import settings from .forms import SignUpForm from django.core.mail import

Re: Django GIS query on annotated spatial field

2019-11-15 Thread Bill Bouzas
Good morning Simon, Sorry for the delayed response. I a using Django 2.2.6 (released October 1st, 2019) Kind regards, Bill On Thu, 14 Nov 2019 at 16:41, Simon Charette wrote: > Hello Bill, > > Could you give us more details about which version of Django you are using? > > There was a few Djang

How to change how foreign keys are view in admin site

2019-11-15 Thread Usman Hassan
I have a problem with my django app, I created a an that has two models one which is post and the other is comment, and the comment has a foreign key relationship to post. But anytime I view the admin site and I tried to relate a comment to a post I made, it won't show me the title of the post b

Re: SPA websites with Django

2019-11-15 Thread uday devikar
I want to take a input from a end user Name , email and message .. I don't want to validate user or anything ...just want a input . In django . What should I do...? On Thu 14 Nov, 2019, 6:19 PM Michael Thomas, wrote: > Django is a backend platform - it's agnostic as to what type of front end >

Re: SPA websites with Django

2019-11-15 Thread Motaz Hejaze
you need to go throw the django poll app tutorial On Fri, Nov 15, 2019 at 2:48 PM uday devikar wrote: > I want to take a input from a end user > > Name , email and message .. I don't want to validate user or anything > ...just want a input . In django . > What should I do...? > > > On Thu 14 Nov

Re: SPA websites with Django

2019-11-15 Thread Motaz Hejaze
yes you can , you can use django rest framework for making backend api and use javascript libraries in frontend On Thu, Nov 14, 2019 at 2:26 PM Inna Reddy wrote: > Hi, > > Can we build Single page web applications with Django ? > > -- > You received this message because you are subscribed to th

Re: How to change how foreign keys are view in admin site

2019-11-15 Thread Paras Jain
after that model write like this def __str__(self): return self.title On Fri, Nov 15, 2019 at 6:18 PM Usman Hassan wrote: > I have a problem with my django app, I created a an that has two models > one which is post and the other is comment, and the comment has a foreign > key relationship

Re: Django GIS query on annotated spatial field

2019-11-15 Thread Simon Charette
Can you reproduce with Django 2.2.7 (releases November 4th, 2019) Le vendredi 15 novembre 2019 06:04:32 UTC-5, Bill Bouzas a écrit : > > Good morning Simon, > > Sorry for the delayed response. I a using Django 2.2.6 (released October > 1st, 2019) > > Kind regards, > Bill > > On Thu, 14 Nov 2019 a

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread Patrick Carra
In case anyone is interested I fixed this with some simple regex in my view. I identified the patterns for which apache was removing the // and replacing with a single / and then wrote some rules around that and replaced the single / with the // before passing it to my query. -- You received

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread DANIEL URBANO DE LA RUA
Nice but i am always with nginx and i dont know if it has the same problem or not On Fri, 15 Nov 2019, 18:02 Patrick Carra, wrote: > In case anyone is interested I fixed this with some simple regex in my > view. I identified the patterns for which apache was removing the // and > replacing with

Conditional Order By

2019-11-15 Thread Kev H
I have a model where a field can be null (and is most of the time). However, I need to order_by this both this field and another field (the 2nd field is never null) so that the results would be sorted by from high to low (1st based on the possible null field if it is not null and then by the 2

Can we nix "group_expiry" from the Channel Layer Specification

2019-11-15 Thread Adam Hooper
Hi group, I maintain the channels_rabbitmq channel layer. I and other users of channels_rabbitmq encountered a problem: day-old group memberships expire by default. This isn't a bug in channels_rabbitmq: it's a bug in the specification. To my

Re: Django Channels persistent DB connection

2019-11-15 Thread Adam Hooper
On Wednesday, October 30, 2019 at 12:17:54 PM UTC-4, BR wrote: > > I moved from a local sqlite3 DB file to a shared remote (local LAN) > MariaDB server and noticed a bit of a slow down. On top of the DB now being > remote, I'm also using SSL to encrypt the DB information. Based on the > descript

Re: Django Channels persistent DB connection

2019-11-15 Thread o1bigtenor
On Fri, Nov 15, 2019 at 12:53 PM Adam Hooper wrote: > > On Wednesday, October 30, 2019 at 12:17:54 PM UTC-4, BR wrote: >> >> I moved from a local sqlite3 DB file to a shared remote (local LAN) MariaDB >> server and noticed a bit of a slow down. On top of the DB now being remote, >> I'm also usin

Problem django-allauth

2019-11-15 Thread Nemanja Marković
I want to install django-allauth however it throws me a code error: Traceback (most recent call last): File "c:\program files\python37-32\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\program files\python37-32\lib\runpy.py", line 85, in _run_code exec(c

Re: Django Channels persistent DB connection

2019-11-15 Thread Adam Hooper
On Friday, November 15, 2019 at 2:02:51 PM UTC-5, ajoeiam wrote: > > If I want a connection to the database but want it for only the time > the customer (query source) is logged in - - - how do I specify that? > (So I don't want the connection to be timed - - - would rather the > connection was

Re: Problem django-allauth

2019-11-15 Thread Kevin Dublin
Are you in your virtual environment? And installing with virtualenv or pipenv vs just pip? On Fri, Nov 15, 2019, 11:06 AM Nemanja Marković wrote: > I want to install django-allauth however it throws me a code error: > > Traceback (most recent call last): > File "c:\program files\python37-32\li

Re: Conditional Order By

2019-11-15 Thread Simon Charette
Hello there, You'll want to use Coalesce[0] for this purpose. Model1.objects.order_by(Coalesce('effectual_rating', 'rating').desc()) Cheers, Simon [0] https://docs.djangoproject.com/en/2.2/ref/models/database-functions/#coalesce Le vendredi 15 novembre 2019 13:32:46 UTC-5, Kev H a écrit : > >