2👍
I have created an example django project for you, which can be easily hosted on shared hosting providers. You can find it on github – https://github.com/psjinx/django-example-project-shared-hosting.
I have answered a related question asked by alok, you may look into that as well.
If you are still having some issues then please post them in comments.
1👍
Note the error message:
The current URL, , didn't match any of these.`
This means Django isn’t getting any URI information. The reason is this line:
RewriteRule ^(/)?$ mysite/jarr.fcgi [QSA,L]
Note that the only thing that can cause the fcgi
script to be called is visiting the “index”, and even then no URI information is given.
You’ll want your RewriteRule
to be something like
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite/jarr.fcgi/$1 [QSA,L]
(important part is the /$1
)
Try moving the jarr.fgci
to the public “root” of your domain (ie, not under mysite
) and change your rule to be:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ jarr.fcgi/$1 [QSA,L]
You’ll still be able to put files in the directory to be served directly by apache.
- [Django]-Showing more of the highlighted context
- [Django]-Are pre-save signals handled before the clean method in Django?
- [Django]-Django: is importing a view from a module slower than including it in the main views.py file?
- [Django]-Django app doesn't recognize static files