Django-form tools, saving data between multistep form

2019-08-17 Thread mohamed habib
I asked this question here: https://stackoverflow.com/questions/57514544/django-formtools-saving-data-between-form-steps I'm trying to create a multistage form using django-formtools . My problem is that I am not sure why my data is not persisting bet

how to add field in User

2019-08-17 Thread niranjan shukla
Model.py from django.contrib.auth.models import User # I want to add one more field of gender(male and female) -- 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, send an email to

Re: how to add field in User

2019-08-17 Thread Kasper Laudrup
On August 17, 2019 3:51:34 PM GMT+02:00, niranjan shukla wrote: >Model.py > > >from django.contrib.auth.models import User > ># I want to add one more field of gender(male and female) > >-- >You received this message because you are subscribed to the Google >Groups "Django users" group. >To unsu

Channels: Headers from client

2019-08-17 Thread Heigler
Is there a way to send auth headers from client to the server and read them? I've a mobile app (Ionic + StencilJS), so its necessary to login the user with the Token, but I can't figure out how to pass it through a header, only in querystring but that is not safe. I'm using the following custo

Re: Code wont let me pull data to modelform from database, :(

2019-08-17 Thread Kean
HI Ronak, correct, i have an edit button in the template.html, trying to get this butto to re-direct to a page where the form is presented with the editable data. Best, K On 17 Aug 2019, at 05:12, RONAK JAIN wrote: > Hey , > > I think , i am not sure but got it so here you need to devel

DeferredAttribute object in form

2019-08-17 Thread Kean
Hi, New to Django, struggling at every point, but still learning. I have created an edit form, however when I run the edit, the below response is returned to all object fields in the form, allbeit suffix varies. Please see my views.py def editbusiness(request): data = Businessownercreate.ob

django-admin error

2019-08-17 Thread Naty Mina
hi, i'm new in django and trying to create my first project i followed the documentation and when i try to execute the django-admin startproject mysite i get error that 'no django settings specified' and to try 'django-admin.py help' instead for usage. the problem is when i try to do so, i get a

Re: django-admin error

2019-08-17 Thread Muhammad Nadeem
FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE: django-admin startproject mysite WHERE "mysite" is the name of your project. you can change this name as you desired. if further u have any error fell free ping me On Sun, Aug 18, 2019 at 1:32 AM Naty Mina wrote: > hi, i'm new in djang

Re: django-admin error

2019-08-17 Thread Daniel Agbaji
Please check to see it you got install Django properly with the version of Python you are using. On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem wrote: > FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE: > django-admin startproject mysite > WHERE "mysite" is the name of your project. you c

Re: DeferredAttribute object in form

2019-08-17 Thread salimon jamiu olashile
It seems the model & form class names are clashing. If you want use the same name, you can import each module as a whole. Edited: from . import models, forms def editbusiness(request): > data = models.Businessownercreate.objects.all() > if request.method == "POST": > form = forms.Businessownercr

Re: django-admin error

2019-08-17 Thread Ronit Mishra
You've installed your django correctly. I can see the version in your snapshot. Also I think you're trying to call django-admin from a python shell. Just write the command 'django-admin startproject mysite' on the terminal/command prompt. This should do it. On Sun, Aug 18, 2019 at 4:08 AM Danie