Hello Brian!
This right, in fact that word "import" I inadvertently pasted, but the
import does not work.
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
The problem was that when doing the import, it does not appear available by
pressing ctrl + backspace in Eclipse, that is,
On Apr 21, 12:48 pm, Guevara wrote:
> Hello!
> My project is failing to import the staticfiles_urlpatterns, using
> Eclipse Helios:
>
> urls.py
>
> import from django.contrib.staticfiles.urls staticfiles_urlpatterns
>
> In django 1.3 I already have:
>
> INSTALLED_APPS = (
The problem was the documentation, the manual of utilization says one
thing, but the Contrib documentation says another, I follow contrib
doc:
This is the configuration that worked:
settings.py
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = (
Hello!
My project is failing to import the staticfiles_urlpatterns, using
Eclipse Helios:
urls.py
import from django.contrib.staticfiles.urls staticfiles_urlpatterns
In django 1.3 I already have:
INSTALLED_APPS = (
'django.contrib.staticfiles'
)
In the folder:
/
4 matches
Mail list logo