[ANN] Django Slick Reporting (a report engine) is released !

2020-04-26 Thread Ramez Ashraf
Hello Django mates, I'm very pleased to announce that we released Django Slick Reporting . A powerful reporting engine with batteries included. Feature Highlight --- * Create Simple, Grouped, Time series and Crosstab repo

Re: New to Django, can't get it running on the web through http://127.0.0.1:8000/

2020-04-26 Thread Adam H
I realize this is an old post. so this is for the next person who stumbles in here looking for an answer to the same question. I had the same problem. for me, i was missing a colon in my code. it was that simple. check for red underlines in your code i tried runserver again, python3 manage.py run

Guys i need some one to guide me on how i can create movie website using django

2020-04-26 Thread UZI TYSAP
-- 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/m

Pass post data to UpdateView

2020-04-26 Thread 'MH' via Django users
Hi I do not know how to access request.POST, when I call UpdateView. Just to avoid a misunderstanding: I do not want to process the data after updating a model, but I want to pass a parameter to the UpdateView, which is not model related when the page opens. But I get a NameError that request

Question regarding Interactive Python shell response and django

2020-04-26 Thread Michael Karikari
So I find myself in a pickle. I'm using an external python API with Django, and as part of that interaction, it asks for an input from the Django python shell window. What I am trying to figure out is how can I get form input from web application to push back to the shell window. Appreciate it

Post user input to django python shell??

2020-04-26 Thread Michael Karikari
Looking for some clarity to issue I'm having. I have external python API I'm hitting via a view, but it requires an interactive input that appears in the Django shell prompt. I'm wondering how I can have end-user send posts to that input request. See screenshot -- You received this message b

The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Mayur Bagul
Hello guys, im stucked with this error mentioned in subject. below link redirect details about question. https://stackoverflow.com/q/61427882/11351226 let me know how to get rid of this problem. Thanking You. -- You received this message because you are subscribed to the Google Groups "Djan

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Antje Kazimiers
setting default=False is odd for any field other than a BooleanField. I would take that out for the OneToOneField at least and see how things go. Antje On 4/26/20 4:19 PM, Mayur Bagul wrote: > Hello guys, > > im stucked with this error mentioned in subject. > below link redirect details about que

Re: Question regarding Interactive Python shell response and django

2020-04-26 Thread Ryan Nowakowski
On Sun, Apr 26, 2020 at 05:43:33AM -0700, Michael Karikari wrote: > So I find myself in a pickle. > I'm using an external python API with Django, and as part of that > interaction, it asks for an input from the Django python shell window. What > I am trying to figure out is how can I get form in

How to get pages and group information from facebook

2020-04-26 Thread venna venkatReddy
Hi recently I worked with allauth for login with Facebook, when I login with Facebook only username and email,last name, first name, photo are getting but I need user pages and group. Here I need help how to get login user facebook pages and facebook group. I am waiting for your reply. Please he

RE: Post user input to django python shell??

2020-04-26 Thread Divash Singh
Hi, Did you solve your issue yet? Sent from Mail for Windows 10 From: Michael Karikari Sent: Sunday, 26 April 2020 16:05 To: Django users Subject: Post user input to django python shell?? Looking for some clarity to issue I'm having. I have external python API I'm hitting via a view, but it re

RE: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Divash Singh
Think you shouldn’t use false as a default for fields which are not bool Sent from Mail for Windows 10 From: Antje Kazimiers Sent: Sunday, 26 April 2020 17:40 To: django-users@googlegroups.com Subject: Re: The database backend does not accept 0 as a value for AutoField. setting default=False is

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Mayur Bagul
Hey thanks for your response i did so because initially at the time of migration it was asking for default value and i just putted false in rush. that filed user from User model returns username as string autofield so what shall i put as default their? i tried to put None for default value but w

RE: Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Divash Singh
Also, Please make sure that any foreign key fields are not default nulls Sent from Mail for Windows 10 From: Mayur BagulSent: Sunday, 26 April 2020 18:39To: Django usersSubject: Re: The database backend does not accept 0 as a value for AutoField. Hey thanks for your response i did so because initia

RE: Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Divash Singh
Once you use the default argument for a model field, it cannot be removed even when u rerun migrations. You need to provide a valid default input value for each specific field Sent from Mail for Windows 10 From: Mayur BagulSent: Sunday, 26 April 2020 18:39To: Django usersSubject: Re: The database b

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Antje Kazimiers
how about adding null=True and blank=True to the field? On 4/26/20 6:38 PM, Mayur Bagul wrote: > Hey thanks for your response i did so because initially at the time of > migration it was asking for default value and i just putted false in > rush. that filed user from User model returns username as

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Jorge Gimeno
On Sun, Apr 26, 2020 at 9:53 AM Antje Kazimiers wrote: > how about adding null=True and blank=True to the field? > On 4/26/20 6:38 PM, Mayur Bagul wrote: > > Hey thanks for your response i did so because initially at the time of > migration it was asking for default value and i just putted false

Re: Django Admin Custom View Query Generation

2020-04-26 Thread Ram
Hello Derek, Thanks for providing good references for Django Admin Customization. I'm looking for a way to customize the following requirements. I thought you might have some idea of how to achieve this. 1. We extract data from XML files and upload the data into our Django based web app but we do

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Divash Singh
You can try something like “no value” Sent from my iPhone > On 26 Apr 2020, at 18:42, Divash Singh wrote: > >  > Once you use the default argument for a model field, it cannot be removed > even when u rerun migrations. > > You need to provide a valid default input value for each specific fi

Re: Django Admin Custom View Query Generation

2020-04-26 Thread Vaibhav Mishra
You can use built-in Django ORM methods to perform calculated operations on existing models On Thursday, December 12, 2019 at 11:21:14 PM UTC+5:30, Balaji wrote: > > Hi > > Can anyone please tell me how can we generate Custome Model view for > different report where we use avg, min , max, sum, c

Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread Mayank Tripathi
I'm making a small test project with below user types: School Admin, Teacher, Student, Parent. And each user type will have different Permissions like School Admin has full access... Parents can only view their Childern's Activity. Teacher can see all students but can add / edit marks for the

Re: Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread Sunday Iyanu Ajayi
You can use create user group on the django admin *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Sun, Apr 26, 2020 at 8:05 PM Mayank Tripathi wrote: > I'm making a small test project with below user types: School Admin, > Teacher, Student, Parent. And each user type will have

Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread Momin Imtiaz
following -- 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.go

Re: Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread 王祥
You don't need to create SchoolAdmin model. You can create a admin group and add user to it or even just use the is_superuser field. -- 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

Re: Django - What is the best approach to handle multiple user types…and route the HTML pages based on this?

2020-04-26 Thread Mike Dewhirst
On 27/04/2020 5:04 am, Mayank Tripathi wrote: I'm making a small test project with below user types: School Admin, Teacher, Student, Parent. And each user type will have different Permissions like School Admin has full access... Parents can only view their Childern's Activity. Teacher can see

Re: Pass post data to UpdateView

2020-04-26 Thread Darren Williams
Talk to me On Sun, Apr 26, 2020, 18:18 Darren Williams wrote: > Ain't really sure learning myself but I look into it for you > > On Apr 26, 2020 8:02 AM, "'MH' via Django users" < > django-users@googlegroups.com> wrote: > > Hi > > I do not know how to access request.POST, when I call UpdateView

Re: Pass post data to UpdateView

2020-04-26 Thread Darren Williams
Ain't really sure learning myself but I look into it for you On Apr 26, 2020 8:02 AM, "'MH' via Django users" < django-users@googlegroups.com> wrote: Hi I do not know how to access request.POST, when I call UpdateView. Just to avoid a misunderstanding: I do not want to process the data after upd