Are you saying that your settings are like this?

STATIC_ROOT = 
'/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static'

STATIC_URL='/static/'  # <<<<< Trailing slash required! check it

If so that is asking for trouble when you do a collectstatic. You'll prob 
get permission error unless you do a sudo.

Set your STATIC_ROOT somewhere you can write to without sudo when you do a 
manage.py collectstatic:

STATIC_ROOT = '/var/www/myproject/site_media/static'

if your deployment files are at /var/www/myproject

Review...

https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#collectstatic

K


On Friday, September 13, 2013 9:17:17 PM UTC-7, Harjot Mann wrote:
>
> I have placed my static folder called time in 
> /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to