My principal domain name is on 02swtich so i follow their procedure
my web site is front end [vxhs3032@kat jerome-fraisse.fr]$
and the python django on other part like that ((jeromeapp:3.8)) [vxhs3032@kat jeromeapp]$
now my big problem is i can not display the ://jerome-fraisse.fr/admin/ i got this error Page not found (404)https
|Request Method:|GET|
| --- | --- |
|Request URL:|link//jerome-fraisse.fr/home/vxhs3032/jeromeapp/admin/|
Using the URLconf defined in `appjerome.urls`, Django tried these URL patterns, in this order:
1. [name='home']
2. admin/
The current path, `home/vxhs3032/jeromeapp/admin/`, didn’t match any of these.
You’re seeing this error because you have `DEBUG = True` in your Django settings file. Change that to `False`, and Django will display a standard 404 page.
I try many configuration for .htaccess in [vxhs3032@kat jerome-fraisse.fr]$
# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN
PassengerAppRoot "/home/vxhs3032/jeromeapp"
PassengerBaseURI "/"
PassengerPython "/home/vxhs3032/virtualenv/jeromeapp/3.8/bin/python"
PassengerAppLogFile "/home/vxhs3032/error-passenger.log"
# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END
# Activer le module Rewrite
RewriteEngine On
# Rediriger vers index.php pour la racine (si nécessaire)
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ /home/vxhs3032/jerome-fraisse.fr/index.php [L]
# Rediriger vers le back-office Django
RewriteRule ^admin(/.*)?$ /home/vxhs3032/jeromeapp/admin$1 [L,QSA]
# Gérer les fichiers statiques pour Django
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^static/(.*)$ /home/vxhs3032/jeromeapp/static/$1 [L]
# Gérer les erreurs 404
ErrorDocument 404 /404.html
But nothing woork
If someone can help thank you