My current settings are:
STATIC_ROOT = '/Applications/djangostack-1.4.4-0/apache2/htdocs/static/'
STATIC_URL = 'http://localhost:8080/static/'

I am developing now in /Applications/djangostack-1.4.4-0/apps

originally I was developing in the PyCharm Projects Directory
I guess I wanted to know what is a good setup for PyCharm when static and 
media files are not in the same directory as the project is.
Eventually I will be deploying to webfaction

It seems to be working now.

On Sunday, February 24, 2013 10:43:24 AM UTC-5, Nicholas Duffy wrote:
>
> You mean that in PyCharm, you get the "Unresolved static reference" 
> warning?
>
> Do you have the static files in the static subdirectories of your 
> installed apps or in STATICFILES_DIRS in settings? STATIC_ROOT is meant to 
> be the directory that is used when you run collectstatic in production. 
> With that said, PyCharm seems to find static files there as well on my 
> installation.
>
> On Friday, February 22, 2013 9:53:05 AM UTC-7, frocco wrote:
>>
>> Hello,
>>
>> I have my static data mapped to:
>> STATIC_ROOT = '/wamp/www/static/'
>>
>> If I hit the app at localhost/app
>> Everything is ok.
>>
>> However when I debug in PyCharm, the static data does not map.
>>
>> My templates use {{ STATIC_URL }}img/....
>>
>> Thank you
>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to