Hey
I'm new to serving Django website on a shared server as well as using fastcgi and .htaccess so this might be a basic question. Namely I'm having difficulties serving static content. I've tried playing with htaccess rules, but no luck yet. My project structure:
myproject/
├── myapp
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── static
│ │ └── myapp
│ │ ├── css
│ │ │ ├── bootstrap.min.css
│ │ │ ├── bootstrap.min.min_myproject.css
│ │ │ └── proj.css
│ │ ├── fonts
│ │ ├── images
│ │ │ ├── logo.png
│ │ └── scripts
│ │ ├── bootstrap.bundle.min.js
│ │ └── bootstrap.min.js
│ ├── templates
│ │ └── myapp
│ │ ├── base.html
│ │ ├── footer.html
│ │ ├── header.html
│ │ ├── index.html
│ ├── tests.py
│ ├── urls.py
│ └── views.py
├── manage.py
├── myproject
│ ├── __init__.py
│ ├── locale
│ ├── media
│ ├── settings
│ │ ├── base.py
│ │ ├── dev.py
│ │ ├── __init__.py
│ │ ├── prod.py
│ ├── static
│ ├── templates
│ │ └── base.html
│ ├── urls.py
│ └── wsgi.py
├── requirements
└── test.py
My htaccess
Options +ExecCGI
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^(/static.*)$ /static//$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ cgi-bin/mydjangapp.fcgi/$1 [QSA,L]
If anybody can help me figure out how to solve it, would really appreciate.
Thanks!
Best
MJ