Wednesday, December 1, 2010

Re: Django 1.3 alpha static settings consistency

On Thu, Dec 2, 2010 at 4:43 AM, fahhem <fahhem2@gmail.com> wrote:
> According to some pages in the dev documentation, the settings are
> STATIC_ROOT and STATIC_URL:
>
> http://docs.djangoproject.com/en/dev/ref/settings/
> http://docs.djangoproject.com/en/dev/howto/static-files/
>
> But according to this page and to the actual code, the settings are
> actually STATICFILES_ROOT and STATICFILE_URL:
>
> http://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/
> And code files:
> django/conf/global_settings.py
> django/conf/project_template/settings.py
> django/contrib/staticfiles/*.py
> django/contrib/staticfiles/management/commands/collectstatic.py
> django/contrib/staticfiles/templatetags/staticfiles.py
>
> Is the inconsistency due to switching from one to the other and could
> someone enlighten us as to the setting that will be used in the future
> so that Django users can use that (run a regex replace all until the
> fixes get committed/released)?

From my inspection, the code locations you reference all say
STATIC_FILES and STATIC_ROOT now. This was a relatively recent change;
if you have an older source code checkout, it may not reflect these
changes.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment