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
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
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
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
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.
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
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"
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
8 matches
Mail list logo