Static files not found

2022-02-03 Thread Serge Alard
Hello I developped a project in Django python that works fine. Thus, I deployed my project. Everything works but the static files are not found by the application. I give you below the settings and wsgi files. *WSGI* import os from django.core.wsgi import get_wsgi_application os.environ.setde

Re: Static files not found

2022-02-03 Thread Serge Alard
in advance for your suggestions. Le jeudi 3 février 2022 à 16:33:10 UTC+1, dashlaksh...@gmail.com a écrit : > Please add this line below static_url > > STATICFILES_DIRS = [ > 'static' > ] > > On Thu, Feb 3, 2022, 20:53 Serge Alard wrote: > >> Hello >&g

Re: Static files not found

2022-02-13 Thread Serge Alard
body but it does not work yet. Serge Alard Le jeudi 3 février 2022 à 20:21:30 UTC+1, mminu...@gmail.com a écrit : > At the bottom of your code, you need to include the STATICFILES_DIRS = > [BASE_DIR/""]. > This tells django where your static files are > > On Thu, F

To get object id currently modified in django administration

2021-05-02 Thread Serge Alard
ourriez-vous m'aider. Merci d'avance. Hello Currently I do customized validations on objects of my project in the Django administration. For that, I created a ModelForm but I do not know how to get the object id currently in modification in Django administration. Could you help me. T

How to use correctly a FormSet in django administration

2021-05-05 Thread Serge Alard
Hello I should like to do personalised validation in Django administration but I have always the same error : type object 'MainForm' has no attribute '_meta' To do so, I use the following admin.py (attached file) Thanks in advance to anybody who could me unblocked.

How to valid data after the deletion of an inline instance ?

2021-05-13 Thread Serge Alard
Hello I am using formset to valid inline forms in django administration. To valid my data I am using the method clean() but when I delete an inline object the data are validated before the deletion. How can I do to valid my data after the deletion. Thanks in advance to help me. Serge Alard

How to validate data after the deletion of an inline instance ?

2021-05-14 Thread Serge Alard
deleted in the validation method clean() ? Thanks in advance to help me. Serge Alard P.S. : This message is the same as the one I posted yesterday but I corrected grammatical mistake. -- You received this message because you are subscribed to the Google Groups "Django users"

@admin.display(ordering='any_item') does not work !

2021-05-22 Thread Serge Alard
min(admin.ModelAdmin): fields = ('partie', 'numero', 'titre') list_display = ('__str__',) The asked ordering does work. Apparently, it sorts by decreasing order of the Sujet creation. Serge Alard -- You received this message because you are subscribed to the Goog