Re: Assistance with Django Booking app

2021-04-08 Thread Kasper Laudrup
On 08/04/2021 16.19, Eric 247ERICPOINTCOM wrote: > Good day, > > I am new to Python and Django, I just discovered that I can use Django > to easily implement a project that am working on.  > > I would like to get some assistance with implementing a booking app into > my project. > > I came acros

Re: License management system Refrence

2021-04-08 Thread Ryan Nowakowski
On Wed, Apr 07, 2021 at 12:43:03PM +0545, Vkash Poudel wrote: Sorry, I don't have any reference code for you. But here are some things to think about. >2. where Users can purchase KEY for a service, ie. just like (Product >Key or Activation Key) What payment backend will you use for the

Re: Unique and null

2021-04-08 Thread Ryan Nowakowski
On Thu, Apr 08, 2021 at 11:12:51PM +0100, Roger Gammans wrote: > On Thu, 2021-04-08 at 16:36 -0500, Ryan Nowakowski wrote: > > On Wed, Apr 07, 2021 at 03:25:53PM +0100, Roger Gammans wrote: > > > This is mostly (form the Django perspective) and issue with > > > CharFields, > > > because a CharField

Re: Assistance with Django Booking app

2021-04-08 Thread Ryan Nowakowski
On Thu, Apr 08, 2021 at 07:19:53AM -0700, Eric 247ERICPOINTCOM wrote: > I am new to Python and Django, I just discovered that I can use Django to > easily implement a project that am working on. > > I would like to get some assistance with implementing a booking app into my > project. > > I ca

Re: Unique and null

2021-04-08 Thread Roger Gammans
On Thu, 2021-04-08 at 16:36 -0500, Ryan Nowakowski wrote: > On Wed, Apr 07, 2021 at 03:25:53PM +0100, Roger Gammans wrote: > > This is mostly (form the Django perspective) and issue with > > CharFields, > > because a CharField can store None or ''. For values of '' > > in CharField, IIRC, django

Re: Extending with plugins remotely -at least from a frontend

2021-04-08 Thread Ryan Nowakowski
On Wed, Apr 07, 2021 at 11:42:30PM +0100, Joel Tanko wrote: > Hi guys I have a question just one, but it houses a myriad of smaller > questions for clarity. > > So I'm building a django app that creates virtual organizations, I'm > planning on hosting with digitalocean for reasons. My app just cre

Assistance with Django Booking app

2021-04-08 Thread Eric 247ERICPOINTCOM
Good day, I am new to Python and Django, I just discovered that I can use Django to easily implement a project that am working on. I would like to get some assistance with implementing a booking app into my project. I came across Django-Booking but I dont know how exactly it works, do I need

TypeError at /

2021-04-08 Thread Izzuan Ariffin
Background: I'm trying to test a localhost login of django-microsoft-auth 2.4.0. I've read and followed the documentation: *Usage * I've configured it step by step and it returns an error. TypeError: 'NoneType' Obje

JSONField with callable default reports ModelForm.has_changed() when it hasn't

2021-04-08 Thread Stuart Kelly
The issue is similar to this bug that has been fixed: https://code.djangoproject.com/ticket/24428 however doesn't seem to be due to coercion. I've discovered this when trying to update a project from django 2.2 to 3.2 test case to reproduce (in a new django project/app) ``` from django.db import

Re: Listview Iterate over List

2021-04-08 Thread Ryan Nowakowski
On Wed, Apr 07, 2021 at 11:02:04AM -0700, sebasti...@gmail.com wrote: > i want to create a Listview like this: > > class HistorieListView(ListView): > model = Address > template_name = 'marketing/liststandardtemplate.html' > fieldlist = ('id', 'lastname', 'firstname') > > now i want i

Re: Unique and null

2021-04-08 Thread Ryan Nowakowski
On Wed, Apr 07, 2021 at 03:25:53PM +0100, Roger Gammans wrote: > This is mostly (form the Django perspective) and issue with CharFields, > because a CharField can store None or ''. For values of '' > in CharField, IIRC, django will convert them to null, with null=True, > blank=True. But not with

Re: reg: DRF login API

2021-04-08 Thread 'Amitesh Sahay' via Django users
HI,  -a xxx.x...@.com --> username After I entered  python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/ 'Authorization: Token db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890' It prompted for the password, I entered, that is when I got the output Regar

Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Hi, Try providing a username and password. Check if it is working or not On Thu, Apr 8, 2021 at 7:26 PM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > Hey Ranga, > > Below is the new output > > python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/

Re: reg: DRF login API

2021-04-08 Thread 'Amitesh Sahay' via Django users
Hey Ranga, Below is the new output python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/ 'Authorization: Token db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890' http: password for xxx.x...@.com@127.0.0.1:8000: "this asked for the password, so I entered and

Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Refer the docs https://httpie.io/ On Thu, Apr 8, 2021 at 6:44 PM RANGA BHARATH JINKA wrote: > Hi, You have to specify the POST method in the command > > http -a USERNAME POST > https://api.github.com/repos/httpie/httpie/issues/83/comments body='HTTPie is > awesome! :heart:' > > All the best >

Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Hi, You have to specify the POST method in the command http -a USERNAME POST https://api.github.com/repos/httpie/httpie/issues/83/comments body='HTTPie is awesome! :heart:' All the best On Thu, Apr 8, 2021 at 6:18 PM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > HI

reg: DRF login API

2021-04-08 Thread 'Amitesh Sahay' via Django users
HI, I have created a simple login API through django rest framework. Below is the code snippet: from django.contrib.auth import login from rest_framework.generics import ListCreateAPIView from rest_framework import status from rest_framework.response import Response from rest_framework.authtoken.s