Open roperi opened 6 years ago
Forgot to say I'm referring to a fresh install using Pinax starter projects.
So this is what I typed before getting the error:
pip install pinax-cli
pinax start static mystatic
cd mystatic
pip install -r requirements.txt
./manage.py migrate
...
Hello @h-2-0, I just submitted a patch #70 to hopefully fix this issue. Sorry for the delay. This is what worked for me.
I believe Django >= 2 should be
from django.urls import path
from mystatic import views
urlpatterns = [
path("<str:path>", views.static_view),
]
I believe Django < 2 should be
from django.conf.urls import url
from mystatic import views
urlpatterns = [
url(r"^(.*)$", views.static_view),
]