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 card implementation are
> 1) Ofcourse secure transactions
> 2) Scalable
> 3) Affordable
>
> I really appreciate if you can share any best solution for our use case.
>
> Best Regards,
> ~Ram
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1jvrnxmY0W7sxwnz6gh3JuLPD6aKXcLo%3DhVCwFmxssWA%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANyoXTBdofXR-SVcKFFGYBg5r_TZFGemjgL3uCVZ4viSw8PQ1g%40mail.gmail.com.


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-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 than using the ascending and
>> Descending order?
>>
>> Please advise.
>>
>> See section of my view.py page.
>>
>> [image: image.png]
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANTsAyd6cerLF%3DmNEsUWO1xKgUm7meZRBNj0HNg6Zrh0TWFVjA%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADYG20F376ZyLJO7V5xbQn6jffxSzsXDYwAwv-rTehGLzqC74w%40mail.gmail.com.


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 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, 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 form?
>> Hope to have a reply
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e2a764bf-e302-4bcf-b66d-cbde1864e019n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/EZjN0zA92gg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACaDatQ4pJa3oRm9R-2UErEv5v8FH0tKvQPnf-APLJUA_8xS-w%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPO2cXFWEnohVEvrBac0_pHVCjsoQM3iT1hAXZhAhqYx1MqqpQ%40mail.gmail.com.


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, 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 form?
> Hope to have a reply
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e2a764bf-e302-4bcf-b66d-cbde1864e019n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACaDatQ4pJa3oRm9R-2UErEv5v8FH0tKvQPnf-APLJUA_8xS-w%40mail.gmail.com.


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 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7115504f-ab50-32e0-c9f7-2b738a038ed5%40stacktrace.dk.


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 than using the ascending and
> Descending order?
>
> Please advise.
>
> See section of my view.py page.
>
> [image: image.png]
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJhs3iOOtCGdfPMrj0X%3D0aLcNzLibcBQx0_%2Bv0UxWrNeU5_DKA%40mail.gmail.com.


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 form? 
Hope to have a reply

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e2a764bf-e302-4bcf-b66d-cbde1864e019n%40googlegroups.com.


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 group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxfCXi3mQ71SrEYZFHe3MNM4%2BDHYCEE1bn%3DiqYWJ73SYgaKCg%40mail.gmail.com.


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 about it other than using the ascending and
> Descending order?
>
> Please advise.
>
> See section of my view.py page.
>
> [image: image.png]
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADYG20EjD6mRidk8LbyE8_8rAMT3z%3DPki0253eEtO4KtXttwPg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANTsAyd6cerLF%3DmNEsUWO1xKgUm7meZRBNj0HNg6Zrh0TWFVjA%40mail.gmail.com.


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 this value 
> in this render field .Can anyone help it?
>
> {% render_field class+='form-control' data-id="occurence_counter " %}
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/40b9f4b9-af60-41e5-94bd-785f9135cdf1n%40googlegroups.com.


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-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 than using the ascending and 
> Descending order?
>
> Please advise.
>
> See section of my view.py page.
>
> [image: image.png]
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5f8c850c-c9cb-4d63-8659-cf1368fb2d1bn%40googlegroups.com.


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 master(models.Model):
> STATUS = (
> ('1', 'Active'),
> ('0', 'InActive'),
> )
> question_code = models.IntegerField()
> question_description = models.CharField(max_length=160)
> category_id = models.IntegerField()
> status = models.CharField(max_length=10, choices=STATUS, default='0')
> question_type = models.CharField(max_length=160)
> added_date = models.DateTimeField()
>
> def __str__(self):
> return self.questionCode
>
> class Transaction_table(models.Model):
> classifieds_id = models.IntegerField()
> category_id = models.IntegerField()
> question_code = models.IntegerField()
> question_description = models.CharField(max_length=160)
> question_answer = models.CharField(max_length=160)
>
> def __str__(self):
> return self.classifieds_id
>
> This html form and these are fields these all fields need to save in one 
> row. after submitting the form. Please help me out to achieve this.
>
> 
> {% csrf_token %}
>   Square ft:
>   
>   Area:
>   
>   Landmark:
>   
>   Price:
>   
>   Make:
>   
>   Model:
>   
>   Yearofmake:
>   
>   Warranty:
>   
>   Screensize:
>   
>   
>  
>
> I have a sample data file I am attaching below. In that format I need to 
> save data into the database can anyone please help me out to achieve this.
>
>
> Thank you
> ~Salima
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aa95ba98-ccf5-47b8-b314-bce7406f4421n%40googlegroups.com.


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)
category_id = models.IntegerField()
status = models.CharField(max_length=10, choices=STATUS, default='0')
question_type = models.CharField(max_length=160)
added_date = models.DateTimeField()

def __str__(self):
return self.questionCode

class Transaction_table(models.Model):
classifieds_id = models.IntegerField()
category_id = models.IntegerField()
question_code = models.IntegerField()
question_description = models.CharField(max_length=160)
question_answer = models.CharField(max_length=160)

def __str__(self):
return self.classifieds_id

This html form and these are fields these all fields need to save in one
row. after submitting the form. Please help me out to achieve this.


{% csrf_token %}
  Square ft:
  
  Area:
  
  Landmark:
  
  Price:
  
  Make:
  
  Model:
  
  Yearofmake:
  
  Warranty:
  
  Screensize:
  
  


I have a sample data file I am attaching below. In that format I need to
save data into the database can anyone please help me out to achieve this.


Thank you
~Salima

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMSz6bkAP2oHLKRgbpCmc1eFO3rW_yiyfUK2TTaSuG-DeMY%2BOQ%40mail.gmail.com.


Sample.xlsx
Description: MS-Excel 2007 spreadsheet