Re: having problem in login rest API

2019-07-08 Thread Sidnei Pereira
If would like to access CustomUser's attributes directly from an student instance you should use Multi-table Inheritance - a concrete model class that inherits from another, so `class Student(CustomUser)`. But if

Re: Django Admin Login will not Redirect following Authentication on Remote Host

2019-07-12 Thread Sidnei Pereira
Hahahaha I'm glad it helped! I will probably add this answer to your stackoverflow question. Maybe it will help someone else. -- 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

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-06 Thread Sidnei Pereira
It seems you are trying to execute de `views.py` module directly. As you are running Django you should run it's webserver through `manage.py` so Django you setup everything it is expected and the process starts to listen to port: So: python manage.py runserver It will run the server by default

Re: django.core.exceptions.ImproperlyConfigured: Requested setting AUTH_USER_MODEL, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call sett

2018-12-07 Thread Sidnei Pereira
Take a look on this article. https://automationpanda.com/2017/09/14/django-projects-in-pycharm-community-edition/ Em quinta-feira, 6 de dezembro de 2018 15:18:22 UTC-2, Parker Bernard escreveu: > > how do i open my django in my pycharm or python > > > On Thu, Dec 6, 2018, 3:40 PM

Re: Authorization not working on production server

2018-12-07 Thread Sidnei Pereira
Did you log in? Em sexta-feira, 7 de dezembro de 2018 09:21:51 UTC-2, Akash utreja escreveu: > > Hi, > I am building authorization in django framework using python.. The problem > is that my code is working fine on local server but when I run the same in > production it returns "Anonymous User"

Re: Django UpdateView and Createview

2018-12-10 Thread Sidnei Pereira
Hi, I don't know if I got it right , but you want to add/update as many instance of Technologies as you want when creating/updating a Project, right? Like when you use an inline on Django's admin .

Re: Django UpdateView and Createview

2018-12-11 Thread Sidnei Pereira
orking > > On Monday, 10 December 2018 18:19:34 UTC+5:30, Sidnei Pereira wrote: >> >> Hi, >> >> I don't know if I got it right , but you want to add/update as many >> instance of Technologies as you want when creating/updating a Project, >> right? Lik

Re: Django update one field by DeleteView

2018-12-11 Thread Sidnei Pereira
It's is usally called safe delete or soft delete or even logical delete. There are some approach to that on Django with pros and cons, I suggest you to research a little bit to see whats is best for you. Some material on the subject https://medium.com/@adriennedomingus/soft-deletion-in-django-e

Re: Enterprise web application with admin interface

2018-12-18 Thread Sidnei Pereira
It's very flexible indeed. But depending on the requirements of it you could end fighting the framework. For instance, the permissions check are model based (not instance based neither fields based), the list view has a lot of responsibilities and it'is not so easily extensible. Again it will d