Re: Standard approach

2018-05-19 Thread Mike Dewhirst
On 20/05/2018 3:52 AM, Melvyn Sopacua wrote: On donderdag 17 mei 2018 00:44:32 CEST Mike Dewhirst wrote: More advanced users tend to focus on the more advanced problems and that's the way it should be. Not always true. You tend to focus on things that show research and effort. The level of com

Re: SMTPRecipientsRefused: Sender address rejected: not owned by user

2018-05-19 Thread Daniel Germano Travieso
The problem you are having is described by the error message. The email you are using and configured on the settings.py to be the DEFAULT_FROM_EMAIL is not being recognized by the email server. Maybe you lack the configuration of that email address on the email provider? Either way, on the DE

Re: Managing multiple user types in Django

2018-05-19 Thread Daniel Germano Travieso
There is no really definitive approach to handle this, and you could do it either way. Either option works, but for a philosofical point of view, if there is no significant difference between the user types, the first approach I tend to believe is the most logical one. However, as a optimal ap

Re: whats the use of setting mysite.settings to DJANGO_SETTINGS_MODULE?

2018-05-19 Thread Daniel Germano Travieso
This is done so that when you run the script manage.py (that runs django commands) the module django imported by the script knows which project settings to use. If you do not provide this, django will not recognize the apps you are developing, and will just recognize the default apps it comes b

Re: Django ModelAdmin ignores has_delete_permission

2018-05-19 Thread Daniel Germano Travieso
Hello! Ordinary staff users on the main django admin module are just standard django users that can access the admin site. Setting the has_add_permission, has_change_permission and has_delete_permission via the ModelAdmin should be done to customize the permissions for specific object instance

Re: Please I need help on how to create a custom method for a model with list_display

2018-05-19 Thread Daniel Germano Travieso
Hello! On your case, as stated on the official doc, you should just create a method on the model you want to display the ManyToMany field on the list_display that maybe returns the list of items from the ManyToMany field. Django avoids using this as it could be a potential overhead as you will

Re: How do you deal with two third party apps with the same App label?

2018-05-19 Thread Daniel Germano Travieso
Hello! As seen here on the documentation for Applications configuration for app users, you can provide a custom app configuration for one of the third party apps you are using on your project. https://docs.djangoproject.com/en/2.0/ref/applications/#for-application-users I believe this would so

How do you deal with two third party apps with the same App label?

2018-05-19 Thread Mario R. Osorio
Hello everyone, In Django 2.0.5; I want to use python-twitter and allauth's twitter provider and both these apps use the same App label which results in the *django.core.exceptions.ImproperlyConfigured: Application labels aren't unique* error I have searched the internet and found no solutio

Re: Django login() function works in production but not in development

2018-05-19 Thread Melvyn Sopacua
On dinsdag 15 mei 2018 00:55:38 CEST pieceofkayk2...@gmail.com wrote: > My code > returns the print statement 'User is active' when I sign in with a user on > my project page; however, my user never gets logged in during the next > step. How did you determine the user doesn't get logged in? -- Me

Please I need help on how to create a custom method for a model with list_display

2018-05-19 Thread Godson Rapture
Please I am learning Django 2.0.4 Right now I am learning about Django Admin. I got an error that the value of my list_display should not be a ManyToMany Field. I referred back to Django official doc and I was asked to create a custom method for my model. I tried looking for an example

Re: New to Python

2018-05-19 Thread Melvyn Sopacua
On dinsdag 15 mei 2018 21:13:52 CEST Mo El wrote: > I`m new to python and i have been watching a lot of tutorials regarding web > scraping using python, and my question is what is the best library to use, When asking for "best", try to make that more objective, by listing requirements and nice t

Re: Standard approach

2018-05-19 Thread Melvyn Sopacua
On donderdag 17 mei 2018 00:44:32 CEST Mike Dewhirst wrote: > More advanced users tend to focus on the more advanced problems and > that's the way it should be. Not always true. You tend to focus on things that show research and effort. The level of competence then doesn't matter. It just so hap

Re: Public Django administrative database

2018-05-19 Thread Melvyn Sopacua
On vrijdag 18 mei 2018 10:18:27 CEST Daniel Chimeno wrote: > Hi community! > > I'm involved in a project heavily related to administrative geographic > entities in UK. > (postal_sectors, postal areas, etc..) > Although at the moment is only for UK, could be expanded to other countries. > At first,

Re: need help

2018-05-19 Thread James Farris
What does your settings.py look for k like? Can you copy/paste it here? On Sat, May 19, 2018 at 9:00 AM Umar Kambala wrote: > DEBUG is on but when I runserver the content on my header.html is not > displaying on de browser. It gives me not found on de cmd window n 404 > error on de webpage. > On

Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-19 Thread Melvyn Sopacua
If you're going to send each error you get to the list to be resolved, you're not going to learn any debugging skills. Errors have all the information for you to figure out yourself why things are wrong. Read them, follow the back traces and figure it out. There are times where backtraces are h

Re: need help

2018-05-19 Thread Umar Kambala
DEBUG is on but when I runserver the content on my header.html is not displaying on de browser. It gives me not found on de cmd window n 404 error on de webpage. On May 19, 2018 3:37 PM, "James Farris" wrote: If you set DEBUG = True Then restart your python server then reload the page, what is th

Re: need help

2018-05-19 Thread James Farris
If you set DEBUG = True Then restart your python server then reload the page, what is the output? It’s best to leave debug on until you have all the bugs worked out since it provides a lot of information that will tell you what’s happening Sent from my mobile device > On May 19, 2018, at 8:32

Re: need help

2018-05-19 Thread Umar Kambala
I have been following de tutorials on web development but got lost on de peronal. Wen I run my server its gud to go but it won't display de content on de web browser. It always give me 404 error On May 19, 2018 3:28 PM, "James Farris" wrote: > Are you asking where DEBUG = False is? > If so, it wo

Re: need help

2018-05-19 Thread James Farris
Are you asking where DEBUG = False is? If so, it would be in your project folder/project name/settings.py Sent from my mobile device > On May 19, 2018, at 4:36 AM, Umar Kambala wrote: > > How to I set my debug = false? On my django settings.. I don't know where to > get de settings > > On Ma

Re: MySQL caching_sha2_password

2018-05-19 Thread Fidel Leon
You my want to check: https://stackoverflow.com/questions/50416391/caching-sha2-password-plugin-failing-on-windows Basically, you’d need to install Oracle MySQL’s official Python connector. Besides, you have posted a server database configuration, including an IP and a port that are 100% *reachab

Re: need help

2018-05-19 Thread Umar Kambala
How to I set my debug = false? On my django settings.. I don't know where to get de settings On May 3, 2018 12:52 AM, "Gerald Brown" wrote: Have you tried "pip install django" without the "== 2.0.5". I think that if you do not specify a version pip will install the latest version. On Thursday, 0

Re: Message from a django beginner user

2018-05-19 Thread Celis González
Hi, I'm starting in this world too, I recommend the videos from the series trydjango on youtube, they really help me at the beginning. El martes, 15 de mayo de 2018, 16:01:59 (UTC-4), Francis F. Massaquoi, Jr. escribió: > > Hi, I'm Francis F. Massaquoi, Jr. with great interest in learning django

Django channel 2 - Provide seperate feeds to each users every 5 second

2018-05-19 Thread sahadev sahu
Hello, I am implementing a websocket application for live data feed updates to each client according to their watchlist in every 5 second. Here I am explaining my requirement: 1. Once user register with my application, he can view list of currency pairs e.g (ETH, BTC etc) 2. From that