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

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: 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: 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: 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: 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: how to import functions of app from the same project from other app

2018-05-21 Thread Daniel Germano Travieso
Hello Asif! To use a method from one app in another app would require you to import the app's module (using from - import statements), allowing the interpreter to know that the function from one scope is available on another. In a serious note, I recommend that you first familiarize yourself wi

Re: How to create receipt forms using django.

2018-05-21 Thread Daniel Germano Travieso
Hello Dwelve into the official Django Tutorial and learn it's basic, then go on to trying to create the app you want! https://docs.djangoproject.com/en/2.0/intro/tutorial01/ Hope it helps. On Monday, May 21, 2018 at 4:20:37 AM UTC-3, subhani shaik wrote: > > Hi group numbers... > > How to crea

Re: Temporal table in Django 1.6

2018-05-21 Thread Daniel Germano Travieso
able somewhere out there on the internet that provides a backend with Temporal Tables. Hope it helps! *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Mon, May 21, 2018 at 4:13 PM, Nirali Supe wrote: > Hello, > > I need to create Temporal table in

Re: First View

2018-05-21 Thread Daniel Germano Travieso
are intended to access, you should access "/boutique/". To advance further I recommend you to check the documentation on URL patterns! Hope it helps. *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Mon, May 21, 2018 at 5:55 PM, Trist

Re: Insert data into multiple models when doing POST method

2018-05-21 Thread Daniel Germano Travieso
the .create method of the Serializer. Hope it helps!​ *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Mon, May 21, 2018 at 12:59 PM, thiagarajan.kpt wrote: > Hi, > > I have two models (Patients and PatientAddress). I want to create a new > p

Re: Multisite strategy

2018-05-23 Thread Daniel Germano Travieso
site is to choose location and language, but it is a personal thing and your way can and will work fine! Hope it helps! *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Tue, May 22, 2018 at 3:31 AM, Carlo Ascani wrote: > Hi all, > > I'

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-23 Thread Daniel Germano Travieso
migrations fail. To test everything, you can backup you DB somewhere and make the migrations again from scratch. Hope it helps! *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Wed, May 23, 2018 at 10:56 AM, Melvyn Sopacua wrote: > On woensdag 23 mei 2018

Re: geodjango wrong srid when it saves feature

2018-05-23 Thread Daniel Germano Travieso
Hello! You should probably use the LineString from django.contrib.gis.geos to store Geo objects on the database Hope it helps. *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Wed, May 23, 2018 at 11:54 AM, Majid Hojati wrote: > Hi, > I tried t

Re: Django attempting to connect to mysql without password even when password has been provided

2018-05-27 Thread Daniel Germano Travieso
;mydatabaseuser', 'PASSWORD': 'mypassword', 'HOST': '127.0.0.1', 'PORT': '5432', }} Hope it helps *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Sun

Re: Multisite strategy

2018-06-04 Thread Daniel Germano Travieso
Hello Carlo, I don't see what you mean by change the current site at runtime? If you mean change the site the user is accessing, just forward the user via the URL to the proper site you mean to reach. Hope it helps! *[]'s* *Daniel Germano Travieso* *Engenharia da Computação

Re: installation help please

2018-06-04 Thread Daniel Germano Travieso
/conda Hope it helps. *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Thu, May 31, 2018 at 8:24 AM, Rafael E. Ferrero wrote: > please use some kind of virtual environment... in linux its virtualenvs > > > Rafael E. Ferrero > > 2018-05-31

Re: calculate the followers difference/grow by day

2018-06-04 Thread Daniel Germano Travieso
t too. Hope it helps! *[]'s* *Daniel Germano Travieso* *Engenharia da Computação Turma: 013* *Unicamp* On Thu, May 31, 2018 at 11:14 AM, João Paulo wrote: > > Hey guys, > > I´m using SQLite and trying to calculate the followers difference by day > > This is my

Re: Best way to add an image from a filefield to django 2.0 admin?

2018-06-06 Thread Daniel Germano Travieso
Hello Mark. You can just override the Model Admin for your model and insert an Inline Form for example. Check the documentation for customizing the model admin! Hope it helps! On Mon, Jun 4, 2018, 18:02 Mark Phillips wrote: > I have a Document model that uploads an image. I have a DocumentMe

Re: Upload video with automatically created thumbnail in Django 2

2018-06-06 Thread Daniel Germano Travieso
Hello! This type of video rendering and processing should be done by a python module that can handle this workload. For example, you can use OpenCV, a C++ computer vision module that has a python hooks version, so you can upload your video via django the usual way an use the OpenCV to process the

Re: Accessing the model attribute of UpdateView & friends

2018-06-06 Thread Daniel Germano Travieso
Hello! As you see on the documentation ( https://docs.djangoproject.com/en/2.0/topics/class-based-views/) for the class based views, any arguments you pass to the class based view .as_view() method will override attributes of the class based view, so if you set MyCView.as_view(model=Foo) is the sa

Re: Accessing the model attribute of UpdateView & friends

2018-06-06 Thread Daniel Germano Travieso
and my so far not too great Python understandign) > it is not clear to me whether "Model" is simply the name of the model, or > if it is the entire Model object instance. > > > thanks again, Mikkel > > > onsdag den 6. juni 2018 kl. 15.01.05 UTC+2 skrev Daniel Germano Tr

Re: Not Found: / [06/Jun/2018 19:45:16] "GET / HTTP/1.1" 404 2027 Not Found: /favicon.ico

2018-06-06 Thread Daniel Germano Travieso
You probably need to set up your static files on Django. Take a look at the documentation for static file serving. On Wed, Jun 6, 2018, 11:59 Avitab Ayan Sarmah wrote: > what is this means? and hw do i resolve this error? Please comment.And > also my image is not open in my webpage when i have

Re: Accessing the model attribute of UpdateView & friends

2018-06-06 Thread Daniel Germano Travieso
e in the form of a >>> simple array called "fields". >>> I don't want UpdateView to make a form for all columns of the model's >>> data table, just the fields from my custom array in the Model objects. >>> >>> My problem is simply: How

Re: bootstrap to the login template

2018-06-06 Thread Daniel Germano Travieso
legroups.com > <https://groups.google.com/d/msgid/django-users/3aa17d90-3959-4b16-8c14-93c966fb45d0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- []'s Daniel Germano Travieso Engenharia de Computação U

Re: Trouble adding users through admin site

2018-06-09 Thread Daniel Germano Travieso
Hello Dylan You will never see a user password as a raw text on django (only maybe if you intercept the request the user creation form sent to the django view that handles the creation) User passwords are stored as their appropriate hash, and you can just use the add user admin page to add a new

Re: Error messages in SetPasswordForm

2020-02-05 Thread Daniel Germano Travieso
spares them of trying to parse/remember what the construction of escaped characters are. But I could be wrong as I do not work on the belly of Django development. *[]'s* Daniel Germano Travieso -BEGIN PGP PUBLIC KEY BLOCK- mQINBF1hSUIBEAC56ve8/8fAt55s+PHuolumg8zvjqk0cpo36DXkntP1fql