How to save all fields in form in single row into the database.

2020-11-23 Thread Salima Begum
Hi, We are trying to save fields in html form into one row into a database. models.py class master(models.Model): STATUS = ( ('1', 'Active'), ('0', 'InActive'), ) question_code = models.IntegerField() question_description = models.CharField(max_length=160) cat

Re: How to save all fields in form in single row into the database.

2020-11-23 Thread Naresh Jonnala
For your reference: https://docs.djangoproject.com/en/3.1/ref/forms/api/#django.forms.Form.prefix On Monday, November 23, 2020 at 6:06:46 PM UTC+5:30 sali...@rohteksolutions.com wrote: > Hi, > > We are trying to save fields in html form into one row into a database. > > models.py > > class m

Re: Multiple Media_Root

2020-11-23 Thread Naresh Jonnala
using upload_to option @ model field. https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#handling-uploaded-files-with-a-model same url, some other options are there. On Monday, November 23, 2020 at 12:35:44 AM UTC+5:30 techg...@gmail.com wrote: > Hello, > > I am developing an E-C

Re: Add variable value in render field in django template

2020-11-23 Thread Naresh Jonnala
Based on URL structure, find suitable template tag to move forwered. https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url On Friday, November 20, 2020 at 8:34:08 PM UTC+5:30 rajshre...@gmail.com wrote: > Hi Users, > I have a value in variable occurence counter and I want to pass th

Re: Multiple Media_Root

2020-11-23 Thread Mbah Victor
Plz can u send me a review of what you what Victor On Sun, Nov 22, 2020, 8:05 PM tech george wrote: > Hello, > > I am developing an E-Commerce website and I wanted to have a separate > upload folder for my slides and separate folders for other sections of my > site. > > Is there a way i can go

Can't create custom user model

2020-11-23 Thread Charles Freeman
Hey everyone I can't create a custom user model. Every time I try to create super user I end up with an error message saying username is not present pls help me thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Django User authentication OR Custom Model For the Situation

2020-11-23 Thread Neeraj Rana
I am trying to create two different types of users, prime and one prime with that it also consist of email verification and custom username. Now, my question is should I use the user auth model, and django.forms and extend the form for email, phone no or should i build a completely new model and

Re: Multiple Media_Root

2020-11-23 Thread sakshi jain
I want this Website ..u can help me On Mon, Nov 23, 2020, 00:35 tech george wrote: > Hello, > > I am developing an E-Commerce website and I wanted to have a separate > upload folder for my slides and separate folders for other sections of my > site. > > Is there a way i can go about it other tha

Re: Can't create custom user model

2020-11-23 Thread Kasper Laudrup
On 11/23/20 9:05 AM, Charles Freeman wrote: Hey everyone I can't create a custom user model. Every time I try to create super user I end up with an error message saying username is not present pls help me thanks https://stackoverflow.com/help/how-to-ask -- You received this message because

Re: Django User authentication OR Custom Model For the Situation

2020-11-23 Thread mike vickers
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html This is a nice reference that goes over the pros/cons of the different approaches to your problem. On Mon, 23 Nov 2020 at 08:41, Neeraj Rana wrote: > I am trying to create two different types of users

Re: Django User authentication OR Custom Model For the Situation

2020-11-23 Thread Neeraj Rana
Thank you for your response, I really appreciate this hope this helps me. On Mon, 23 Nov, 2020, 7:36 pm mike vickers, wrote: > > https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html > > This is a nice reference that goes over the pros/cons of the differe

Re: Multiple Media_Root

2020-11-23 Thread tech george
Thanks for the guide, Let me try this option then i'll let you know in case I get stuck. On Mon, Nov 23, 2020 at 4:41 PM Mbah Victor wrote: > Plz can u send me a review of what you what > > Victor > > On Sun, Nov 22, 2020, 8:05 PM tech george wrote: > >> Hello, >> >> I am developing an E-Comme

Re: Shopping cart implementation for Classified Ads

2020-11-23 Thread Support Online
3 On Mon, 23 Nov 2020, 09:39 Ram, wrote: > Hi, > > We are trying to understand what is the best Shopping solution that we > could use to implement Classfied Ads where users will be charged for > certain number of Ads that they can post in a month. Our important > requirements for this shopping c