Monday, September 30, 2019

Re: Django FastCGI and static files

At the end of every email, the instructions are clearly mentioned - Here it is:

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

Hope this helps.

--
Regards
Deep L Sukhwani


On Sat, 28 Sep 2019 at 22:17, Sipum <sipum14@gmail.com> wrote:
Block or mark as spam.
I think it will work. Give it a try

On Sat, 28 Sep, 2019, 7:30 PM Anike Sadia, <anikesadia01@gmail.com> wrote:
Hi pls how to leave this group 


On Tue, 17 Sep 2019 at 17:16, Martin Jaan Leesment <martinjaan11@gmail.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80c1e98b-8a0a-482c-a20f-29b4c7afdcab%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADi3MtsqOtuN%2BEuArMCZSJBuW-AYgvqDkDU4RsP3Y%2BF62SC_bQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGHZBzzeObUv0vLdoU4arPb8iYz1pGYSKEUSopC7nX7Fz_YAcw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEMqiPfvh%3DNpye%2BsV2-zfjJgYhCzh5%3Dii_GQd%2Bt3sEu9NPkm3Q%40mail.gmail.com.

No comments:

Post a Comment