LOOKING FOR DJANGO PYTHON JOBS

2020-09-07 Thread Madhav Nandan
Hi group users,

Hope you guys are doing well. I'm actively looking for jobs in the python,
Django domain. please suggest me some google group where I can find one.
 I'm good with skills like Data Structures, Algorithms, OOPs Concepts,
Django, SQLite, Python, Web scraping, Postgres, Github, Linux, etc.

Kindly notify me if any open positions are available and I'm meeting your
requirements.

Thanks & Regards,


-- 
Madhav Nandan

-- 
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/CAGXYL6JLcGcg6zK-EqrE_BLUKGmgVEwYxaGKtG1c-LwQh612nA%40mail.gmail.com.


Re: Integrating User Accounts into Django Website

2020-09-07 Thread King Niko
Hans,

This source works perfectly. Thank you!

On Sat, Sep 5, 2020 at 11:16 AM hans alexander  wrote:

> Try this one :
> https://jawaban.online/forum/discuss/52/django-login-and-authentication/
>
>
> On Sat, Sep 5, 2020 at 9:52 PM King Niko <
> thelegendofearthretu...@gmail.com> wrote:
>
>> My apologies, I should have been more clear. I did not mean integrating
>> users but rather building user accounts for a Django Website. I have a site
>> up and running, the admin page works, but I do not know how to make a login
>> page for visitors of the site.
>>
>> On Sat, Sep 5, 2020 at 9:56 AM hans alexander  wrote:
>>
>>> What do you mean by Integrating User? Django actually has built in
>>> features for user accounts.
>>>
>>> On Sat, Sep 5, 2020 at 8:40 PM Lightning Bit <
>>> thelegendofearthretu...@gmail.com> wrote:
>>>
 Hi all,

 Does anyone have experience with integrating user accounts into a
 Django Website? Are there any quality tutorials online?

 --
 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/913e77c6-a9f3-4410-8b7a-46f36f20ae77n%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/CANV3w%3DbJEA_dcSNamTtvK6AvkcMFN0u5PKjuTq4rXYB3PTkd%3Dg%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/CAO1EWpHsLgpEuioHCT2Gq0JO%3DUC6%3DX4QCgzGMRRe-FSL5cR_6w%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/CANV3w%3DaN%3D_9TkMaScUN465EzsOcRhuUfo6opCe3zPEsDxeDFSA%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/CAO1EWpFG7LMuVjpHM%3DKZF5eYUcDmit%3D_ng1XDv9B2YHSEtZ%3DKQ%40mail.gmail.com.


Re: Django+DjangoRestFramework+React+Redux open source projects

2020-09-07 Thread sakshi jain
E_commerce website using django

On Sun, Sep 6, 2020, 03:01 Shishir Jha  wrote:

> Look for gothinkster in github
>
> On Sat, 5 Sep 2020, 10:20 pm Yogendra Yadav, 
> wrote:
>
>> Please suggest open source projects to learn subject combination
>>
>> --
>> 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/4af9efdc-1b3a-4170-93e3-403cc2b2e241n%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%2BC7wFTiSdqFckigW%3Dq4kq6y4CK32MaEXg5XbLwHpgy6c4k8EA%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/CAJhs3iNbo%3DiP0pHNCX5wnJyznkuvaYSvXP5FbGvFw4uSb05pVA%40mail.gmail.com.


Re: Sources for learning django

2020-09-07 Thread رضا قلیزاده
Hi
Dm me on telegram @PyC0der
And i will share all the resources that i collected with you for free!
Fair enough?

On Fri, 21 Aug 2020, 03:00 Mohamed Ghoneim  Hey guys,
>
> can any one tell me  name of books , websites or youtube channels  which
> are good to learn django .
>
> i also want to ask ,how long does it take to learn django ?
>
> 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/5acb085e-246d-4802-9d23-b87b501918c9n%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/CANBL5L5WQwUrpTXFbDV%3DbXq4gVOKm8T9a-jgBqsG%2B3R62fib%3DQ%40mail.gmail.com.


Re: help

2020-09-07 Thread Anil pawar
Can you please share sample any sample code to understand with 
Django Packages do you want to achieve it.

Maybe this one helps you if you want to access the 3ed party API with the 
token.

*headers = {'Authorization': 'Token 
9054f7aa9305e012b3c2300408c3dfdf390fcddf'} *
*requests.get("http...", parms=payload, headers=headers)*

On Saturday, 5 September 2020 at 21:03:01 UTC+4 mbella...@gmail.com wrote:

> please need to know how to get the response from retreiving a 
> requests.get("http...", parms=payload)
> where payload is grant_type, client_id, client_secret 
>
> need to know how to get the access token from an api 

-- 
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/9fe9eeb6-86cf-43d8-b618-3adce604a732n%40googlegroups.com.


Re: django widget radio button error save is not touch

2020-09-07 Thread José Luis Ruiz
Build your class like this one:

class Card(models.Model): 
  class Suit(models.IntegerChoices): 
  DIAMOND = 1 
  SPADE = 2 
  HEART = 3 
  CLUB = 4 
  suit = models.IntegerField(choices=Suit.choices)

https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.Field.choices

Look at the middle of the page

On Sunday, September 6, 2020 at 8:51:02 PM UTC-4 sacrac wrote:

> Hi, i have a problem when save a field in radio button
> in my models have this
> CHOICES_OPTIONS = (
>  (1, 'Yes'),
> (2, 'No'),
> )
>
> class MyModels(...):
>myfield = models.IntegerField(choices=CHOICES_OPTIONS, null=True, 
> blank=True)
>
>
> class MyModelsForm()
>myfield = forms.ChoiceField(widget=forms.RadioSelect, 
> choices=CHOICES_OPTIONS,
>required=False)
>
> but when save the forms in my views this sends this error:
>
> Field 'myfield' expected a number but got ''.
>
> sometimes the user does not select anything neither yes nor no, the radio 
> button they won't touch it
>
> How can I make that null field be saved without any value and it does not 
> throw me that error
>
>

-- 
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/f959e267-b2f0-4079-83fd-63a73f44fd1cn%40googlegroups.com.


deploying a django project

2020-09-07 Thread programmer 262
hy guys i start learning django  and i build a ecommerce website as myfirst 
project and i don't know how to deploy it in heroku

-- 
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/2742aa36-8108-4810-9990-3a78866171can%40googlegroups.com.


How can I give the image file a random nane when using ProcessedImageField?

2020-09-07 Thread Mike Walker
I posted this over in the django-imagekit group before I noticed that I am 
unlikely to get any response over there due to activity level. So I am now 
over here to ask this goup.

I am using ProcessedImageField to resize images on upload in my user 
Profile model. The resizing part is working great and the resized image is 
successfully saved to my s3 bucket.

However what I would like to add is the ability to give the file a random 
name before upload. This would hopefully avoid the file name collisions 
issue. I am not sure how approach this yet, could someone point me in the 
right direction here?

I have included the code for my current model below.

class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = ProcessedImageField(default='default.jpg', upload_to='profile_pics',
processors=[ResizeToFill(200, 200)],
format='JPEG', options={'quality': 60})

def __str__(self):
return f'{self.user.username} Profile'

-- 
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/74120015-29cf-4232-b1ca-5b7a2ae12205n%40googlegroups.com.


Re: deploying a django project

2020-09-07 Thread Omkar Parab
Follow this video.
https://youtu.be/6DI_7Zja8Zc

On Tue, Sep 8, 2020, 2:36 AM programmer 262 
wrote:

> hy guys i start learning django  and i build a ecommerce website as
> myfirst project and i don't know how to deploy it in heroku
>
> --
> 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/2742aa36-8108-4810-9990-3a78866171can%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/CAJY8mfzxQxh_ef9MtSzRq2VeJ_Rsyfqa9COj%2BYidNLTyxf2EWg%40mail.gmail.com.


Re: How can I give the image file a random nane when using ProcessedImageField?

2020-09-07 Thread Mike Walker
Figures, I solved the problem after posting the question. With a bit more 
searching and reading I found a rather simple solution to this.

Changing the upload_to= to use a callable works. The callable needs to have 
two parameters instance and filename. changing the file name using a uuid 
seems to do the trick for now. I have included my solution just incase 
anyone else wants to do the same thing. :)

def generate_random_name(instance, filename):
filename = f'{uuid4().hex}.jpg'
return os.path.join('profile_pics', filename)


On Monday, September 7, 2020 at 2:07:38 PM UTC-7 Mike Walker wrote:

> I posted this over in the django-imagekit group before I noticed that I am 
> unlikely to get any response over there due to activity level. So I am now 
> over here to ask this goup.
>
> I am using ProcessedImageField to resize images on upload in my user 
> Profile model. The resizing part is working great and the resized image is 
> successfully saved to my s3 bucket.
>
> However what I would like to add is the ability to give the file a random 
> name before upload. This would hopefully avoid the file name collisions 
> issue. I am not sure how approach this yet, could someone point me in the 
> right direction here?
>
> I have included the code for my current model below.
>
> class Profile(models.Model):
> user = models.OneToOneField(User, on_delete=models.CASCADE)
>
> image = ProcessedImageField(default='default.jpg', 
> upload_to='profile_pics',
> processors=[ResizeToFill(200, 200)],
> format='JPEG', options={'quality': 60})
>
> def __str__(self):
> return f'{self.user.username} Profile'
>

-- 
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/aabea96b-58bf-4850-ae3c-e5e116b3a684n%40googlegroups.com.


Re: Using FormMixin with DetailView

2020-09-07 Thread Abdu-H

Hello, i realise this is a very old post, but i am trying to implement your 
code here, but it seems some code are missing, i was able to get a form, 
but the contents of my detailView isn't showing, what code am i suppose to 
put here " A view for displaying a single post ". your help will be greatly 
appreciated.
Thank you.
On Tuesday, 28 July 2015 at 12:08:23 UTC+1 latu...@gmail.com wrote:

> Hello James,
>
> Following your advice I turned to using CreateView, and now all the 
> functionality I wanted seems to work fully. As you suggested there is no 
> need for a form.py using this method. When I got more time I might 
> investigate further how to make the original approach work for future 
> reference.  This is the view code:
>
> class PostDetailView(BlogMixin,CreateView):
>
> """ A view for displaying a single post """
> template_name = 'post.html'
>
> model = Comment
> fields = ['body','author_name'] 
> def get_context_data(self, **kwargs):
> context = super(PostDetailView, self).get_context_data(**kwargs)
> context['post'] =  Post.objects.get(pk=self.kwargs['pk'])
> return context
> 
> def form_valid(self, form):
> obj = form.save(commit=False)
> obj.parent_post = Post.objects.get(pk=self.kwargs['pk'])
> obj.save()
>
>return redirect('post-detail', self.kwargs['pk'])
>
>
>
>

-- 
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/29f08e84-de56-4e59-b388-fa895e9f868en%40googlegroups.com.


Re: Django ORM Model meta internal API to current API update

2020-09-07 Thread Asif Saif Uddin
any help? I can share the full function

On Wednesday, August 19, 2020 at 3:42:09 AM UTC+6 vickkymb...@gmail.com 
wrote:

> I don't bro i just started new in Django
>
> Victor
>
> On Tue, Aug 18, 2020, 3:46 PM Asif Saif Uddin  wrote:
>
>>
>> Hi,
>> I have got an old project of django 1.8 which use codes like
>>
>> links = [rel.get_accessor_name() for rel in 
>> self._meta.get_all_related_objects()]
>>
>> How would I upgrade this code snippets to django 2.2 LTS?
>>
>> TIA
>>
>> -- 
>> 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/c408d424-7c94-43de-beae-4071d424e2ecn%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/e83b7021-3158-41b2-b48f-33d9f45270a6n%40googlegroups.com.


Re: deploying a django project

2020-09-07 Thread Liu Zheng
@Omkar Parab: Lol. Exactly. When I saw the question, this video was the
first in my mind. I clicked in to share the link, but you have shared it.

Cheers!

On Tue, Sep 8, 2020 at 5:14 AM Omkar Parab  wrote:

> Follow this video.
> https://youtu.be/6DI_7Zja8Zc
>
> On Tue, Sep 8, 2020, 2:36 AM programmer 262 
> wrote:
>
>> hy guys i start learning django  and i build a ecommerce website as
>> myfirst project and i don't know how to deploy it in heroku
>>
>> --
>> 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/2742aa36-8108-4810-9990-3a78866171can%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/CAJY8mfzxQxh_ef9MtSzRq2VeJ_Rsyfqa9COj%2BYidNLTyxf2EWg%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/CAGQ3pf9NV3adydf2US1veQO97gEywQ4MfvEef4mk-abY7j_c6A%40mail.gmail.com.