Re: Satchmo store as an app of a django project
On Thu, Mar 15, 2012 at 4:59 PM, kooliah
<kooliah@djeve.sites.djangohosting.ch> wrote:
> On 03/15/2012 09:22 PM, Joel Goldstick wrote:
>>
>> I had problems similar to you with my static files. First, I am
>> assuming you are using v1.3 of Django? V1.0 did this differently
>>
>> Below is a snippet from my settings.py:
>>
>> Django is doing some things I don't really understand, but in your
>> case I think you should add entries to the STATICFILES_DIRS tuple.
>> You should read carefully the django docs concerning static file
>> settings. Its confusing -- at least to me.
>>
>> # Absolute path to the directory static files should be collected to.
>> # Don't put anything in this directory yourself; store your static files
>> # in apps' "static/" subdirectories and in STATICFILES_DIRS.
>> # Example: "/home/media/media.lawrence.com/static/"
>> STATIC_ROOT = os.path.join(PROJECT_PATH,'static/')
>>
>> # URL prefix for static files.
>> # Example: "http://media.lawrence.com/static/"
>> STATIC_URL = '/static/'
>>
>> # URL prefix for admin static files -- CSS, JavaScript and images.
>> # Make sure to use a trailing slash.
>> # Examples: "http://foo.com/static/admin/", "/static/admin/".
>> ADMIN_MEDIA_PREFIX = '/static/admin/'
>>
>> # Additional locations of static files
>> STATICFILES_DIRS = (
>> # Put strings here, like "/home/html/static" or
>> "C:/www/django/static".
>> # Always use forward slashes, even on Windows.
>> # Don't forget to use absolute paths, not relative paths.
>> os.path.join(PROJECT_PATH,'project_static'),
>> )
>>
>
> I have django 1.2.3, i try you settings but nothing change....
>
> Thanks anyway
>
>
> --
> 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.
>
My settings won't work for you unless you put your files in the same
directories as I do.
--
Joel Goldstick
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home