Remove the
 os.path.join(PROJECT_PATH, 'static'),
>From staticfiles_dir by default this already included.



[]'s

Lucas Magnum.


2013/2/10 Satinderpal Singh <[email protected]>

> I am trying to configure the static files for my project by following the
> Django guide https://docs.djangoproject.com/en/dev/howto/static-files/
>  My project is like this:
>
>      Automation
>      |
>      |-----static
>      |     |
>      |     |-----css
>      |     |-----js
>      |-----__init__.py
>      |-----settings.py
>      |-----urls.py
>      |-----wsgi.py
>      |
>      |-----myapp
>      |
>      |-----templates
>
> PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
> STATIC_ROOT = os.path.join(PROJECT_PATH,'static')
> STATICFILES_DIRS = (
>                                              os.path.join(PROJECT_PATH,
> 'static'),
> )
> On running ./manage.py  collectstatic     in the terminal, gives following
> message.
>
>     "The STATICFILES_DIRS setting should "
> django.core.exceptions.ImproperlyConfigured: The STATICFILES_DIRS setting
> should not contain the STATIC_ROOT setting
>
> How could i solve this problem.
>
> --
> Satinderpal Singh
> http://satindergoraya.blogspot.in/
> http://satindergoraya91.blogspot.in/
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to