Re: Help

2021-08-12 Thread ola neat
Ohk So this is it I'm working on a project using drf & angular & I want to add forgot password functionality to the project, which i have successfully achieved now my issue is this after they link for changing password has been successfully sent to the user's email address( IMG above) how do i en

Re: Async Help Needed

2021-08-12 Thread Andrew Godwin
The example you presented should Just Work - that error generally only occurs if you return an un-awaited coroutine, which if you're just returning a response, should be impossible. What version of Python and Django are you running? Andrew On Thu, Aug 12, 2021, at 11:03 AM, Steven Mapes wrote:

Re: GeoDjango with SpatialLite on Windows 10

2021-08-12 Thread Michael Ross
On Thu, 12 Aug 2021 04:15:57 -0700 (PDT) Tugg Speedman wrote: > > Hello everyone, > > I'm new to GeoDjango and therefore I tried to follow the tutorial > (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) first. > But the problem is, it doesn't work with SQLite a.k.a SpatialLit

Re: Help

2021-08-12 Thread Kasper Laudrup
On 12/08/2021 15.05, ola neat wrote: > This is d link I've generate 4 reset pswd sent 2 d user email, but I'm > using angular 4 my front end,  now my iss is how do i pass angular url > so that when d user clicks on diz link, he/she will b redirected to d > angular change pswd form > It is pretty h

Async Help Needed

2021-08-12 Thread Steven Mapes
Does anyone have some links to good guides on getting asnyc to work with Django? I have a use case where I really need to have a view give an async response but I can't get even the most basic of examples working. I've tried the examples from https://testdriven.io/blog/django-async-views/ with

RE: DateTimeField to DateField

2021-08-12 Thread dupakoor kannan
Hello everyone, I have a model in our database class UsersSubmission(models.Model): dnasequence = model.TextField(blank=True, null=True) uploaded_time = models.DateTimeField(default=timezone.now) I have a Django import-export module that helps to import and export the data for my PIs thr

GeoDjango with SpatialLite on Windows 10

2021-08-12 Thread Tugg Speedman
Hello everyone, I'm new to GeoDjango and therefore I tried to follow the tutorial (https://docs.djangoproject.com/en/3.2/ref/contrib/gis/tutorial/) first. But the problem is, it doesn't work with SQLite a.k.a SpatialLite. When I try to build the migrations, a Windows error pops up (see picture

Renaming Django model without breaking existing migrations

2021-08-12 Thread Alan Evangelista
I want to rename a model in Django 3.2, keep my existing migrations and be able to both migrate a db with the old table name and create a db from scratch. I've started by renaming the model class and all references to it in the code. As "./manage.py makemigrations" did not automatically create a m

Re: Git Hub Project

2021-08-12 Thread Rana Zain
Okay. I am checking. Thanks Everyone. On Wednesday, August 11, 2021 at 9:54:32 PM UTC+5 Kasper Laudrup wrote: > On 11/08/2021 18.19, Rana Zain wrote: > > Thanks everyone for your kind support. I am working hard on python and > > Django. Earlier I learn python then I started working on Django. I h

django rest framework

2021-08-12 Thread ericki...@gmail.com
MY model class XP(models.Model): bizuser = models.ForeignKey(BizUser, on_delete=models.CASCADE) current_xp_price = models.IntegerField(default=0) xp_created_at = models.DateTimeField(auto_now_add=True) xp_updated_at = models.DateTimeField(auto_now_add=True) i have this function tha

Re: Display Hierarchical Categories in Django Admin

2021-08-12 Thread 'Rahul Chauhan' via Django users
Thanks for the suggestion. But I don't want to use any third party addon/module such as MPTT or Tree-Beard. Regards R On Thursday, August 12, 2021 at 2:35:18 PM UTC+5:30 sebasti...@gmail.com wrote: > Hello Rahul, > > i Django MPTT tutorial you find in modely.py: > > from django.db import mode

Re: Display Hierarchical Categories in Django Admin

2021-08-12 Thread Sebastian Jung
Hello Rahul, i Django MPTT tutorial you find in modely.py: from django.db import modelsfrom mptt.models import MPTTModel, TreeForeignKey class Genre(MPTTModel): name = models.CharField(max_length=50, unique=True) parent = TreeForeignKey('self', on_delete=models.CASCADE, null=True, blank=T

Encrypt A Table using Django Model

2021-08-12 Thread Sachin Kumar
Hi Experts, If anyone has done encryption of table using Django. please let us know the process or any article which helps in the encryption of table data using Model and when required it decrypt the table data. Please help and Guide for a Solution. Regards Sachin -- You received this messag