Re: Udemy Clone

2020-08-05 Thread Venkata Penumatsa
Sorry Bro, Can't help. Your requirements are very high level and vague.
Forums will be helpful only if you stuck somewhere and need some coding
assistance/resolving errors etc..
But for enterprise-level projects without a budget, I feel forums are not
the right place to post.
Anyways all the best for your project

On Tue, 4 Aug 2020 at 15:42, vedant mehta  wrote:

> No budget
> Making for myself
> Just need help in making teacher dashboard where teacher can upload course
> and visible to students and they can enroll.
> Also want the feature of giving ratings to instructors
>
> On Tue, Aug 4, 2020, 3:15 PM Venkata Penumatsa  wrote:
>
>> Hi Vedant,
>>
>> Is this a hobby project or organization project? Is there any budget for
>> this project? If so how much is the budget?
>>
>>
>> On Sun, 2 Aug 2020 at 13:45, Kasper Laudrup 
>> wrote:
>>
>>> Hi Yedant,
>>>
>>> On 02/08/2020 17.54, vedant mehta wrote:
>>> > I m facing many problems. Video player , forum for qna, creating
>>> assignment page, stars for the instructor, generating certificate.
>>> >
>>>
>>> So far we can gather that you want to do something, but have no idea how
>>> to do any of it and therefore need some help.
>>>
>>> Nothing wrong with that, but it would greatly improve your chances of
>>> getting help if you try to clarify which kind of help you are looking
>>> for.
>>>
>>> Do you have any programming experience at all and do you have some code
>>> you are willing to share so someone can have a look at it?
>>>
>>> Are you looking for a mentor and would you be willing to pay someone to
>>> help you learning Python/Django development?
>>>
>>> Do you have any specific problems that you would like anyone to help you
>>> with?
>>>
>>> So far, no one knows but you, so you'll probably not get any relevant
>>> help before you make it clear what you're looking for.
>>>
>>> Kind regards,
>>>
>>> Kasper Laudrup
>>>
>>> --
>>> 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/ff1b0da0-0b14-02ce-74fe-e564fd0f69aa%40stacktrace.dk
>>> .
>>>
>> --
>> 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/CAPROKTc6UqYbDVXs0ts6qmgEHX915sKc%3DA12yJ_OnEN0z9idaA%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/CAC21hZKY8Fydu4ZS_-8PwimsVEgySeYw3nE8q68GWjvM8j-pwg%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/CAPROKTc%2BTQhLxwo2FP7bnDfcAozPRP_UFY%3DawU%2B1x2SCaROS9Q%40mail.gmail.com.


Re: Understanding Baseinlineformset and inlineformset_factory.

2020-08-05 Thread NIKHIL RAJGARHIA
Any hint on the above doubt will work fine.

On Wednesday, August 5, 2020 at 12:32:23 AM UTC+5:30, NIKHIL RAJGARHIA 
wrote:
>
> Hi All,
>
> I am unable to understand the below logic for '*BaseInlineFormSet*' and '
> *inlineformset_factory*'.
>
> 1. What is the use of 'formset' in 'inlineformset_factory'?
> 2. What is the use of validation inside 'BaseInlineFormSet'? How it works? 
> I haven't seen any implementation like this validation in normal forms.
>
> As I have only worked with general forms, I was exploring on 'formset', 
> but, couldn't understand this piece of example. I know 'formset' is used to 
> create multiple forms on the same page.
>
> AnswerFormSet = *inlineformset_factory*( #this will be an instance of the 
> form
> Question,  # parent model
> Answer,  # base model or child model
> formset=*BaseAnswerInlineFormSet*,
> fields=('text', 'is_correct'),
> min_num=2,
> validate_min=True,
> max_num=10,
> validate_max=True
> )
>
> class *BaseAnswerInlineFormSet*(forms.BaseInlineFormSet):
> def clean(self):
> super().clean()
>
> has_one_correct_answer = False
> for form in self.forms:
> if not form.cleaned_data.get('DELETE', False):
> if form.cleaned_data.get('is_correct', False):
> has_one_correct_answer = True
> break
>
> if not has_one_correct_answer:
> raise ValidationError('Mark at least one answer as correct.', 
> code='no_correct_answer')
>
> Thank you in advance.
>
>
>

-- 
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/88f21d49-ef10-4370-b4fe-49299be0e68ao%40googlegroups.com.


Taggit and slug

2020-08-05 Thread yammu...@gmail.com
Hi Everyone,

I need Taggit method and slug concept for my project. anyone please help me 
to continue my work. 

if any notes or videos regarding taggit and slug method please forward me .

Thanks in advance

-- 
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/941fd744-eea6-4899-85de-1aa00bbf51fen%40googlegroups.com.


Re: Python-django project

2020-08-05 Thread sapna Choudhary
Interested

On Tue 21 Jul, 2020, 8:39 AM learn code,  wrote:

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CAP6mExj-kS_aeUJDc0Wo%3DzyTXbKSvSfYQF0WH33yMgAbEtqCyw%40mail.gmail.com.


how to create table from model

2020-08-05 Thread atul anand
Hi All,

I am new to Django. I want to create tables by using models.
I have tried to follow this link: 
https://docs.djangoproject.com/en/3.0/topics/db/models/.

models.py
from django.db import models


# Create your models here.
class Person(models.Model):
id = models.AutoField(primary_key=True)
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
I have registered the app and provided connection details of the DB.

But when I tried to run makemigrations and migrate, it's not identifying 
the changes.
python manage.py makemigrations
*No changes detected*

python manage.py migrate
*Operations to perform:*
*  Apply all migrations: admin, auth, contenttypes, sessions*
*Running migrations:*
*  No migrations to apply.*

*any help would be appriciated.*

-- 
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/e8f15897-5729-4b51-9ab3-bec0c159dcfco%40googlegroups.com.


Re: Install -r 309 traceback

2020-08-05 Thread Arief Zulianto
try using:
pip install "Django==3.0.9"
its tell pip to install django ver. 3.0.9

On Wednesday, August 5, 2020 at 1:52:48 AM UTC+7 robertome...@gmail.com 
wrote:

> I was unable to install django 3 0 9, with pip install -r 
> Django-3.0.9-py3-none-any.whl
> ... shows me 11 tracebacks, of which the last is in
> lib / encodings / cp1252.py, line 15, in decode return 
> codecs.charmap_decode (input, errors, decoding_table)
> I don't have internet on the pc, and it must download the files to the 
> smart.
> How can I do?

-- 
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/cdb55b73-1170-41e5-9ce3-2911da0b32fbn%40googlegroups.com.


RE: Python-django project

2020-08-05 Thread yammunap...@gmail.com
Dear I am interested to join with your work. Its my WhatsApp number +919384402100Best regards,Yamuna V From: Mithlesh KumarSent: Wednesday, 29 July 2020 12:36 AMTo: django-users@googlegroups.comSubject: Re: Python-django project I am also interested. Please add my number 8750641542   Regards,Mithlesh Kumar On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA  wrote:Hii..I'm interested to work with you, U can contact me over whatsapp +917978330633.Thanks On Tue, Jul 21, 2020, 08:39 learn code  wrote:Hi everyone, I am learning python and django, like to work on the projects to improve more.If any one interested to join with me to work on the projects,plz send me a email.-- 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol.


Re: bug bulk_create

2020-08-05 Thread Andréas Kühne
Hi,

Without seeing the code more, I would say that this is an error in the
OrderedModel code. Check if you can update it to support the version of
Django you are working on.

Regards,

Andréas


Den tis 4 aug. 2020 kl 14:09 skrev nima salemahim :

> Traceback (most recent call last):
>   File "/usr/lib/python3.7/code.py", line 90, in runcode
> exec(code, self.locals)
>   File "", line 1, in 
>   File
> "/home/nima/.virtualenvs/behtarino/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py",
> line 946, in add
> through_defaults=through_defaults,
>   File
> "/home/nima/.virtualenvs/behtarino/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py",
> line 1150, in _add_items
> ])
> TypeError: bulk_create() got an unexpected keyword argument
> 'ignore_conflicts'
>
> hi i have three models
>
> when i try to add on deal to one a category
>
> like : deal.categories.add(category)
>
> i face error above can you help me about what the problem is ?
>
> class Deal(ModificationLogMixin, models.Model):
> title = models.CharField(max_length=160, blank=True, null=True)
> description = models.TextField(blank=True, null=True)
> initial_price = models.IntegerField(blank=True)
> discounted_price = models.IntegerField(blank=True)
> categories = models.ManyToManyField(
> 'deal.DealCategory',
> related_name='deals',
> blank=True,
> through='DealCategoryThrough',
> through_fields=('deal', 'dealcategory')
> )
>
> class DealCategory(OrderedModel):
> business = models.ForeignKey(Business, related_name='deal_categories',
>  on_delete=deletion.CASCADE)
> name = models.CharField(max_length=100, blank=True, null=True)
> order_with_respect_to = 'business'
>
> class DealCategoryThrough(OrderedModel):
> deal = models.ForeignKey('deal.Deal', on_delete=models.deletion.CASCADE,
>  related_name='ordered_deals')
> dealcategory = models.ForeignKey(DealCategory, 
> on_delete=models.deletion.CASCADE,
>  related_name='ordered_deals')
> order_with_respect_to = 'dealcategory'
>
> --
> 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/2051380a-62b9-4afc-be91-f264cdf3e38eo%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/CAK4qSCf7q3TShkf4mBSJKA62z5-%2B-X7vNQZueYdaCR3eKwBFBw%40mail.gmail.com.


Re: Django storing byte string for image

2020-08-05 Thread Andréas Kühne
Hi,

You don't need to store them in the database - just store them in the file
system instead?

Regards,

Andréas


‪Den tis 4 aug. 2020 kl 21:02 skrev ‫را نيا‬‎ :‬

> Good evening
> I want to import photos and PDF files from desktop app and display them in
> web app, how can I do it without using binary format?
>
> Le jeudi 4 janvier 2018 10:44:53 UTC+1, Shem Ogumbe a écrit :
>>
>> Maybe try the conversion then save the path to MongoDb, but not the
>> bytsetring itself
>>
>> On Wednesday, January 3, 2018 at 3:03:36 PM UTC+3, chern...@gmail.com
>> wrote:
>>>
>>> What field should i use to store byte string so that i can later use it
>>> for ByteIO to convert it into image ?
>>>
>>> As this is my first time doing on byte string to image, i am pretty lost
>>> on what i need to do.
>>>
>>> I tried using BinaryField for the image model but when checking the
>>> field out on Django admin, it gave me this error
>>> 'image' cannot be specified for MyUser model form as it is a
>>> non-editable field
>>> i also tried setting BinaryField(editable=True) but it still doesnt work.
>>>
>>> May i have some guidance on how to store the byte string ?
>>>
>> --
> 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/348196d3-9529-4fdc-8686-fb9b375fdbd6o%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/CAK4qSCdpeE-1WsQ%2BGWQZQwDbrBGmSJyS4GU7Z%3DGU1QyE8nLEHQ%40mail.gmail.com.


Re: Django storing byte string for image

2020-08-05 Thread Mottaz Hegaze
You can use database to store the location of the file on server , not the
file itself..

Checkout in Documentation

models.ImageField()
models.FileField()

On Tue, 4 Aug 2020, 9:01 pm را نيا,  wrote:

> Good evening
> I want to import photos and PDF files from desktop app and display them in
> web app, how can I do it without using binary format?
>
> Le jeudi 4 janvier 2018 10:44:53 UTC+1, Shem Ogumbe a écrit :
>>
>> Maybe try the conversion then save the path to MongoDb, but not the
>> bytsetring itself
>>
>> On Wednesday, January 3, 2018 at 3:03:36 PM UTC+3, chern...@gmail.com
>> wrote:
>>>
>>> What field should i use to store byte string so that i can later use it
>>> for ByteIO to convert it into image ?
>>>
>>> As this is my first time doing on byte string to image, i am pretty lost
>>> on what i need to do.
>>>
>>> I tried using BinaryField for the image model but when checking the
>>> field out on Django admin, it gave me this error
>>> 'image' cannot be specified for MyUser model form as it is a
>>> non-editable field
>>> i also tried setting BinaryField(editable=True) but it still doesnt work.
>>>
>>> May i have some guidance on how to store the byte string ?
>>>
>> --
> 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/348196d3-9529-4fdc-8686-fb9b375fdbd6o%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/CAHV4E-f88hk8h4B96NQHAwuac%3DXH1UHHKkkYTqzFXTi2k7Dipg%40mail.gmail.com.


Re: how to create table from model

2020-08-05 Thread Yemin Sajid
Can you share your settings.py file? I think the app that you have created
is not listed under the INSTALLED_APPS section there.

On Wed, Aug 5, 2020 at 5:46 PM atul anand  wrote:

> Hi All,
>
> I am new to Django. I want to create tables by using models.
> I have tried to follow this link:
> https://docs.djangoproject.com/en/3.0/topics/db/models/.
>
> models.py
> from django.db import models
>
>
> # Create your models here.
> class Person(models.Model):
> id = models.AutoField(primary_key=True)
> first_name = models.CharField(max_length=30)
> last_name = models.CharField(max_length=30)
> I have registered the app and provided connection details of the DB.
>
> But when I tried to run makemigrations and migrate, it's not identifying
> the changes.
> python manage.py makemigrations
> *No changes detected*
>
> python manage.py migrate
> *Operations to perform:*
> *  Apply all migrations: admin, auth, contenttypes, sessions*
> *Running migrations:*
> *  No migrations to apply.*
>
> *any help would be appriciated.*
>
> --
> 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/e8f15897-5729-4b51-9ab3-bec0c159dcfco%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/CAFzgvyHPmCjpHZDfX0oZO8-hK-Rneet%3DOZQyUQTHU%3D6ZBiTvPw%40mail.gmail.com.


Re: Install -r 309 traceback

2020-08-05 Thread Roberto Melucci
Thanks for your attention, but, as i say yet, i don't go on internet on my
pc, but i go with my smartphone, download the file, and install offline.
But any whl i don't installed, even wxpython i.e.
Why?
Have you a solution for me?
Thanks more.
Robertomelucci.

Il Mer 5 Ago 2020, 13:46 Arief Zulianto  ha scritto:

> try using:
> pip install "Django==3.0.9"
> its tell pip to install django ver. 3.0.9
>
> On Wednesday, August 5, 2020 at 1:52:48 AM UTC+7 robertome...@gmail.com
> wrote:
>
>> I was unable to install django 3 0 9, with pip install -r
>> Django-3.0.9-py3-none-any.whl
>> ... shows me 11 tracebacks, of which the last is in
>> lib / encodings / cp1252.py, line 15, in decode return
>> codecs.charmap_decode (input, errors, decoding_table)
>> I don't have internet on the pc, and it must download the files to the
>> smart.
>> How can I do?
>
> --
> 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/cdb55b73-1170-41e5-9ce3-2911da0b32fbn%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/CAF4KKncXdgrZSKS1%3DeHRye5i0gwvoVxFJvFU39FvprZW6KwBFQ%40mail.gmail.com.


Re: Python-django project

2020-08-05 Thread jhabar singh
Sapna, Can you tell me something about your project?

On Wed 5 Aug, 2020, 5:22 PM yammunap...@gmail.com, 
wrote:

> Dear I am interested to join with your work. Its my WhatsApp number
> +919384402100
>
> Best regards,
>
> Yamuna V
>
>
>
> *From: *Mithlesh Kumar 
> *Sent: *Wednesday, 29 July 2020 12:36 AM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Python-django project
>
>
>
> I am also interested. Please add my number 8750641542
>
>
>
>
>
> Regards,
>
> Mithlesh Kumar
>
>
>
> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA 
> wrote:
>
> Hii..
>
> I'm interested to work with you, U can contact me over whatsapp
> +917978330633.
>
> Thanks
>
>
>
> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>
> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol
> 
> .
>

-- 
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/CAJ1QTg%3DdUaBXnSD9tYt_c5v430sOoALX_LAyockqXg_LhoL5pg%40mail.gmail.com.


Re: Python-django project

2020-08-05 Thread neeraj garg
Hi Guys,

Could you please give me a clue what kind of project you are planning to
build?

On Wed, Aug 5, 2020, 8:23 PM jhabar singh 
wrote:

> Sapna, Can you tell me something about your project?
>
> On Wed 5 Aug, 2020, 5:22 PM yammunap...@gmail.com, 
> wrote:
>
>> Dear I am interested to join with your work. Its my WhatsApp number
>> +919384402100
>>
>> Best regards,
>>
>> Yamuna V
>>
>>
>>
>> *From: *Mithlesh Kumar 
>> *Sent: *Wednesday, 29 July 2020 12:36 AM
>> *To: *django-users@googlegroups.com
>> *Subject: *Re: Python-django project
>>
>>
>>
>> I am also interested. Please add my number 8750641542
>>
>>
>>
>>
>>
>> Regards,
>>
>> Mithlesh Kumar
>>
>>
>>
>> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA <
>> biswajeetmishra...@gmail.com> wrote:
>>
>> Hii..
>>
>> I'm interested to work with you, U can contact me over whatsapp
>> +917978330633.
>>
>> Thanks
>>
>>
>>
>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>
>> Hi everyone,
>>
>> I am learning python and django, like to work on the projects to improve
>> more.If any one interested to join with me to work on the projects,plz send
>> me a email.
>>
>> --
>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol
>> 
>> .
>>
> --
> 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/CAJ1QTg%3DdUaBXnSD9tYt_c5v430sOoALX_LAyockqXg_LhoL5pg%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/CAGR%2BspcdF-a4PB_CT3YEaEtJE-SB7dYDe1s7Cj%3DMmUgWxjcFgA%40mail.gmail.com.


Django Whats app Group

2020-08-05 Thread Vishnu Bhandari
Hi Folks,
Decided to make a whats app group of all django users (aspiring and expert)
for sharing problem and asnwers.
Request you all, please ping me om +919561879917...
Or u can join thru this link -
https://chat.whatsapp.com/Gmr7QDkNw8YIxobnzNQfbl

If any existing group exists, please add me there. - 9561879917


On Wed, 5 Aug, 2020, 8:26 pm neeraj garg,  wrote:

> Hi Guys,
>
> Could you please give me a clue what kind of project you are planning to
> build?
>
> On Wed, Aug 5, 2020, 8:23 PM jhabar singh 
> wrote:
>
>> Sapna, Can you tell me something about your project?
>>
>> On Wed 5 Aug, 2020, 5:22 PM yammunap...@gmail.com, 
>> wrote:
>>
>>> Dear I am interested to join with your work. Its my WhatsApp number
>>> +919384402100
>>>
>>> Best regards,
>>>
>>> Yamuna V
>>>
>>>
>>>
>>> *From: *Mithlesh Kumar 
>>> *Sent: *Wednesday, 29 July 2020 12:36 AM
>>> *To: *django-users@googlegroups.com
>>> *Subject: *Re: Python-django project
>>>
>>>
>>>
>>> I am also interested. Please add my number 8750641542
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>> Mithlesh Kumar
>>>
>>>
>>>
>>> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA <
>>> biswajeetmishra...@gmail.com> wrote:
>>>
>>> Hii..
>>>
>>> I'm interested to work with you, U can contact me over whatsapp
>>> +917978330633.
>>>
>>> Thanks
>>>
>>>
>>>
>>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>>
>>> Hi everyone,
>>>
>>> I am learning python and django, like to work on the projects to improve
>>> more.If any one interested to join with me to work on the projects,plz send
>>> me a email.
>>>
>>> --
>>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol
>>> 
>>> .
>>>
>> --
>> 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/CAJ1QTg%3DdUaBXnSD9tYt_c5v430sOoALX_LAyockqXg_LhoL5pg%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/CAGR%2BspcdF-a4PB_CT3YEaEtJE-SB7dYDe1s7Cj%3DMmUgWxjcFgA%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

Django

2020-08-05 Thread Donald Bozeman
I implemented a calendar similar 
https://uggedal.com/journal/creating-a-flexible-monthly-calendar-in-django/ 
with 
a dropdown to filter events on the day of the month. I've got it to where 
I'm doing a query instead of a model to return the events instead of 
workouts in the example to show the event for a day. So I got it to where 
the dates from my db column to populate on the day. So if I create a 
dropdown menu (form) I'm using ajax to get a value from the select option 
from the drop down menu to hit the view but how do I get the view or 
template to refresh with the new filter results. Another thing to add is I 
can get the db to filter with the correct output after selecting an 
option on the dropdown but how do I just refresh the calendar after the 
template or view is so called rendered. I want to stay on the same page as 
far as keeping the content the same except just showing the filtered 
result. I've tried CBV, function based views, http response in view, and 
also putting the {{ calendar }} in an include and then just updating the 
calendar.html and putting the base.html in a render. 

-- 
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/8bb3950f-1120-4a2a-8b3a-0102b643be54o%40googlegroups.com.


Re: Python-django project

2020-08-05 Thread todd brown
I would be interested in joining the project. What is the project?

On Wed, Aug 5, 2020 at 7:56 AM neeraj garg  wrote:

> Hi Guys,
>
> Could you please give me a clue what kind of project you are planning to
> build?
>
> On Wed, Aug 5, 2020, 8:23 PM jhabar singh 
> wrote:
>
>> Sapna, Can you tell me something about your project?
>>
>> On Wed 5 Aug, 2020, 5:22 PM yammunap...@gmail.com, 
>> wrote:
>>
>>> Dear I am interested to join with your work. Its my WhatsApp number
>>> +919384402100
>>>
>>> Best regards,
>>>
>>> Yamuna V
>>>
>>>
>>>
>>> *From: *Mithlesh Kumar 
>>> *Sent: *Wednesday, 29 July 2020 12:36 AM
>>> *To: *django-users@googlegroups.com
>>> *Subject: *Re: Python-django project
>>>
>>>
>>>
>>> I am also interested. Please add my number 8750641542
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>> Mithlesh Kumar
>>>
>>>
>>>
>>> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA <
>>> biswajeetmishra...@gmail.com> wrote:
>>>
>>> Hii..
>>>
>>> I'm interested to work with you, U can contact me over whatsapp
>>> +917978330633.
>>>
>>> Thanks
>>>
>>>
>>>
>>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>>
>>> Hi everyone,
>>>
>>> I am learning python and django, like to work on the projects to improve
>>> more.If any one interested to join with me to work on the projects,plz send
>>> me a email.
>>>
>>> --
>>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol
>>> 
>>> .
>>>
>> --
>> 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/CAJ1QTg%3DdUaBXnSD9tYt_c5v430sOoALX_LAyockqXg_LhoL5pg%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/CAGR%2BspcdF-a4PB_CT3YEaEtJE-SB7dYDe1s7Cj%3DMmUgWxjcFgA%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/CAGubYYw7RZKPG8_gRgctacG3EXh2GegK8VKaJAxCRFbaqf3hLA%40mail.gmail.com.


Re: social_django.models.UserSocialAuth.DoesNotExist in unit test

2020-08-05 Thread Roy Smith
I got this figured out.  It turns out I had a dependency on social_auth in an 
entirely different part of my code where I execute

reqeust.user.social_auth.get(provider='mediawiki').extra_data['access_token']

regardless of what auth backend was actually used.



> On Aug 4, 2020, at 10:08 PM, Roy Smith  wrote:
> 
> I have both model and social backends configured in settings.py:
> 
>> AUTHENTICATION_BACKENDS = (
>> 'django.contrib.auth.backends.ModelBackend',
>> 'social_core.backends.mediawiki.MediaWiki',
>> )
> 
> 
> When I run this test:
> 
>> from django.test import TestCase, Client
>> from django.contrib.auth.models import User
>> 
>> 
>> class UserActivitiesViewTest(TestCase):
>> def test_mainspace_title_contains_colon(self):
>> user_fred = User.objects.create_user('Fred', 'f...@example.com 
>> ', 'password')
>> client = Client()
>> client.force_login(user_fred, 
>> backend='django.contrib.auth.backends.ModelBackend')
>> response = client.get('/spi/spi-user-activities/Foo', {'count': 10, 
>> 'main': 1}, follow=True)
> 
> 
> The view that's being tested is:
> 
>> class UserActivitiesView(LoginRequiredMixin, View):
>> def get(self, request, user_name):
>>   .
> 
> 
> I get a social_django.models.UserSocialAuth.DoesNotExist exception in the 
> client.get() call.  Why is it doing any kind of query on UserSocialAuth if 
> I'm telling force_login() to use ModelBackend?
> 
> I'm running django 2.2, python 3.7
> 

-- 
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/D27D0026-FE0A-4F41-B408-130264105A3C%40panix.com.


ChoiceField in from module not working

2020-08-05 Thread Kovy Jacob
I am trying to have a ChoiceField in a form, but it gives me this error:

from TachlisGeredt.register_form import register

  File "/Users/kovyjacob/TachlisGeredt/TachlisGeredt/register_form.py",
line 10, in 

class RegisterForm (forms.Form):

  File "/Users/kovyjacob/TachlisGeredt/TachlisGeredt/register_form.py",
line 15, in RegisterForm

carrier = ChoiceField(choices = CARRIER_CHOICES)

NameError: name 'ChoiceField' is not defined


Here is the .py:

rom django import newforms as forms

from django.shortcuts import render

from django.http import HttpResponseRedirect

from django.core.mail import send_mail


carrier_choices = (

('@txt.freedommobile.ca', 'Freedom Mobile')

('@txt.luckymobile.ca', 'Lucky Mobile'),

)


class RegisterForm (forms.Form):

username = forms.CharField()

password = forms.CharField()

check_password = forms.CharField()

phone = froms.IntegerField(required = False)

carrier = ChoiceField(choices=carrier_choices, required = False)


I am new to django, what is the problem?

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/CACMwF3XpejE1-LGNwvyto%2BkcK2s9Y0udkEBGLw%3D3Tt%3DB_of1mA%40mail.gmail.com.


Re: field for html

2020-08-05 Thread Kovy Jacob
thanks everyone!!!

On Tue, Aug 4, 2020 at 8:10 AM Yemin Sajid  wrote:

> I would suggest you to only put the *video id* in the charfield and use
> that to render the * *in the template. Otherwise, there can be
> security issues if the content from the charfield is rendered safely as
> HTML.
>
> So in your template could it would be something like
> *https://www.youtube.com/embed/{{
> video_id }} " frameborder="0"
> allow="accelerometer; autoplay; encrypted-media; gyroscope;
> picture-in-picture" allowfullscreen>*
>
> On Mon, Aug 3, 2020 at 11:16 PM neeraj garg  wrote:
>
>> Try to use django *safe *filter to render this as html.
>>
>> On Mon, Aug 3, 2020 at 8:35 PM Kovy Jacob  wrote:
>>
>>> Hi, is there a type of field for django data models that's for html? I
>>> want to have youtube embed links, which is a bunch of html fo putting a
>>> youtube video on your site. Itlooks like this: ">> height="360" src="https://www.youtube.com/embed/Rj_vssRaZlQ";
>>> frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope;
>>> picture-in-picture" allowfullscreen>". I stored it in a charfield,
>>> but it gets shown on the website as text.
>>> What should I do?
>>> Thanks,
>>> Kovy
>>>
>>> --
>>> 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/CACMwF3VTKYF3Zjm9fQMFwtjvxYXdsUA1JV6mXFTrD0XBW5bDdw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks,
>> Neeraj
>>
>> --
>> 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/CAGR%2Bspcu_xgOgVLiStZEd2O0ePPCYnt_oYoSCm2D37FRYwGSqw%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/CAFzgvyFVTg%2BAkPDbS6idkWERPx7ZpNg%3DXdU38qy1Z-4ua_ua9g%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/CACMwF3WsVhp0XeRJP6bn%2BSg5UW%2B9u%2BXEL9h5Q%2BHjJeF8jdYcfA%40mail.gmail.com.


Has anyone created eCommerce website with Django?

2020-08-05 Thread tristant
Hi,
I am wondering if anyone here has created one for real, maybe for a small 
business. If so, how do you price your work, say, as compared to other 
available web-building services such as Wix.com where small businesses pay 
subscription fee and no need to do any coding?


-- 
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/4abb0de1-685d-4124-887a-31c4b3a85f03n%40googlegroups.com.


Re: Has anyone created eCommerce website with Django?

2020-08-05 Thread ola neat
yes i have,
u charge base on the requirement and feature that is needed on the website

On Wed, Aug 5, 2020 at 8:15 PM tristant  wrote:

> Hi,
> I am wondering if anyone here has created one for real, maybe for a small
> business. If so, how do you price your work, say, as compared to other
> available web-building services such as Wix.com where small businesses pay
> subscription fee and no need to do any coding?
>
>
> --
> 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/4abb0de1-685d-4124-887a-31c4b3a85f03n%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/CAHLKn738oMsaK%2BOXGQWFmiZ75bjwtgtA243FHD58M1Cstvn8ig%40mail.gmail.com.


Re: Has anyone created eCommerce website with Django?

2020-08-05 Thread Kovy Jacob
I would recommend using shopify over wix, as it is meant for e-commerce,
but django will give you many advantages.
- Highly customizable, you can add on anything you want, easily
- WAY cheaper, you can host a django site for a few dollars a month
- It gives you unlimited expansion, a day will hopefully come where you
want to expand your site, and you don't want to be restrained by the
limitations of a drag-and-drop-website, or have to make your website from
scratch on a different service/in django
- You will learn django and a bit of python, which is very useful.

On Wed, Aug 5, 2020 at 3:45 PM ola neat  wrote:

> yes i have,
> u charge base on the requirement and feature that is needed on the website
>
> On Wed, Aug 5, 2020 at 8:15 PM tristant  wrote:
>
>> Hi,
>> I am wondering if anyone here has created one for real, maybe for a small
>> business. If so, how do you price your work, say, as compared to other
>> available web-building services such as Wix.com where small businesses pay
>> subscription fee and no need to do any coding?
>>
>>
>> --
>> 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/4abb0de1-685d-4124-887a-31c4b3a85f03n%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/CAHLKn738oMsaK%2BOXGQWFmiZ75bjwtgtA243FHD58M1Cstvn8ig%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/CACMwF3XrJcKBH_RNwtdCzXwocJ8XBqJmGDhmp%2BOfvHM0HwaLrw%40mail.gmail.com.


Re: Has anyone created eCommerce website with Django?

2020-08-05 Thread tristant
Thanks, guys.

I did some research on pricing for freelancing. I am about to commit to one 
freelance job, building a small ecommerce website. Features include: adding 
product, updating quantity, payment with cards or PayPal, full website has 
about 10 pages max.

What is a reasonable price here? I don't want to scare the client off with 
ridiculous numbers, given that this is my first project. But I also would 
like to have decent income. The internet suggests such a wide range. I am 
in the US.

On Wednesday, August 5, 2020 at 12:51:45 PM UTC-7 kovy@gmail.com wrote:

> I would recommend using shopify over wix, as it is meant for e-commerce, 
> but django will give you many advantages.
> - Highly customizable, you can add on anything you want, easily
> - WAY cheaper, you can host a django site for a few dollars a month
> - It gives you unlimited expansion, a day will hopefully come where you 
> want to expand your site, and you don't want to be restrained by the 
> limitations of a drag-and-drop-website, or have to make your website from 
> scratch on a different service/in django
> - You will learn django and a bit of python, which is very useful.
>
> On Wed, Aug 5, 2020 at 3:45 PM ola neat  wrote:
>
>> yes i have,
>> u charge base on the requirement and feature that is needed on the website
>>
>> On Wed, Aug 5, 2020 at 8:15 PM tristant  wrote:
>>
>>> Hi,
>>> I am wondering if anyone here has created one for real, maybe for a 
>>> small business. If so, how do you price your work, say, as compared to 
>>> other available web-building services such as Wix.com where small 
>>> businesses pay subscription fee and no need to do any coding?
>>>
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/4abb0de1-685d-4124-887a-31c4b3a85f03n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAHLKn738oMsaK%2BOXGQWFmiZ75bjwtgtA243FHD58M1Cstvn8ig%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/f351b46d-04cf-4afe-95e3-d04d22808bfen%40googlegroups.com.


Need Help Fixing an Issue in my E-commerce Project

2020-08-05 Thread Ahmed Khairy
Hi all,

I have been battling with this issue for quite a long time and I haven't 
been able to find a solution to fix it. 

So, I have an E-commerce Project and The issue is related to the product 
Variations and the quantity related to it in the order summary page. 

Example with the sequence for my issue: 

1. From the product details I add to cart the item* White T-shirt*  after 
choosing the variations of *Small *Size
2. After adding the first item, I return to the product details page and 
add another *White T-shirt* but different size *Medium*

Now, this is what appears in my order summary:


   - *White T-shirt* with a size *Small *Quantity: 1
   - *White T-shirt *with a size *Medium *Quantity:1

When I change the quantity of item X size medium, this change is reflecting 
in item X size small which was chosen first.

To be like this:

   - *White T-shirt* with a size *Small *Quantity:2
   - *White T-shirt* with a size *Medium *Quantity:1

In the order summary, there are a plus and minus in the template to change 
the quantity.

I have recently understood that because there's no form in the template. 
The code that sends a POST request with form data to the add to cart view 
is not there, because item_var will always be an empty list so 
order_item.variation.add(*item_var) does nothing. I do not know how to add 
a POST request to this template.

in the template there is a URL to add-to-cart", but URLs are transmitted by 
GET, so the code after if request.method == 'POST': never hits. 
Furthermore, even if it would, the add_to_cart url knows nothing about 
variations cause it only gets item slugs.


Here is my models.py

class Item(models.Model):
title = models.CharField(max_length=100)
price = models.DecimalField(decimal_places=2, max_digits=100)


class VariationManager(models.Manager):
def all(self):
return super(VariationManager, self).filter(active=True)

def sizes(self):
return self.all().filter(category='size')

def colors(self):
return self.all().filter(category='color')

VAR_CATEGORIES = (
('size', 'size',),
('color', 'color',),
('package', 'package'),
)


class Variation(models.Model):
item = models.ForeignKey(Item, on_delete=models.CASCADE)
title = models.CharField(max_length=120)
price = models.DecimalField(decimal_places=2, max_digits=100, null=True, 
blank=True)
objects = VariationManager()


class OrderItem(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL,
 on_delete=models.CASCADE)
ordered = models.BooleanField(default=False)
item = models.ForeignKey(Item, on_delete=models.CASCADE)
quantity = models.IntegerField(default=1)
variation = models.ManyToManyField(Variation)


Here are the views:

class OrderSummaryView(LoginRequiredMixin, View):
def get(self, *args, **kwargs):

try:
order = Order.objects.get(user=self.request.user, ordered=False)
context = {
'object': order
}
return render(self.request, 'order_summary.html', context)
except ObjectDoesNotExist:
messages.warning(self.request, "You do not have an active order")
return redirect("/")


@login_required
def add_to_cart(request, slug):
item = get_object_or_404(Item, slug=slug)
order_item_qs = OrderItem.objects.filter(
item=item,
user=request.user,
ordered=False
)
item_var = []  # item variation
if request.method == 'POST':
for items in request.POST:
key = items
val = request.POST[key]
try:
v = Variation.objects.get(
item=item,
category__iexact=key,
title__iexact=val
)
item_var.append(v)
except:
pass

if len(item_var) > 0:
for items in item_var:
order_item_qs = order_item_qs.filter(
variation__exact=items,
)

if order_item_qs.exists():
order_item = order_item_qs.first()
order_item.quantity += 1
order_item.save()
else:
order_item = OrderItem.objects.create(
item=item,
user=request.user,
ordered=False
)
order_item.variation.add(*item_var)
order_item.save()

order_qs = Order.objects.filter(user=request.user, ordered=False)
if order_qs.exists():
order = order_qs[0]
# check if the order item is in the order
if not order.items.filter(item__id=order_item.id).exists():
order.items.add(order_item)
messages.info(request, "This item quantity was updated.")
return redirect("core:order-summary")
else:
ordered_date = timezone.now()
order = Order.objects.create(
user=request.user, ordered_date=ordered_date)
order.

Re: django beginner

2020-08-05 Thread Thomas POKAM

Hi Jose,

Did you when throw this introduction guide ?

https://docs.djangoproject.com/en/3.1/intro/


Le 03/08/2020 à 11:10, jose AVOM a écrit :

hi all.
i am new in django i, i want to improve my skill...
need for help en challenge ...
thks
--
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/de500232-9554-401c-9299-89d594786e50n%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/8b733e13-fc16-e9ec-7ab2-97780e70b7c4%40gmail.com.


Re: django beginner

2020-08-05 Thread Kovy Jacob
If you want to learn, just try building a site, any site. Pick a hobby that
you have, and make a site about you and your hobby. There is a concept in
programming called MVP - minimum viable product. This means the minimum you
can do to have a working site.
I recommend that you figure out exactly how you want your website to be,
figure out the bare minimum for the site - no fancy HTMLs, no advanced
website functions - and build it. After that, slowly build on the existing
website.
Also, you should really make sure that you understand how the internet
works, how realtional databases (which is the type of database that
websites use (mostly)), and what a web framework (like django) is, and how
it works. You can learn django without it, but if you understand what you
are doing, it will help you A LOT. You won't just know what you are typing,
you'll understand why you're typing it.
Also, it's pretty important that you have a basic knowledge of python,
because that's what django is built on.
If I can help you with any of these, email me @ kovy.ja...@gmail.com.
Good luck!

On Wed, Aug 5, 2020 at 9:38 PM Thomas POKAM  wrote:

> Hi Jose,
>
> Did you when throw this introduction guide ?
>
> https://docs.djangoproject.com/en/3.1/intro/
>
>
> Le 03/08/2020 à 11:10, jose AVOM a écrit :
>
> hi all.
> i am new in django i, i want to improve my skill...
> need for help en challenge ...
> thks
> --
> 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/de500232-9554-401c-9299-89d594786e50n%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/8b733e13-fc16-e9ec-7ab2-97780e70b7c4%40gmail.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/CACMwF3VytNJUnmdqvgAcF1wwvos_uYWAFOF3KY8WkH0ojFYtkA%40mail.gmail.com.


Re: Python-django project

2020-08-05 Thread Nagaraju Singothu
Im also interested.my whatsapp number is 7659965869

On Wed 5 Aug, 2020, 8:24 PM jhabar singh  Sapna, Can you tell me something about your project?
>
> On Wed 5 Aug, 2020, 5:22 PM yammunap...@gmail.com, 
> wrote:
>
>> Dear I am interested to join with your work. Its my WhatsApp number
>> +919384402100
>>
>> Best regards,
>>
>> Yamuna V
>>
>>
>>
>> *From: *Mithlesh Kumar 
>> *Sent: *Wednesday, 29 July 2020 12:36 AM
>> *To: *django-users@googlegroups.com
>> *Subject: *Re: Python-django project
>>
>>
>>
>> I am also interested. Please add my number 8750641542
>>
>>
>>
>>
>>
>> Regards,
>>
>> Mithlesh Kumar
>>
>>
>>
>> On Tue, Jul 28, 2020, 19:07 BISWAJEET MISHRA <
>> biswajeetmishra...@gmail.com> wrote:
>>
>> Hii..
>>
>> I'm interested to work with you, U can contact me over whatsapp
>> +917978330633.
>>
>> Thanks
>>
>>
>>
>> On Tue, Jul 21, 2020, 08:39 learn code  wrote:
>>
>> Hi everyone,
>>
>> I am learning python and django, like to work on the projects to improve
>> more.If any one interested to join with me to work on the projects,plz send
>> me a email.
>>
>> --
>> 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/e7116e9b-9458-4f49-a638-135c4b5874e0o%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/CA%2B917QuPM99qrVYjfVxdrkyuH%3Db4umunS0mgutMM5r-0J%2BNnmA%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/CAP-2mbSt%2B0%2BbaYnOZNvhY0-7T9SKkE9dPJo17BvQp0HKxj0S8Q%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/C785D392-43C0-4832-860C-7BE114D1F726%40hxcore.ol
>> 
>> .
>>
> --
> 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/CAJ1QTg%3DdUaBXnSD9tYt_c5v430sOoALX_LAyockqXg_LhoL5pg%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/CAMyGuAbAa8_Ti0XzhazK8hqWEzmWQriYQR5Wm-4qCxuCarkjhQ%40mail.gmail.com.