Re: Rocket chat with python: imp

2020-09-08 Thread RANGA BHARATH JINKA
Hi,

   Try this.

   https://pypi.org/project/rocket-python/

  All the best

On Wed, Sep 9, 2020 at 11:00 AM Chander shekhar  wrote:

> Can anyone help me in integrating rocket chat with python any link
> ,videos,or any personal suggestion.
> I have to make a chat with it,really imp
>
> --
> 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/db50ed7d-2058-4bff-818c-5677fa6ab62an%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m317Y18mYiatjkNM_A-nLwcy9aqZ2v4SUSKT0YC%2B5fAauFQ%40mail.gmail.com.


Rocket chat with python: imp

2020-09-08 Thread Chander shekhar
Can anyone help me in integrating rocket chat with python any link 
,videos,or any personal suggestion.
I have to make a chat with it,really imp

-- 
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/db50ed7d-2058-4bff-818c-5677fa6ab62an%40googlegroups.com.


Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Thanks guys.. Already solved it.
I guess the main reason of the problem is that I'm using Pycharm Community
Edition.
So the alert error not accurate.

Anyway I tried to py manage.py with some alerts, and worked.
for example:
[image: image.png]
I left it like that. And sitemap still works.

But now the new problem is when I submitted my sitemap.xml to google search
console, I got this error.
[image: image.png]
I don't know why.

Even when I access the domain/sitemap.xml, the sitemap is showing.

Any suggestions?

Thanks

On Wed, Sep 9, 2020 at 4:20 AM coolguy 
wrote:

> I did this long time ago and here is what i did...
>
> in settings.py
> SITE_ID = 1
> # Application definition
> INSTALLED_APPS = [
># ...
>'django.contrib.sites',
>'django.contrib.sitemaps',
> ]
>
> run migration i.e.
> >>> py manage.py migrateOR python manage.py migrate
> after this step, sites application will be in sync with the database.
>
> create a file sitemaps.py in your blog application. Your sitemap.py seems
> okay to me.
>
> update your main project urls.py file
> 
> from django.contrib.sitemaps.views import sitemap
> from blog.sitemaps import BlogPostsSitemap
>
> sitemaps = {
> 'posts' : BlogPostsSitemap,
> }
>
> urlpatterns = [
>   
>   path('sitemap.xml', sitemap, {'sitemaps': sitemaps},
> name='django.contrib.sitemaps.views.sitemap'),
> ]
>
> Now run the development server and open (assuming you are using default
> configuration) http://127.0.0.1:8000/sitemap
>
> lets try...
>
> On Tuesday, September 8, 2020 at 2:53:12 PM UTC-4 hanz...@gmail.com wrote:
>
>> I followed a tutorial for creating django sitemap, but still got problems
>> along the way.
>> I've seen some videos, but didn't work.
>> Do you have any references for easy way creating django sitemap for blog
>> posts?
>> Sure it would help.
>>
>> Thanks
>>
>>
>>
>> On Wed, Sep 9, 2020 at 12:02 AM coolguy  wrote:
>>
>>> Not sure why you are importing this into your main project urls.py but
>>> its very straight forward
>>>
>>> from blog.sitemaps import BlogPostsSitemap
>>>
>>> question... are you trying to map the application url here? then you
>>> should use path('/' , Include("blog.urls"))
>>>
>>>
>>>
>>>
>>> On Tuesday, September 8, 2020 at 4:39:05 AM UTC-4 hanz...@gmail.com
>>> wrote:
>>>
 Sorry, point no 1 needs to be revised..
 1. In urls.py, I want to import BlogPostsSitemap


 --
>>> 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/0f74b537-3fa8-4725-8098-b602417ea41bn%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/030f483b-fb0c-428c-ab8d-8e7d3b82eb40n%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%3DaDYQ5tGzNsr1r5bqCbcqAe5qEfnX7uBY%2BU2OK-%3DR09iw%40mail.gmail.com.


Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
I did this long time ago and here is what i did...

in settings.py
SITE_ID = 1
# Application definition
INSTALLED_APPS = [
   # ...
   'django.contrib.sites',
   'django.contrib.sitemaps',
]

run migration i.e. 
>>> py manage.py migrateOR python manage.py migrate
after this step, sites application will be in sync with the database.

create a file sitemaps.py in your blog application. Your sitemap.py seems 
okay to me.

update your main project urls.py file

from django.contrib.sitemaps.views import sitemap
from blog.sitemaps import BlogPostsSitemap

sitemaps = {
'posts' : BlogPostsSitemap,
}

urlpatterns = [
  
  path('sitemap.xml', sitemap, {'sitemaps': sitemaps},  
name='django.contrib.sitemaps.views.sitemap'),
]

Now run the development server and open (assuming you are using default 
configuration) http://127.0.0.1:8000/sitemap

lets try...

On Tuesday, September 8, 2020 at 2:53:12 PM UTC-4 hanz...@gmail.com wrote:

> I followed a tutorial for creating django sitemap, but still got problems 
> along the way. 
> I've seen some videos, but didn't work.  
> Do you have any references for easy way creating django sitemap for blog 
> posts?
> Sure it would help. 
>
> Thanks
>
>
>
> On Wed, Sep 9, 2020 at 12:02 AM coolguy  wrote:
>
>> Not sure why you are importing this into your main project urls.py but 
>> its very straight forward
>>
>> from blog.sitemaps import BlogPostsSitemap
>>
>> question... are you trying to map the application url here? then you 
>> should use path('/' , Include("blog.urls"))
>>
>>
>>
>>
>> On Tuesday, September 8, 2020 at 4:39:05 AM UTC-4 hanz...@gmail.com 
>> wrote:
>>
>>> Sorry, point no 1 needs to be revised..
>>> 1. In urls.py, I want to import BlogPostsSitemap
>>>
>>>
>>> -- 
>> 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/0f74b537-3fa8-4725-8098-b602417ea41bn%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/030f483b-fb0c-428c-ab8d-8e7d3b82eb40n%40googlegroups.com.


Re: Help me with the view please

2020-09-08 Thread coolguy
I see now what you are asking...

I never do such calculations in views rather I create methods in models.py 
to do so and call them in the template...

Like what you could do is...

class Student(models.Model):
name = models.CharField(max_length=200, null=True, blank=True)
classroom = models.ForeignKey(Classroom,
  on_delete=models.DO_NOTHING, blank=True, 
null=True)

def __str__(self):
return self.name

def get_total_fee(self):
return sum(student.school_fees for student in self.fee_set.all())

def get_total_paid_fee(self):
return sum(student.paid_fees for student in self.fee_set.all())

def get_remaining_fee(self):
total_fee = self.get_total_fee()
total_paid = self.get_total_paid_fee()
return float(total_fee - total_paid)

and in template you can call e.g
{% for student in students %}
{{ student.name }}: {{ student.get_remaining_fee }}

{% endfor %}


On Tuesday, September 8, 2020 at 1:35:56 PM UTC-4 dex9...@gmail.com wrote:

> Thank you for your help @coolguy..but my real problem lies in writing the 
> code for “fee_remaining”, can you help me with that also..thanks
>
>  
>
> Sent from Mail  for 
> Windows 10
>
>  
>
> *From: *coolguy
> *Sent: *Tuesday, September 8, 2020 7:45 PM
> *To: *Django users
> *Subject: *Re: Help me with the view please
>
>  
>
> In your return line of code, you are referring to context variable but I 
> don't see you assigned any value to this context variable in your code.
>
> Or if you want to send three variables i.e. "fees", "total_fees" and 
> "fee_remaining"... you need to send them separately like
>
>  
>
> return render(request, 'website/students.html', {"fees": fees, 
> "total_fees": total_fees, "fee_remaining": fee_remaining })
>
>  
>
> then use these variables on your students.html template.  
>
>  
>
> On Tuesday, September 8, 2020 at 12:21:21 PM UTC-4 dex9...@gmail.com 
> wrote:
>
> My Models
> class Student(models.Model):
> name = models.CharField(max_length=200, null=True, blank=True)
> classroom = models.ForeignKey(‘Classroom’,
> on_delete=models.DO_NOTHING,blank=True, null=True)
> class Classroom(models.Model):
> name = models.CharField(max_length=40,blank=True, null=True)
>
> class Fee(models.Model):
> student = models.ForeignKey(Student, on_delete=models.CASCADE, null=True,)
> classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE, 
> null=True)
> school_fees = models.FloatField(default=100)
> paid_fees = models.FloatField(null=False)
> remaining_fees = models.FloatField(blank=True)
> completed = models.BooleanField(null=False, default=False)
>
> views.py
> def student(request, pk):
> student = Student.objects.get(id=pk)
>
> fees = student.fee_set.all().order_by('-publish_date') total_fees = 
> student.fee_set.all().filter(student__id=pk) 
> .aggregate(sum=Sum('paid_fees', flat=True)['sum'] 
>
> fees_remaining = () 
>
> return render(request, 'website/students.html', context)  
>
> -- 
> 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/e026b778-bac8-4522-ad1f-2ea4b33ad1efn%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/fa0084c8-5c21-4f46-82f1-23cbb8abe1can%40googlegroups.com.


Re: Help me with the view please

2020-09-08 Thread coolguy
I see now what you are asking...

I never do such calculations in views rather I create methods in models.py 
to do so and call them in the template...

Like what you could do is...

class Student(models.Model):
name = models.CharField(max_length=200, null=True, blank=True)
classroom = models.ForeignKey(Classroom,
  on_delete=models.DO_NOTHING, blank=True, 
null=True)

def __str__(self):
return self.name

def get_total_fee(self):
return sum(student.school_fees for student in self.fee_set.all())

def get_total_paid_fee(self):
return sum(student.paid_fees for student in self.fee_set.all())

def get_remaining_fee(self):
total_fee = self.get_total_fee()
total_paid = self.get_total_paid_fee()
return float(total_fee - total_paid)

and in template you can call...
{{ student.get_remaining_fee }}
On Tuesday, September 8, 2020 at 1:35:56 PM UTC-4 dex9...@gmail.com wrote:

> Thank you for your help @coolguy..but my real problem lies in writing the 
> code for “fee_remaining”, can you help me with that also..thanks
>
>  
>
> Sent from Mail  for 
> Windows 10
>
>  
>
> *From: *coolguy
> *Sent: *Tuesday, September 8, 2020 7:45 PM
> *To: *Django users
> *Subject: *Re: Help me with the view please
>
>  
>
> In your return line of code, you are referring to context variable but I 
> don't see you assigned any value to this context variable in your code.
>
> Or if you want to send three variables i.e. "fees", "total_fees" and 
> "fee_remaining"... you need to send them separately like
>
>  
>
> return render(request, 'website/students.html', {"fees": fees, 
> "total_fees": total_fees, "fee_remaining": fee_remaining })
>
>  
>
> then use these variables on your students.html template.  
>
>  
>
> On Tuesday, September 8, 2020 at 12:21:21 PM UTC-4 dex9...@gmail.com 
> wrote:
>
> My Models
> class Student(models.Model):
> name = models.CharField(max_length=200, null=True, blank=True)
> classroom = models.ForeignKey(‘Classroom’,
> on_delete=models.DO_NOTHING,blank=True, null=True)
> class Classroom(models.Model):
> name = models.CharField(max_length=40,blank=True, null=True)
>
> class Fee(models.Model):
> student = models.ForeignKey(Student, on_delete=models.CASCADE, null=True,)
> classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE, 
> null=True)
> school_fees = models.FloatField(default=100)
> paid_fees = models.FloatField(null=False)
> remaining_fees = models.FloatField(blank=True)
> completed = models.BooleanField(null=False, default=False)
>
> views.py
> def student(request, pk):
> student = Student.objects.get(id=pk)
>
> fees = student.fee_set.all().order_by('-publish_date') total_fees = 
> student.fee_set.all().filter(student__id=pk) 
> .aggregate(sum=Sum('paid_fees', flat=True)['sum'] 
>
> fees_remaining = () 
>
> return render(request, 'website/students.html', context)  
>
> -- 
> 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/e026b778-bac8-4522-ad1f-2ea4b33ad1efn%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/bc5f52f8-4b46-40c5-8ff1-9d05e3095346n%40googlegroups.com.


Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
I followed a tutorial for creating django sitemap, but still got problems
along the way.
I've seen some videos, but didn't work.
Do you have any references for easy way creating django sitemap for blog
posts?
Sure it would help.

Thanks



On Wed, Sep 9, 2020 at 12:02 AM coolguy 
wrote:

> Not sure why you are importing this into your main project urls.py but its
> very straight forward
>
> from blog.sitemaps import BlogPostsSitemap
>
> question... are you trying to map the application url here? then you
> should use path('/' , Include("blog.urls"))
>
>
>
>
> On Tuesday, September 8, 2020 at 4:39:05 AM UTC-4 hanz...@gmail.com wrote:
>
>> Sorry, point no 1 needs to be revised..
>> 1. In urls.py, I want to import BlogPostsSitemap
>>
>>
>> --
> 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/0f74b537-3fa8-4725-8098-b602417ea41bn%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%3DaB3ipwfJuJQC-W3c9qq6AruPqqfqnV7ykJ%2BRjAYq1sLw%40mail.gmail.com.


RE: Help me with the view please

2020-09-08 Thread fadhil alex
Thank you for your help @coolguy..but my real problem lies in writing the code for “fee_remaining”, can you help me with that also..thanks Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 8, 2020 7:45 PMTo: Django usersSubject: Re: Help me with the view please In your return line of code, you are referring to context variable but I don't see you assigned any value to this context variable in your code.Or if you want to send three variables i.e. "fees", "total_fees" and "fee_remaining"... you need to send them separately like return render(request, 'website/students.html', {"fees": fees, "total_fees": total_fees, "fee_remaining": fee_remaining }) then use these variables on your students.html template.   On Tuesday, September 8, 2020 at 12:21:21 PM UTC-4 dex9...@gmail.com wrote:My Modelsclass Student(models.Model):name = models.CharField(max_length=200, null=True, blank=True)classroom = models.ForeignKey(‘Classroom’,_on_delete_=models.DO_NOTHING,blank=True, null=True)class Classroom(models.Model):name = models.CharField(max_length=40,blank=True, null=True)class Fee(models.Model):student = models.ForeignKey(Student, _on_delete_=models.CASCADE, null=True,)classroom = models.ForeignKey(Classroom, _on_delete_=models.CASCADE, null=True)school_fees = models.FloatField(default=100)paid_fees = models.FloatField(null=False)remaining_fees = models.FloatField(blank=True)completed = models.BooleanField(null=False, default=False)views.pydef student(request, pk):student = Student.objects.get(id=pk)fees = student.fee_set.all().order_by('-publish_date') total_fees = student.fee_set.all().filter(student__id=pk) .aggregate(sum=Sum('paid_fees', flat=True)['sum'] fees_remaining = () return render(request, 'website/students.html', context)  -- 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/e026b778-bac8-4522-ad1f-2ea4b33ad1efn%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/22CCCFA9-83C9-45FF-A2E7-413F1221FE49%40hxcore.ol.


Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
Not sure why you are importing this into your main project urls.py but its 
very straight forward

from blog.sitemaps import BlogPostsSitemap

question... are you trying to map the application url here? then you should 
use path('/' , Include("blog.urls"))




On Tuesday, September 8, 2020 at 4:39:05 AM UTC-4 hanz...@gmail.com wrote:

> Sorry, point no 1 needs to be revised..
> 1. In urls.py, I want to import BlogPostsSitemap
>
>
>

-- 
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/0f74b537-3fa8-4725-8098-b602417ea41bn%40googlegroups.com.


Re: Help me with the view please

2020-09-08 Thread coolguy
In your return line of code, you are referring to context variable but I 
don't see you assigned any value to this context variable in your code.
Or if you want to send three variables i.e. "fees", "total_fees" and 
"fee_remaining"... you need to send them separately like

return render(request, 'website/students.html', {"fees": fees, 
"total_fees": total_fees, "fee_remaining": fee_remaining })

then use these variables on your students.html template.  


On Tuesday, September 8, 2020 at 12:21:21 PM UTC-4 dex9...@gmail.com wrote:

> My Models
> class Student(models.Model):
> name = models.CharField(max_length=200, null=True, blank=True)
> classroom = models.ForeignKey(‘Classroom’,
> on_delete=models.DO_NOTHING,blank=True, null=True)
> class Classroom(models.Model):
> name = models.CharField(max_length=40,blank=True, null=True)
>
> class Fee(models.Model):
> student = models.ForeignKey(Student, on_delete=models.CASCADE, null=True,)
> classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE, 
> null=True)
> school_fees = models.FloatField(default=100)
> paid_fees = models.FloatField(null=False)
> remaining_fees = models.FloatField(blank=True)
> completed = models.BooleanField(null=False, default=False)
>
> views.py
> def student(request, pk):
> student = Student.objects.get(id=pk)
> fees = student.fee_set.all().order_by('-publish_date') total_fees = 
> student.fee_set.all().filter(student__id=pk) 
> .aggregate(sum=Sum('paid_fees', flat=True)['sum'] 
> fees_remaining = () 
> return render(request, 'website/students.html', context)  
>

-- 
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/e026b778-bac8-4522-ad1f-2ea4b33ad1efn%40googlegroups.com.


Help me with the view please

2020-09-08 Thread Dexterr Jay


My Models
class Student(models.Model):
name = models.CharField(max_length=200, null=True, blank=True)
classroom = models.ForeignKey(‘Classroom’,
on_delete=models.DO_NOTHING,blank=True, null=True)
class Classroom(models.Model):
name = models.CharField(max_length=40,blank=True, null=True)

class Fee(models.Model):
student = models.ForeignKey(Student, on_delete=models.CASCADE, null=True,)
classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE, 
null=True)
school_fees = models.FloatField(default=100)
paid_fees = models.FloatField(null=False)
remaining_fees = models.FloatField(blank=True)
completed = models.BooleanField(null=False, default=False)

views.py
def student(request, pk):
student = Student.objects.get(id=pk)
fees = student.fee_set.all().order_by('-publish_date') total_fees = 
student.fee_set.all().filter(student__id=pk) 
.aggregate(sum=Sum('paid_fees', flat=True)['sum'] 
fees_remaining = () 
return render(request, 'website/students.html', context)  

-- 
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/6c03e499-43b8-487f-851b-a7742bb89fb7n%40googlegroups.com.


Do you ever come across comments expressing anger or happiness when developing open-source software?

2020-09-08 Thread Nathan Cassee


To Whom it may concern, 

 

We are an international team of researchers, from the University of Bari, 
Italy, and Eindhoven University of Technology, the Netherlands. The goal of 
our research is to help improve the health and long term stability of 
open-source communities. We would like to learn about your experiences when 
contributing to open-source projects such as this. More specifically, we 
want to understand how you, as open-source contributors, experience the 
emotions that are expressed in online discussions about developing software.

 

If you are interested in talking about your experiences as an open-source 
contributor then please schedule a meeting with us using calendy here (
https://calendly.com/n-w-cassee/interview). We are interested in different 
experiences, therefore, we are looking to talk to people of all age-groups, 
genders, and people with different roles in open-source projects. So even 
whether you are a first time contributor or a senior maintainer don’t 
hesitate to schedule a meeting! If you have any questions you can always 
send us an e-mail at n.w.cas...@tue.nl. 

 

The interview itself will take no longer than one hour, and will be 
scheduled using Microsoft Teams. We will record the interview and the 
recording and transcript of the interview will  be stored securely, and 
only made available to the researchers that are involved in this project. 
Additionally, we plan to use anonymized results of the interview in a 
scientific publication.  

 

Kind regards and thanks in advance,

 

Nicole Novielli,

University of Bari

http://collab.di.uniba.it/nicole/

 

Alexander Serebrenik,

Eindhoven University of Technology

https://www.win.tue.nl/~aserebre/

 

Nathan Cassee, 

Eindhoven University of Technology

https://cassee.dev 

 

 

-- 
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/78f21c1b-7f10-4371-8f2e-f823fc0b050fn%40googlegroups.com.


Re: deploying a django project

2020-09-08 Thread joe lin
https://tutorial-extensions.djangogirls.org/en/heroku/

Liu Zheng  於 2020年9月8日 週二 下午1:49寫道:

> @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
> 
> .
>

-- 
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%2BZ1bBG0T62%3DZ_xXkpaoTzLf1k2_11cU0Phua8Ln01H7uxcnRw%40mail.gmail.com.


Re:

2020-09-08 Thread RANGA BHARATH JINKA
Delete the Virtual Environment  venv (or) env folder and create a
new Virtual Environment using

python3.7 -m venv venv

Install all modules again.

Since it doesn't support python3.8.

All the best


On Tue, Sep 8, 2020 at 4:55 PM hans alexander  wrote:

> I have seen that link, still got errors after trying to install twisted.
> Guess the problem is that I'm using python 3.8.5. Guess it's not supported
> for Django Channels.
> Is there any safe way to downgrade python version ?
> Or how to separate Global Python Version and Virtual Environment Python
> Version?
> I already have my virtual env for my project.
>
> Please advise. Thanks
>
> On Tue, Sep 8, 2020 at 5:48 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>See this link.
>>
>> https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
>>   All the best
>>
>> On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:
>>
>>> I got errors when installing Django Channels.
>>> I'm using Python 3.8.5, Django 3.1
>>>
>>> Installing using :
>>> pip install channels
>>>
>>> I got error like this:
>>>
>>> Installing collected packages: twisted, daphne, channels
>>> Running setup.py install for twisted ... error
>>> ERROR: Command errored out with exit status 1:
>>>(many error lines below)
>>>
>>> Please help. 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/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%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%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m317FyLYrMo-FLWDjORHXgrmpDFtj_CgTT5x3aZt4MuFAAQ%40mail.gmail.com.


Re:

2020-09-08 Thread hans alexander
I have seen that link, still got errors after trying to install twisted.
Guess the problem is that I'm using python 3.8.5. Guess it's not supported
for Django Channels.
Is there any safe way to downgrade python version ?
Or how to separate Global Python Version and Virtual Environment Python
Version?
I already have my virtual env for my project.

Please advise. Thanks

On Tue, Sep 8, 2020 at 5:48 PM RANGA BHARATH JINKA 
wrote:

> Hi,
>See this link.
>
> https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
>   All the best
>
> On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:
>
>> I got errors when installing Django Channels.
>> I'm using Python 3.8.5, Django 3.1
>>
>> Installing using :
>> pip install channels
>>
>> I got error like this:
>>
>> Installing collected packages: twisted, daphne, channels
>> Running setup.py install for twisted ... error
>> ERROR: Command errored out with exit status 1:
>>(many error lines below)
>>
>> Please help. 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/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%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%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com.


Re:

2020-09-08 Thread RANGA BHARATH JINKA
Hi,
   See this link.

https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
  All the best

On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:

> I got errors when installing Django Channels.
> I'm using Python 3.8.5, Django 3.1
>
> Installing using :
> pip install channels
>
> I got error like this:
>
> Installing collected packages: twisted, daphne, channels
> Running setup.py install for twisted ... error
> ERROR: Command errored out with exit status 1:
>(many error lines below)
>
> Please help. 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/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


[no subject]

2020-09-08 Thread hans alexander
I got errors when installing Django Channels.
I'm using Python 3.8.5, Django 3.1

Installing using :
pip install channels

I got error like this:

Installing collected packages: twisted, daphne, channels
Running setup.py install for twisted ... error
ERROR: Command errored out with exit status 1:
   (many error lines below)

Please help. 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/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com.


Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Sorry, point no 1 needs to be revised..
1. In urls.py, I want to import BlogPostsSitemap

-- 
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%3Db2gom-wc_jkB_Zdgy_xPUP6CSydRxO5T_0iysfu0otJg%40mail.gmail.com.


I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
my structure is like this:

my_project
   blog
  
  sitemaps.py
  
   my_project
  
  urls.py
  

Inside sitemaps.py :

from django.contrib.sitemaps import Sitemap
from .models import *

class BlogPostsSitemap(Sitemap):
changefreq = 'daily'
priority = 0.9
def items(self):
return PostModel.published.all()

def lastmod(self,obj):
return obj.updated


my case:
1. In settings.py I want to import BlogPostsSitemap.
2. I tried like this
[image: image.png]

but then I got an error "ValueError: attempted relative import beyond
top-level package" when I ran the server.

Is anyone here got the solution? Or maybe some references how to
create sitemap on 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/CANV3w%3DYhzmvdPakW%2B%2BgwNjG%3DzGiZ61wpmuDPdDOO%2BgxFJnU%3DSQ%40mail.gmail.com.


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

2020-09-08 Thread Shaheed Haque
On Tue, 8 Sep 2020 at 03:54, Asif Saif Uddin  wrote:

> any help? I can share the full function
>

I've poked around some of these dark corners, but only since the late 2.x
series. After a bit of searching this
find-the-field-that-connects-a-model-to-a-through-model

and the linked

suggest these are/were private APIs and AFAIK, the best you can do is try
to figure out what the old code was doing, and rework them using the likes
of:

   - self._meta.related_objects
   - self._meta.fields_map
   - self._meta.local_many_to_man

and the other similarly named fields. One thing to note: if a field x
points to a *set* of objects, you won't find a "self.x", but rather a
"self.x_set" which must be followed using a query such as
"self.x_set.all()" rather than a simple field dereference.

HTH, Shaheed

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
> 
> .
>

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