Re: What is the proper workflow before first migration?

2019-04-16 Thread silverstrings026
Question though, where should I put the seperate model for Posting? Should I just make an app called Posts and do everything to do with posts in that? On Saturday, April 13, 2019 at 1:16:08 AM UTC-4, dtdave wrote: > > If you are using django allauth and include this in your settings.py >

Re: compute model field by related field

2019-04-16 Thread Makori Breens
Implement rest framework On Tue, Apr 16, 2019, 9:20 PM omar ahmed wrote: > hello ... i have two models "Club" class and "Match" class and it has > foreign key to Club > now i want to increment "won" field (or draw or lost) in "Club" class by > "score_local" and "score_visitor" in "Match" class

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread Rached Alaya
Hi Zahid, It's illegal to share content without having the right permissions and it's consider as a crime by the law and the company and the author of "python for every day life" have the right to pursue you. In the other hand you don't have the permission to collect emails and add users without

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread Milind Thombre
https://www.ic3.gov/complaint/default.aspx Here is the link to file a FBI complaint if anyone else is feeling the same way aa I am. Tx On Tue 16 Apr, 2019, 7:29 PM nm, wrote: > Yesterday I received an invitation to a google group from the same user, > as well as two emails with links to

Re: What is the proper workflow before first migration?

2019-04-16 Thread silverstrings026
THANK YOU SO MUCH. Good lord almighty I simply cannot believe that I was missing just one line.one line kept me from continuing my website. Again, thank you so much, it has taken no joke about a month to find out this one little thing. Couldn't find ANYTHING like that in any docs I've

Re: Unhashable TypeError when deleted from model, Django 2.2

2019-04-16 Thread Sithembewena L. Dube
Why not use a boolean field on the model to denote expires? Then if that field is True, delete the object? I think that would be cheaper and cleaner, especially with lookups. Kind regards, Sithu *Sent with Shift

Unhashable TypeError when deleted from model, Django 2.2

2019-04-16 Thread Matthew Pava
I have a model that has a nullable field called expires. If expires is null, then the record never expires. I'm performing a delete on the model for any record that has an expires date that has passed, and I keep getting a TypeError that Model is unhashable. Am I doing something wrong?

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread Milind Thombre
Please leave this forum. Thanks On Tue 16 Apr, 2019, 10:42 PM Zahid Hossain, wrote: > sorry guys, I am a new user. I will remove this. sorry for disturbance. > > On Apr 16, 2019 7:59 PM, "nm" > wrote: > >> Yesterday I received an invitation to a google group from the same user, >> as well as

compute model field by related field

2019-04-16 Thread omar ahmed
hello ... i have two models "Club" class and "Match" class and it has foreign key to Club now i want to increment "won" field (or draw or lost) in "Club" class by "score_local" and "score_visitor" in "Match" class .. how can i do this class Club(models.Model): name =

Re: 'WSGIRequest' object has no attribute 'Files'

2019-04-16 Thread Soumen Khatua
Thanks. It's working. On Tue, 16 Apr 2019, 13:22 Jani Tiainen, wrote: > Hi. > > It is .FILES all in capital. Not just first letter. > > > ti 16. huhtik. 2019 klo 10.05 Soumen Khatua > kirjoitti: > >> Hi Folks, >> I'm getting this error 'WSGIRequest' object has no attribute 'Files' and >> i

Paginator UnorderedObjectListWarning on union(all=True) of two sorted queries

2019-04-16 Thread Rich Rauenzahn
I wonder if this is a case you want to catch and *not* warn about. In my case, I'm doing a: haves = MyModel.objects.filter(foreign_relationship=4).order_by('foreign_relationship__value', 'common_key') havenots = MyModel.objects.exclude(id__in=haves).order_by('common_key') query =

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread Zahid Hossain
sorry guys, I am a new user. I will remove this. sorry for disturbance. On Apr 16, 2019 7:59 PM, "nm" wrote: > Yesterday I received an invitation to a google group from the same user, > as well as two emails with links to purportedly educational videos (I > haven't opened those links though).

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread nm
Yesterday I received an invitation to a google group from the same user, as well as two emails with links to purportedly educational videos (I haven't opened those links though). The entire list of recipients was visible, and I got pretty pissed that my email was there too. On Tuesday, 16

Re: Django reporting Library recommendations

2019-04-16 Thread Shaheed Haque
Hi Brian, On Tue, 16 Apr 2019 at 12:21, Brian Mcnabola wrote: > > Im looking for a Django reporting library something similar to Django report > builder ? Can you clarify what you are looking for that Django report builder does not provide? For example, we use JasperReports wrapped for use

Re: How this Line of code works

2019-04-16 Thread Milind Thombre
hi Mayur, What does this application do? Milind On Tue, Apr 16, 2019 at 10:16 AM Mayur Bagul wrote: > hello jani, > > thanks for hep. i read django doc and this is the example from it but > there is no information provided for why these parameters are used. > but thanks for your information it

Django reporting Library recommendations

2019-04-16 Thread Brian Mcnabola
Im looking for a Django reporting library something similar to Django report builder ? -- 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

Re: Step-by-Step Machine Learning with Python [Full Packt Paid Video Course for free]

2019-04-16 Thread Milind Thombre
Beware: This opened a popup and I got a warning from my AV s/w. Admin: Kindly bump this user off the forum. Also, if others observe a similar behaviour of the link, kindly report this guy to the FBI. On Mon, Apr 15, 2019 at 11:59 PM Zahid Hossain wrote: > please subscribe o get more paid

Considerations for mixed Django & Celery versions

2019-04-16 Thread 'Mike Lissner' via Django users
We've currently running django 1.8.x and Celery 3.1.19 in production and our code base is getting a little too big. To fix this, our plan is to pull out Celery tasks into a separate repo and docker image. As we do this, it'd be nice if we could upgrade both Django and Celery to their latest

Re: Getting a TypeError

2019-04-16 Thread laudrup
Hi Aakash, Aakash Baranwal – Tue, 16. April 2019 13:12 > Hi Kasper, > Thanks a lot for your help. I did as you suggested. > This is the code now: > def video_detail_view(request, pk=None): # pk == idobj = > get_object_or_404(Video, pk=pk)print(obj)context = {"object": obj}return >

Re: Getting a TypeError

2019-04-16 Thread laudrup
Hi Aakash, Aakash Baranwal – Tue, 16. April 2019 11:12 > The error I am getting is:int() argument must be a string, a bytes-like object > or a number not 'builtin_function_or_method'. > > The error is in views.py file in obj = str(Video.objects.get(id=id)). You need to pass an id argument to

Getting a TypeError

2019-04-16 Thread Aakash Baranwal
Hi Everybody, Kindly help me out. My views.py file is: def video_detail_view(request): obj = str(Video.objects.get(id=id)) print(obj) context = { "object": obj } return render(request, "deploy/list_view.html", context) def video_list_view(request): queryset = Video.objects.all()

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
https://github.com/shubham1507/school error (School) snj@snj-ThinkPad-T440p:~/School$ python manage.py createsuperuser Username: shubham311507 Traceback (most recent call last): File "/home/snj/.virtualenvs/School/lib/python3.5/site-packages/django/db/backends/utils.py", line 84, in _execute

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
Send me the snap On Tue, 16 Apr 2019, 13:38 Shubham Joshi, wrote: > same error still > > On Tue, Apr 16, 2019 at 1:36 PM Vivek Jha wrote: > >> Delete all the old migrations and remigrate >> >> On Tue, 16 Apr 2019, 13:34 Shubham Joshi, wrote: >> >>> Hello Vivek can you help me in this >>> >>>

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
same error still On Tue, Apr 16, 2019 at 1:36 PM Vivek Jha wrote: > Delete all the old migrations and remigrate > > On Tue, 16 Apr 2019, 13:34 Shubham Joshi, wrote: > >> Hello Vivek can you help me in this >> >> I am referring >>

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
Delete all the old migrations and remigrate On Tue, 16 Apr 2019, 13:34 Shubham Joshi, wrote: > Hello Vivek can you help me in this > > I am referring > https://wsvincent.com/django-rest-framework-user-authentication-tutorial/ > > changed app name 'users' to accounts > > > got an errror > > >

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
Hello Vivek can you help me in this I am referring https://wsvincent.com/django-rest-framework-user-authentication-tutorial/ changed app name 'users' to accounts got an errror School) snj@snj-ThinkPad-T440p:~/School$ python manage.py createsuperuser Username: shubham311507 Traceback (most

Re: 'WSGIRequest' object has no attribute 'Files'

2019-04-16 Thread Jani Tiainen
Hi. It is .FILES all in capital. Not just first letter. ti 16. huhtik. 2019 klo 10.05 Soumen Khatua kirjoitti: > Hi Folks, > I'm getting this error 'WSGIRequest' object has no attribute 'Files' and > i didn't get proper solution in google also. I alredaty took >

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
Welcome On Tue, 16 Apr 2019, 13:03 Shubham Joshi, wrote: > Ya it worked for me thanks > > On Tuesday, April 16, 2019 at 12:59:10 PM UTC+5:30, Vivek Jha wrote: >> >> python manage.py migrate --fake >> >> On Tue, 16 Apr 2019, 12:57 Shubham Joshi, wrote: >> >>> >>>

Re: getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
Ya it worked for me thanks On Tuesday, April 16, 2019 at 12:59:10 PM UTC+5:30, Vivek Jha wrote: > > python manage.py migrate --fake > > On Tue, 16 Apr 2019, 12:57 Shubham Joshi, > wrote: > >> >> ---error-- >> >>

Re: getting an error while migrating the db

2019-04-16 Thread Vivek Jha
python manage.py migrate --fake On Tue, 16 Apr 2019, 12:57 Shubham Joshi, wrote: > > ---error-- > > (School) snj@snj-ThinkPad-T440p:~/School$ python manage.py > migrateOperations to perform: > Apply all

getting an error while migrating the db

2019-04-16 Thread Shubham Joshi
---error-- (School) snj@snj-ThinkPad-T440p:~/School$ python manage.py migrateOperations to perform: Apply all migrations: admin, auth, contenttypes, sessions Running migrations: Applying

'WSGIRequest' object has no attribute 'Files'

2019-04-16 Thread Soumen Khatua
Hi Folks, I'm getting this error 'WSGIRequest' object has no attribute 'Files' and i didn't get proper solution in google also. I alredaty took *enctype="multipart/form-data"* in my forms tag. Here is my code snippet please provide me the solution it's urgent. Thank you in advance. *.html*