Re: gunicorn.errors.HaltServer:

2019-12-16 Thread Integr@te System
Hi, You run on gunicorn cli On Mon, Dec 16, 2019, 05:28 Ram wrote: > Hi Integr, > > Thank you for the answer but I don't see '--preload' option for the same > command. Am I missing anything? > >> >> $ sudo systemctl --preload gunicorn.service >>> systemctl: unrecognized option '--preload' >>>

User is not logging in admin panel

2019-12-16 Thread sagar ninave
Hello Everyone, i am getting some issue please help me. i have created custom user model in account app by extending auth user model. also i have creates register api to register user. i am able to create superuser from command prompt and api as well. and both user are storing in single User m

Re: User is not logging in admin panel

2019-12-16 Thread Tafadzwa Marshal
hello, your problem is easy to solve. The 'createsuperuser' command creates a user with the 'staff' attribute set to true. When you create a user through the model thats inheriting from the User model, the default for the 'staff' attribute is set to false. The solution is to make sure you override

Re: Django DEBUG magic, and a bizarre bug under django-extra-views

2019-12-16 Thread lemme smash
i feel for you, but from this description there is no way to figure out how to help. it's way too abstract. so you probably may want to provide code piece and traceback to get any kind of help here. On Saturday, December 7, 2019 at 2:08:41 AM UTC+3, Alaina Rowe wrote: > > I have not been able to

[URGENT] HOW TO DISPLAY IN HTML A PANDAS PLOTTING IN A DJANGO APPLICATION

2019-12-16 Thread Guy NANA
Thanks for your answers -- 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 http

Re: User is not logging in admin panel

2019-12-16 Thread Suraj Thapa FC
Where's the code On Mon, 16 Dec 2019, 5:53 pm Tafadzwa Marshal, wrote: > hello, your problem is easy to solve. The 'createsuperuser' command > creates a user with the 'staff' attribute set to true. When you create a > user through > the model thats inheriting from the User model, the default for

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
*models.py* from django.db import models import uuid from django.contrib.auth.models import (BaseUserManager, AbstractBaseUser) from django.contrib.postgres.fields import ArrayField class UserManager(BaseUserManager): def create_user(self, email, password=None, **kwargs): if not email

FileNotFoundError when users try to upload a photo

2019-12-16 Thread אורי
Django users, I receive FileNotFoundError error messages when users try to sign up to my website and upload a photo. The error messages are like: [Errno 2] No such file or directory: '/tmp/tmpry12cluf.upload.jpg' I received a few messages like this recently and these users were not able to uploa

Re: [URGENT] HOW TO DISPLAY IN HTML A PANDAS PLOTTING IN A DJANGO APPLICATION

2019-12-16 Thread Integr@te System
Hi Gana, Try implement Django Panda module, # Create DataFrameManager instance in model # Query data and then export to Panda dataframe by to_dataframe() method, # After that convert to JSON data via to_json() method # Final render on context in any template of html file On Mon, Dec 16, 2019, 20:

Re: Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

2019-12-16 Thread Bilim Tr
10 Aralık 2019 Salı 19:00:32 UTC+3 tarihinde Balaji yazdı: > > Hi > > I am getting error for every Project. > > I created new environment and reinstalled python and Django. > > emplateSyntaxError at / > > 'staticfiles' is not a registered tag library. Must be one of: > admin_list > admin_modify

Re: User is not logging in admin panel

2019-12-16 Thread dumbaclassics
I once encountered the same problem with a Custom User ModelThe solution that worked for me was putting under the is_staff = True It wouldnt log in even afte that then I added the following methods under my Userdef has_perm(self, perm, obj=None):   return Truedef has_module_perms(self, app_label

Re: Django DEBUG magic, and a bizarre bug under django-extra-views

2019-12-16 Thread Mike Dewhirst
On 17/12/2019 12:19 am, lemme smash wrote: i feel for you, but from this description there is no way to figure out how to help. it's way too abstract. so you probably may want to provide code piece and traceback to get any kind of help here. +1 It might help to actually build the two-app proj

Re: Django DEBUG magic, and a bizarre bug under django-extra-views

2019-12-16 Thread Alaina Rowe
When I get work time to do it, I'll try to post a traceback and some code with renaming to remove project-specific information. I know that building a minimal example that demonstrates the problem would help. The issue with that is, I'd have to get permission to deploy it to our production envi

Re: User is not logging in admin panel

2019-12-16 Thread sagar ninave
thank you. i will try it On Tue, Dec 17, 2019 at 4:48 AM dumbaclassics wrote: > I once encountered the same problem with a Custom User Model > > The solution that worked for me was putting under the is_staff = True > > It wouldnt log in even afte that then I added the following methods under > m