Re: Website slowed down drasticaly

2019-05-05 Thread Sally Middleton
Hi

>From a generic debugging point of view, you need to find out the root cause 
of the performance decline. Ideally you need to isolate and test each part 
of the system in turn and look for the one which is causing the problem. 

1. If it can be reproduced on a prod-like environment then that's really 
great as you can make changes easily to test. Always keep a note of EXACTLY 
what you've changed and put it back the way it was previously before your 
next test. If you cannot reproduce that also tells you something, for 
example it's due to data quantities or prod-hardware.

2. Put tracing/logging on your prod environment database and check for SQL 
for degradation (maybe compared to your development env). Maybe all is OK 
or one query is slow or everything is slow. Any performance issues will 
need tuning, but it sounds like you are looking for something quite 
fundamental.

3. What happened in February? Did you perform a release to Production? What 
was in it? If you roll-back (in test environment) does it fix the problem? 
Maybe it is a component that has been updated. Any configuration changes to 
your web server?

4. If it isn't the database then it's something else. You need to isolate 
each part of the system in turn and put on logging then check the results.

Best regards
Sally


On Thursday, 2 May 2019 12:40:20 UTC+1, Saurabh Adhikary wrote:
>
> Hello , 
>
> I'm using Django version 1.8.1  and Python version 2.7.12 . Suddenly since 
> Feb '19 there has been a drastic decrease in my website's response rate.
> For sure , there has been some minor increase in the no of hits, but the 
> performance is too bad.
>
> Initially , the thought came that the hardware of the server was old , so 
> a new server with high configuration was bought.
> We have done the new indexing also on it.
> Still the sought for a higher performance is awaited.
>
>
> Is it that the Django support for 1.8.1 or Python support for 2.7.12 has 
> reduced and that is casing the website to slow down or I am missing out on 
> something ?
> Kindly help. 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/726a21b9-0c55-49e5-8c8c-2ee48797e5e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Print data from Database in Django

2019-05-05 Thread anchal agarwal
I want to display the name of all the students from the Student model using
cards , i have set it all up but it isn't displaying anything, here are my
files

models.py

from django.db import models
from django.utils import timezone
from datetime import date
from ckeditor.fields import RichTextField

class Student(models.Model):
full_name=models.CharField(max_length=70)
D_O_B=models.TextField()
def _str_(self):
return self.full_name

class Article(models.Model):
pub_date=models.DateField(default=timezone.now())
headline=models.CharField(max_length=70)
content=RichTextField()
reporter=models.ForeignKey(Student,on_delete=models.CASCADE)


urls.py

from django.urls import path
from . import views

app_name="students"

urlpatterns=[
path('Students.html/',views.homepage,name='homepage'),
path("/",views.detail,name='detail'), ]


views.py

from django.shortcuts import render
from django.http import HttpResponse
from .models import Student

def homepage(request):
context={"stud": Student.objects.all}
print(Student.objects.all)
return render(request,"students/Students.html",context)

def detail(request,full_name):
return HttpResponse("You are looking %s!!" % full_name)

Students.html


https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css
">

https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js
">



{% for stud in Student %}



{{stud.full_name}}
{{stud.D_O_B}}


This is a link
This is a link



{% endfor %}




-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMT%3DisXCa7Yc-vM3%2B5c0jWdCX8hgwJFN2tRtCqkK2NbzzqX-nA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Print data from Database in Django

2019-05-05 Thread Thomas Lockhart
Your context variable for all students is “stud”. Try changing that to 
“Student” as you refer to it in your template.

- Tom

> On May 5, 2019, at 7:09 AM, anchal agarwal  wrote:
> 
> I want to display the name of all the students from the Student model using 
> cards , i have set it all up but it isn't displaying anything, here are my 
> files  
> 
> models.py
> 
> from django.db import models
> from django.utils import timezone
> from datetime import date
> from ckeditor.fields import RichTextField
> 
> class Student(models.Model):
> full_name=models.CharField(max_length=70)
> D_O_B=models.TextField()
> def _str_(self):
> return self.full_name
> 
> class Article(models.Model):
> pub_date=models.DateField(default=timezone.now())
> headline=models.CharField(max_length=70)
> content=RichTextField()
> reporter=models.ForeignKey(Student,on_delete=models.CASCADE)
> 
> 
> 
> urls.py
> 
> from django.urls import path
> from . import views
> 
> app_name="students"
> 
> urlpatterns=[
> path('Students.html/',views.homepage,name='homepage'),
> path("/",views.detail,name='detail'),]
> 
> 
> views.py 
> 
> from django.shortcuts import render
> from django.http import HttpResponse
> from .models import Student
> 
> 
> def homepage(request):
> context={"stud": Student.objects.all}
> print(Student.objects.all)
> return render(request,"students/Students.html",context)
> 
> def detail(request,full_name):
> return HttpResponse("You are looking %s!!" % full_name)
> 
> Students.html
> 
> 
>  href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css
>  
> ">
> 
> 
>  src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js
>  
> <https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js>">
> 
>
> 
> {% for stud in Student %}
> 
>   
> 
>   {{stud.full_name}}
>   {{stud.D_O_B}}
> 
> 
>   This is a link
>   This is a link
> 
>   
> 
> {% endfor %}
> 
> 
> 
> 
> 
> -- 
> 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 post to this group, send email to django-users@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAMT%3DisXCa7Yc-vM3%2B5c0jWdCX8hgwJFN2tRtCqkK2NbzzqX-nA%40mail.gmail.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ECEE1C89-29E7-45D7-A7F0-DCBE7DB4CE66%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Print data from Database in Django

2019-05-05 Thread anchal agarwal
Thanks alot , it worked !!
On 05-May-2019 7:43 pm, "Thomas Lockhart"  wrote:

> Your context variable for all students is “stud”. Try changing that to
> “Student” as you refer to it in your template.
>
> - Tom
>
> On May 5, 2019, at 7:09 AM, anchal agarwal 
> wrote:
>
> I want to display the name of all the students from the Student model
> using cards , i have set it all up but it isn't displaying anything, here
> are my files
>
> models.py
>
> from django.db import models
> from django.utils import timezone
> from datetime import date
> from ckeditor.fields import RichTextField
>
> class Student(models.Model):
> full_name=models.CharField(max_length=70)
> D_O_B=models.TextField()
> def _str_(self):
> return self.full_name
>
> class Article(models.Model):
> pub_date=models.DateField(default=timezone.now())
> headline=models.CharField(max_length=70)
> content=RichTextField()
> reporter=models.ForeignKey(Student,on_delete=models.CASCADE)
>
>
> urls.py
>
> from django.urls import path
> from . import views
>
> app_name="students"
>
> urlpatterns=[
> path('Students.html/',views.homepage,name='homepage'),
> path("/",views.detail,name='detail'), ]
>
>
> views.py
>
> from django.shortcuts import render
> from django.http import HttpResponse
> from .models import Student
>
> def homepage(request):
> context={"stud": Student.objects.all}
> print(Student.objects.all)
> return render(request,"students/Students.html",context)
>
> def detail(request,full_name):
> return HttpResponse("You are looking %s!!" % full_name)
>
> Students.html
> 
> 
> https://cdnjs.cloudflare.com/ajax/libs/
> materialize/1.0.0/css/materialize.min.css">
> 
> https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.
> 0/js/materialize.min.js">
> 
> 
> 
> {% for stud in Student %}
> 
> 
> 
> {{stud.full_name}}
> {{stud.D_O_B}}
> 
> 
> This is a link
> This is a link
> 
> 
> 
> {% endfor %}
> 
>
> 
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAMT%3DisXCa7Yc-vM3%2B5c0jWdCX8hgwJFN2tRtCqkK2Nbzz
> qX-nA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/ECEE1C89-29E7-45D7-A7F0-DCBE7DB4CE66%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMT%3DisWvQpqUeTf24J_RKzPZTN%3DJKrMxDHedEnAXoEEWhS%2BdKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I'm very new to Django. Its possible to do the below project with Django?

2019-05-05 Thread rocky2sdat
Recently I've signed in my office project which is for HR department. I 
want to create an admin panel and Agent view. We have a separate tool named 
'PeopleSoft' In that tool somebody(agents) moved to bench it will 
automatically publish on my tool and an email triggered to Supervisor(Every 
agent have Supervisor{1 supervisor=20 agents}),PHR team,Program head and 
Recruitment team. The admin tool will allow the recruiter to tag each bench 
employee to Internal vacancy Job, when there is an interview email will be 
automatically triggered to an employee. Also Interview feedback for the 
employee(agents) in the same tool. If the Employee(agent) passed he will 
moved to that program with Job code(Every job has a Code like 5432) If the 
Employee failed he will moved back to the bench. Bench Validity period is 
14 days. If Validity exceed he will lose his/her job and an email also 
triggered to Supervisor, PHR, program head, Recruitment.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cdd27aa9-e9ad-4861-bb1d-1e71b92ebd22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I'm very new to Django. Its possible to do the below project with Django?

2019-05-05 Thread pranayreddy788
I worked on Django from 2 years , you can use lot of Django features to
build these kind of project.
Use Django admin for faster development

Post_save and decorator are very useful for ur project. Go through these
concepts once in Django documentation

Faster and easier way Django

On May 5, 2019 at 22:12, > wrote:

Recently I've signed in my office project which is for HR department. I
want to create an admin panel and Agent view. We have a separate tool named
'PeopleSoft' In that tool somebody(agents) moved to bench it will
automatically publish on my tool and an email triggered to Supervisor(Every
agent have Supervisor{1 supervisor=20 agents}),PHR team,Program head and
Recruitment team. The admin tool will allow the recruiter to tag each bench
employee to Internal vacancy Job, when there is an interview email will be
automatically triggered to an employee. Also Interview feedback for the
employee(agents) in the same tool. If the Employee(agent) passed he will
moved to that program with Job code(Every job has a Code like 5432) If the
Employee failed he will moved back to the bench. Bench Validity period is
14 days. If Validity exceed he will lose his/her job and an email also
triggered to Supervisor, PHR, program head, Recruitment.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/cdd27aa9-e9ad-4861-bb1d-1e71b92ebd22%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANjRyE3i2h1fW%2BAB4x5XAfAahOysFQsQBV9qMHtLHNoMPpppcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Projects to work on

2019-05-05 Thread Jamiu Olashile Salimon
Hello guys,

I've been learning Django for about 6 months now. So far, it's been great. 
Currently, I've been looking for a project to work on and its been 
difficult for me to decide. One that will challenge me to know more about 
Django.

I will much appreciate any project suggestions.

Regards.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Rob Gmail
I have a reports project that you might be interested in working on

Rob 
203-671-6514
Sent from my mobile device, please excuse the typos. 

> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
>  wrote:
> 
> Hello guys,
> 
> I've been learning Django for about 6 months now. So far, it's been great. 
> Currently, I've been looking for a project to work on and its been difficult 
> for me to decide. One that will challenge me to know more about Django.
> 
> I will much appreciate any project suggestions.
> 
> Regards.
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread salimon jamiu olashile
Can you give me more details on it? To understand what you’re talking about.

On Sun, 5 May 2019 at 6:41 PM, Rob Gmail  wrote:

> I have a reports project that you might be interested in working on
>
> Rob
> 203-671-6514
> Sent from my mobile device, please excuse the typos.
>
> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon <
> tunedae1shi...@gmail.com> wrote:
>
> Hello guys,
>
> I've been learning Django for about 6 months now. So far, it's been great.
> Currently, I've been looking for a project to work on and its been
> difficult for me to decide. One that will challenge me to know more about
> Django.
>
> I will much appreciate any project suggestions.
>
> Regards.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFhdOCNWOL_p8jwnBVjOZP9CDooi%3Dw_NDQXBtubdoHQW6QDzzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Rob Gmail
Yes but let’s talk about it privately via our own emails


Rob 
203-671-6514
Sent from my mobile device, please excuse the typos. 

> On May 5, 2019, at 1:43 PM, salimon jamiu olashile  
> wrote:
> 
> Can you give me more details on it? To understand what you’re talking about.
> 
>> On Sun, 5 May 2019 at 6:41 PM, Rob Gmail  wrote:
>> I have a reports project that you might be interested in working on
>> 
>> Rob 
>> 203-671-6514
>> Sent from my mobile device, please excuse the typos. 
>> 
>>> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
>>>  wrote:
>>> 
>>> Hello guys,
>>> 
>>> I've been learning Django for about 6 months now. So far, it's been great. 
>>> Currently, I've been looking for a project to work on and its been 
>>> difficult for me to decide. One that will challenge me to know more about 
>>> Django.
>>> 
>>> I will much appreciate any project suggestions.
>>> 
>>> Regards.
>>> -- 
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAFhdOCNWOL_p8jwnBVjOZP9CDooi%3Dw_NDQXBtubdoHQW6QDzzA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/B6F34B12-04FE-4304-87AA-BF744344936B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Emmanuel klutse
Hello team, 
I also started two months ago. Working on a really problem will be of great 
help to me
Can I work with you when you get a project. 

Sent from my iPhone

> On 5 May 2019, at 5:40 PM, Rob Gmail  wrote:
> 
> I have a reports project that you might be interested in working on
> 
> Rob 
> 203-671-6514
> Sent from my mobile device, please excuse the typos. 
> 
>> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
>>  wrote:
>> 
>> Hello guys,
>> 
>> I've been learning Django for about 6 months now. So far, it's been great. 
>> Currently, I've been looking for a project to work on and its been difficult 
>> for me to decide. One that will challenge me to know more about Django.
>> 
>> I will much appreciate any project suggestions.
>> 
>> Regards.
>> -- 
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/378455E8-2FAE-4D67-8CCB-42ABC4218269%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Rob Gmail
Maybe the three of us could work on the same project?

Rob 
203-671-6514
Sent from my mobile device, please excuse the typos. 

> On May 5, 2019, at 1:52 PM, Emmanuel klutse  wrote:
> 
> Hello team, 
> I also started two months ago. Working on a really problem will be of great 
> help to me
> Can I work with you when you get a project. 
> 
> Sent from my iPhone
> 
>> On 5 May 2019, at 5:40 PM, Rob Gmail  wrote:
>> 
>> I have a reports project that you might be interested in working on
>> 
>> Rob 
>> 203-671-6514
>> Sent from my mobile device, please excuse the typos. 
>> 
>>> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
>>>  wrote:
>>> 
>>> Hello guys,
>>> 
>>> I've been learning Django for about 6 months now. So far, it's been great. 
>>> Currently, I've been looking for a project to work on and its been 
>>> difficult for me to decide. One that will challenge me to know more about 
>>> Django.
>>> 
>>> I will much appreciate any project suggestions.
>>> 
>>> Regards.
>>> -- 
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> -- 
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/378455E8-2FAE-4D67-8CCB-42ABC4218269%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9726000D-C26F-4382-A6E8-B22B5B09A322%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Ahmed Ishtiaque
I also have a small chat project that you could possibly take a look at!
It's called chatter and it's on PyPI: www.pypi.org/django-chatter

It definitely needs a lot of tuning up to get to a properly usable state.

Best,
Ahmed

On Sun, May 5, 2019, 1:33 PM Jamiu Olashile Salimon <
tunedae1shi...@gmail.com> wrote:

> Hello guys,
>
> I've been learning Django for about 6 months now. So far, it's been great.
> Currently, I've been looking for a project to work on and its been
> difficult for me to decide. One that will challenge me to know more about
> Django.
>
> I will much appreciate any project suggestions.
>
> Regards.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKizqR65D-rvuB1_g0LtMdtnCYwAv5SS3n7NPKCxd2DJzhHdbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Emmanuel klutse
Hello Rob, 
Let me know what role I can play. Thx 

Emmanuel Klutse 
Sent from my iPhone

> On 5 May 2019, at 5:54 PM, Rob Gmail  wrote:
> 
> Maybe the three of us could work on the same project?
> 
> Rob 
> 203-671-6514
> Sent from my mobile device, please excuse the typos. 
> 
>> On May 5, 2019, at 1:52 PM, Emmanuel klutse  wrote:
>> 
>> Hello team, 
>> I also started two months ago. Working on a really problem will be of great 
>> help to me
>> Can I work with you when you get a project. 
>> 
>> Sent from my iPhone
>> 
>>> On 5 May 2019, at 5:40 PM, Rob Gmail  wrote:
>>> 
>>> I have a reports project that you might be interested in working on
>>> 
>>> Rob 
>>> 203-671-6514
>>> Sent from my mobile device, please excuse the typos. 
>>> 
 On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
  wrote:
 
 Hello guys,
 
 I've been learning Django for about 6 months now. So far, it's been great. 
 Currently, I've been looking for a project to work on and its been 
 difficult for me to decide. One that will challenge me to know more about 
 Django.
 
 I will much appreciate any project suggestions.
 
 Regards.
 -- 
 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 post to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
>>> -- 
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/378455E8-2FAE-4D67-8CCB-42ABC4218269%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/9726000D-C26F-4382-A6E8-B22B5B09A322%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CDDD189D-57F8-4988-97F4-B0FF282B54CC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Rob Gmail
Go ahead and email me if you could you’ll find my email in the group

Rob 
203-671-6514
Sent from my mobile device, please excuse the typos. 

> On May 5, 2019, at 2:51 PM, Emmanuel klutse  wrote:
> 
> Hello Rob, 
> Let me know what role I can play. Thx 
> 
> Emmanuel Klutse 
> Sent from my iPhone
> 
>> On 5 May 2019, at 5:54 PM, Rob Gmail  wrote:
>> 
>> Maybe the three of us could work on the same project?
>> 
>> Rob 
>> 203-671-6514
>> Sent from my mobile device, please excuse the typos. 
>> 
>>> On May 5, 2019, at 1:52 PM, Emmanuel klutse  wrote:
>>> 
>>> Hello team, 
>>> I also started two months ago. Working on a really problem will be of great 
>>> help to me
>>> Can I work with you when you get a project. 
>>> 
>>> Sent from my iPhone
>>> 
 On 5 May 2019, at 5:40 PM, Rob Gmail  wrote:
 
 I have a reports project that you might be interested in working on
 
 Rob 
 203-671-6514
 Sent from my mobile device, please excuse the typos. 
 
> On May 5, 2019, at 12:56 PM, Jamiu Olashile Salimon 
>  wrote:
> 
> Hello guys,
> 
> I've been learning Django for about 6 months now. So far, it's been 
> great. Currently, I've been looking for a project to work on and its been 
> difficult for me to decide. One that will challenge me to know more about 
> Django.
> 
> I will much appreciate any project suggestions.
> 
> Regards.
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/be3a7115-02ed-4134-950a-c9c9fdb7212a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
 -- 
 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 post to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/B6494E1D-2ABF-4C60-8DBF-9BBB08A9FD76%40gmail.com.
 For more options, visit https://groups.google.com/d/optout.
>>> 
>>> -- 
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/378455E8-2FAE-4D67-8CCB-42ABC4218269%40gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> -- 
>> 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 post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/9726000D-C26F-4382-A6E8-B22B5B09A322%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CDDD189D-57F8-4988-97F4-B0FF282B54CC%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9696DCDA-F489-4E9A-8056-B1CC04F63A25%40gmail.com.
For more options, visit https://groups.google.com

Re: Projects to work on

2019-05-05 Thread rocky2sdat
I understand you've interested and well experienced in Django to do new 
projects.

I've a beginner in Django and Python just now started learning. I'm 
helpless and don't know what to do. Could you please help me with the below 
simple project?

I recently accept one of my office project. which is for HR department. I 
want to create an admin panel and Agent view. We have a separate tool named 
'PeopleSoft' In that tool somebody(agents) moved to bench it will 
automatically publish on my tool and an email triggered to Supervisor(Every 
agent have Supervisor{1 supervisor=20 agents}),PHR team,Program head and 
Recruitment team. 

The admin tool will allow the recruiter to tag each bench employee to 
Internal vacancy Job, when there is an interview email will be 
automatically triggered to an employee. Also Interview feedback for the 
employee(agents) in the same tool. 

If the Employee(agent) passed he will moved to that program with Job 
code(Every job has a Code like 5432) If the Employee failed he will moved 
back to the bench. Bench Validity period is 14 days. If Validity exceed he 
will lose his/her job and an email also triggered to Supervisor, PHR, 
program head, Recruitment.

I'm eagerly waiting for your prompt reply hope you'll help.

Regards,
Raakesh V.

On Sunday, May 5, 2019 at 10:33:49 AM UTC-7, Jamiu Olashile Salimon wrote:
>
> Hello guys,
>
> I've been learning Django for about 6 months now. So far, it's been great. 
> Currently, I've been looking for a project to work on and its been 
> difficult for me to decide. One that will challenge me to know more about 
> Django.
>
> I will much appreciate any project suggestions.
>
> Regards.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3e89593c-b2c3-4625-adc3-090a0670ca06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Projects to work on

2019-05-05 Thread Pushkar Bhuse
Hello everyone,
I’ve been working with Django for a little over 2-3 months and have used it for 
simple projects of my own.
However I was looking for a project which incorporated Machine Learning and/or 
Data Science and Analytics. I have a fairly good knowledge about ML and would 
like to work on a project related to it. Please let me know if I could join in 
at any ongoing project.

Regards,
Pushkar B.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0c866ffa-ee3d-462f-94f9-3527a4c4b0ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Projects to work on

2019-05-05 Thread Pushkar Bhuse
Hello everyone,
I’ve been working with Django for a little over 2-3 months and have used it
for simple projects of my own.
However I was looking for a project which incorporated Machine Learning
and/or Data Science and Analytics. I have a fairly good knowledge about ML
and would like to work on a project related to it. Please let me know if I
could join in at any ongoing project.

Regards,
Pushkar B.

On Mon, 6 May 2019 at 1:36 AM,  wrote:

> I understand you've interested and well experienced in Django to do new
> projects.
>
> I've a beginner in Django and Python just now started learning. I'm
> helpless and don't know what to do. Could you please help me with the below
> simple project?
>
> I recently accept one of my office project. which is for HR department. I
> want to create an admin panel and Agent view. We have a separate tool named
> 'PeopleSoft' In that tool somebody(agents) moved to bench it will
> automatically publish on my tool and an email triggered to Supervisor(Every
> agent have Supervisor{1 supervisor=20 agents}),PHR team,Program head and
> Recruitment team.
>
> The admin tool will allow the recruiter to tag each bench employee to
> Internal vacancy Job, when there is an interview email will be
> automatically triggered to an employee. Also Interview feedback for the
> employee(agents) in the same tool.
>
> If the Employee(agent) passed he will moved to that program with Job
> code(Every job has a Code like 5432) If the Employee failed he will moved
> back to the bench. Bench Validity period is 14 days. If Validity exceed he
> will lose his/her job and an email also triggered to Supervisor, PHR,
> program head, Recruitment.
>
> I'm eagerly waiting for your prompt reply hope you'll help.
>
> Regards,
> Raakesh V.
>
> On Sunday, May 5, 2019 at 10:33:49 AM UTC-7, Jamiu Olashile Salimon wrote:
>>
>> Hello guys,
>>
>> I've been learning Django for about 6 months now. So far, it's been
>> great. Currently, I've been looking for a project to work on and its been
>> difficult for me to decide. One that will challenge me to know more about
>> Django.
>>
>> I will much appreciate any project suggestions.
>>
>> Regards.
>>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3e89593c-b2c3-4625-adc3-090a0670ca06%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALLiNkiYC6Yn_LEAp22C2LU-osi91vpQ2z4pVyy0DjJCO880Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


quill tries to import deprecated django.forms.util

2019-05-05 Thread Tim Johnson
Using python 3.7.2 and django 2.1.5
quill was installed via pip

I'm getting the following:

/quill/widgets.py", line 3, in 
from django.forms.util import flatatt
ModuleNotFoundError: No module named 'django.forms.util'

Indeed. In django with python 3.7.2 the module is now
forms.utils not forms.util

Before I set to hacking venv code and since I know there are quill
users on this list, I should ask: 
  Is there a later quill available for download with correct changes?

thanks
-- 
Tim Johnson
http://www.tj49.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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20190506004059.GI2404%40mail.akwebsoft.com.
For more options, visit https://groups.google.com/d/optout.


Help: how to fix FATAL Exited too quickly (process log may have details) ??

2019-05-05 Thread Rotense Gabriel
hello everyone?

i keeps getting the error (*crazyproject FATAL Exited too quickly (process 
log may have details*) after i enter *sudo supervisorctl status 
crazyproject*

this is my */etc/supervisor/conf.d/urban-train.conf*

[program:crazyproject]
> command=/home/rotense/bin/gunicorn_start
> user=rotense
> autostart=true
> autorestart=true
> redirect_stderr=true
> stdout_logfile=/home/rotense/logs/gunicorn-error.log


also this is my */home/rotense/bin/gunicorn_start*

#!/bin/bash 

NAME="crazyproject"
DIR=/home/rotense/crazyproject
USER=rotense
GROUP=rotense
WORKERS=3
BIND=unix:/home/rotense/run/gunicorn.sock
DJANGO_SETTINGS_MODULE=crazyproject.settings
DJANGO_WSGI_MODULE=crazyproject.wsgi
LOG_LEVEL=error
cd $DIR
source ../bin/activate
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
export PYTHONPATH=$DIR:$PYTHONPATH
exec ../bin/gunicorn ${DJANGO_WSGI_MODULE}:application \
  --name $NAME \
  --workers $WORKERS \
  --user=$USER \
  --group=$GROUP \
  --bind=$BIND \
  --log-level=$LOG_LEVEL \
  --log-file=-



please how to can fix that Fatal 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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/33d2e48f-6cc7-4a9a-8ba1-6174b46b267c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Serving Files with Django

2019-05-05 Thread Joe Reitman
Greetings,

Django can do all the file handling internally. You can create a model 
(database) with a FileField() as Kayode suggested. Using a CreateView class 
you can allow users to upload files from an input form. The model does not 
store the actual files. It stores a file path to where the file is located. 
You control where the file is stored in settings.py. Here is a link to a 
blog post that gives a high level overview of file handling - 
https://www.caktusgroup.com/blog/2017/08/28/advanced-django-file-handling/. 

I recently created an app that allows users to upload images along with geo 
coordinates. The app then displays the images on a map. Django handles all 
the upload/download. I did need the Dropbox app because I'm storing the 
images on Dropbox.

Hope this helps! 

On Wednesday, May 1, 2019 at 6:20:40 AM UTC-5, simon...@gmail.com wrote:
>
> Hello! Am currently working on a web app which allows user to upload files 
> of less that 1 gb size in any office formates like pdf, docx and some other 
> extentions for programs like .h, .py, .kt, .java. Is there any framework or 
> app that i can extend and make the file handling work? These files are to 
> be uploaded by users and download by other users
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed3c7ae8-79d8-49a4-87d2-f03960baee9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Handling multiple protocols in Channels 2

2019-05-05 Thread Fly Style

you could send  message to channel "mqtt" that defined in routing.py via 
django channels usage

Andrea Conti於 2019年5月2日星期四 UTC+8下午11時17分02秒寫道:
>
>
> First of all, thanks for responding.
>
> While the example does route the incoming MQTT messages to a consumer, the 
> consumer is still in the same process as the MQTT client, i.e. the one 
> started with "runmqttworker" management command.
>
> What I am trying to do is tohandle those events within another process.
>
> Andrea
>
> On Thursday, May 2, 2019 at 2:33:01 PM UTC+2, Fly Style wrote:
>>
>>
>> have a try  of https://github.com/ruralscenery/channels_mqtt
>>
>> Andrea Conti於 2019年5月2日星期四 UTC+8下午7時40分20秒寫道:
>>>
>>> Hello,
>>>
>>> I am trying to use Channels 2 to implement an http/websocket application 
>>> which also handles asynchronous requests from  a second source (right now 
>>> it's messages from an MQTT subscription, but I think the problem is largely 
>>> independent from the specific protocol). This doesn't seem to be a common 
>>> use case, and I could not find any indication on how to do that, either in 
>>> the official Channels documentation or elsewhere
>>>
>>> Given that I must handle the contents of the MQTT messages in the same 
>>> process as the websocket requests, the ideal approach would be to run both 
>>> the http/websocket and the MQTT protocol handlers in the same process, but 
>>> I am quite certain I can't do that.
>>>
>>> My next thought would then be to have a second process for handling the 
>>> incoming messages and sending them to the main application as events over a 
>>> channel layer. 
>>>
>>> For the MQTT side, leaving the specific protocol aside, I have seen 
>>> examples using asgiref.server.StatelessServer (e.g. 
>>> https://github.com/andrewgodwin/asgigram), but that ends up creating a 
>>> scope from the event and passing it to an ASGI application instance -- i.e. 
>>> it handles the events in-process, which is not what I want.
>>>
>>> Then there's https://github.com/xavierlesa/channels-asgi-mqtt. The code 
>>> looks a bit messy, and I think it's been written for Channels 1, but the 
>>> principle seems clear: retrieve the default channel layer and for every 
>>> incoming message, send an event of a specific type to a channel with a 
>>> specific name.
>>>
>>> But then, how do I receive and handle events from the channel in the 
>>> websocket process? 
>>> https://channels.readthedocs.io/en/latest/topics/channel_layers.html 
>>> says that "Messages across channel layers also go to consumers/ASGI 
>>> application instances, just like events from the client", and 
>>> https://channels.readthedocs.io/en/latest/topics/worker.html seems to 
>>> imply that such events are simply available to the main ASGI application -- 
>>> but that relies on a having a dummy protocol handler 
>>> (channels.worker.Worker) subscribe to a set of channels and wrap each event 
>>> in a scope which is then passed to the ASGI application. So, once again 
>>> that would seem to require a second protocol handler besides the 
>>> http/websocket one. 
>>>
>>> Am I missing something?
>>>
>>> Any Ideas, corrections and pointers to relevant documentation and 
>>> examples are welcome.
>>>
>>> Thanks in advance,
>>> Andrea
>>>
>>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c0d57dbf-d8d6-41e1-a04c-84481ab82bca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Handling multiple protocols in Channels 2

2019-05-05 Thread Fly Style
for example:

from asgiref.sync import async_to_sync as a2s
from channels.layers import get_channel_layer
from channels_mqtt import settings


event = {"type": settings.MQTT_PUBLISH, "text": {"topic": topic, "payload": 
payload, "qos": qos, "retain": retain}}
a2s(channel_layer.send)(channel, event)

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9baad777-df4b-4c97-b9c7-4f1c1558a044%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to design database for django rest api

2019-05-05 Thread RONAK JAIN
Hello,


I am trying to start a new website in Django so the whole website my task
is here make Django rest API. I have an angular template which is related
to education + eCommerce there.
So, I am not getting here how can I start to make Django rest API and what
is my first step?  because of mostly part there in the angular template.

Note: I tried to concentrate make design database but, I am not getting
where and what can I start here database design because there only I was
looking at my task form registration.

please give me initial steps.


Thanks and Regards
Django_User

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUdKxjw0mibW%3DWnwQf_bXAraxgOvTrtiViPciq_KsFsAvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error

2019-05-05 Thread Soumen Khatua
Hi Folks,
I'm getting one error from models.py,here is my models.py.

Error:
from django.db.models import SubfieldBase
   ImportError: cannot import name 'SubfieldBase'

models.py
import uuid
from django.conf import settings
from django.db import models
from django.db.models import Q, Value
from django.forms.models import model_to_dict
from django.utils import timezone
from django.utils.translation import pgettext_lazy
from django_countries.fields import Country, CountryField

from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager, PermissionsMixin)

from phonenumber_field.modelfields import PhoneNumber, PhoneNumberField
from versatileimagefield.fields import VersatileImageField
from .validators import validate_possible_number

# Create your models here.
class PossiblePhoneNumberField(PhoneNumberField):
"""Less strict field for phone numbers written to database."""
default_validators = [validate_possible_number]

class AddressQueryset(models.QuerySet):
def annotate_default(self, user):
# Set default shipping/billing address pk to None
# if default shipping/billing address doesn't exist
default_shipping_address_pk, default_billing_address_pk = None, None
if user.default_shipping_address:
default_shipping_address_pk = user.default_shipping_address.pk
if user.default_billing_address:
default_billing_address_pk = user.default_billing_address.pk
return user.addresses.annotate(
user_default_shipping_address_pk=Value(
default_shipping_address_pk, models.IntegerField()),
user_default_billing_address_pk=Value(
default_billing_address_pk, models.IntegerField()))

class Address(models.Model):
first_name = models.CharField(max_length=256, blank=True)
last_name = models.CharField(max_length=256, blank=True)
company_name = models.CharField(max_length=256, blank=True)
street_address_1 = models.CharField(max_length=256, blank=True)
street_address_2 = models.CharField(max_length=256, blank=True)
city = models.CharField(max_length=256, blank=True)
city_area = models.CharField(max_length=128, blank=True)
postal_code = models.CharField(max_length=20, blank=True)
country = CountryField()
country_area = models.CharField(max_length=128, blank=True)
phone = PossiblePhoneNumberField(blank=True, default='')
objects = AddressQueryset.as_manager()

class Meta:
ordering = ('pk', )

@property
def full_name(self):
return '%s %s' % (self.first_name, self.last_name)

def __str__(self):
if self.company_name:
return '%s - %s' % (self.company_name, self.full_name)
return self.full_name


def __eq__(self, other):
'''The equality method is defined such that instances with the same
primary key value and the same concrete class are considered equal, except
that instances with a primary key value of None aren’t equal to anything
except themselves.'''
return self.as_data() == other.as_data()

# The __hash__() method is based on the instance’s primary key value.
It is effectively hash(obj.pk). If the instance doesn’t have a primary key
value then a TypeError will be raised (otherwise the __hash__() method
would return different values before and after the instance is saved, but
changing the __hash__() value of an instance is forbidden in Python.
__hash__ = models.Model.__hash__

# model_to_dict will convert all the data into dict except id and user
in this model
def as_data(self):
"""Return the address as a dict suitable for passing as
kwargs.Result does not contain the primary key or an associated user."""
data = model_to_dict(self,exclude=['id','user'])
if isinstance(data['country'], Country):
data['country'] = data['country'].code
if isinstance(data['phone'], PhoneNumber):
#as_e164 is a phonenumber format information
data['phone'] = data['phone'].as_e164
return data


def get_copy(self):
"""Return a new instance of the same address."""
return Address.objects.create(**self.as_data())

class UserManager(BaseUserManager):
def create_user(self, email, password=None, is_staff=False,
is_active=True,
**extra_fields):
"""Create a user instance with the given email and password."""
email = UserManager.normalize_email(email)
# Google OAuth2 backend send unnecessary username field
extra_fields.pop('username', None)

user = self.model(email=email, is_active=is_active,
is_staff=is_staff,
**extra_fields)

if password:
user.set_password(password)
user.save()
return user

def create_superuser(self, email, password=None, **extra_fields):
return self.create_user(
email, password, is_staff=True, is_superuse