STATICFILES_DIRS = (
    ('assets','C:/Users/robin/web/facebook/static'),
)


On Thu, Aug 22, 2013 at 11:36 PM, Robin Lery <robinl...@gmail.com> wrote:

> my
>
> STATIC_ROOT = 'C:/Users/robin/web/static_files_for_facebook/'
>
> STATIC_URL = '/static/'
>
> In httpd.conf I have added:
>
> #Serve static files
> AliasMatch /static/ C:/Users/robin/web/static_files_for_facebook/
> <Directory C:/Users/robin/web/static_files_for_facebook>
>    Order deny,allow
>    Allow from all
> </Directory>
>
>
> After collectstatic command it has collected the static files, but its
> still now showing up.
>
>
>
>
> On Thu, Aug 22, 2013 at 10:15 PM, Tom Evans <tevans...@googlemail.com>wrote:
>
>> On Thu, Aug 22, 2013 at 5:14 PM, Robin Lery <robinl...@gmail.com> wrote:
>> > I have configured apache to serve my project. But I can't yet configure
>> it
>> > to serve static files. Till now in my httpd.conf I have appended the
>> code
>> > that django documentation provides and its like this:
>> >
>> >     WSGIScriptAlias / C:/Users/robin/web/facebook/facebook/wsgi.py
>> >     WSGIPythonPath C:/Users/robin/web/facebook/
>> >
>> >     <Directory C:/Users/robin/web/facebook/facebook>
>> >     <Files wsgi.py>
>> >     Order deny,allow
>> >     Allow from all
>> >     </Files>
>> >     </Directory>
>> >
>> > Now, what next do I do to serve static files through apache server. I
>> know
>> > its best to serve static files through nginx or other server, but it
>> was to
>> > hard to find tutorial for windows. So I would highly appreciate if
>> someone
>> > would guide me to serve static files throught apache as I am half way
>> down
>> > there, in windows. Or if some tutorials for other server for windows
>> will
>> > also be appreciated. Thank you!
>>
>> This is documented in django's documentation:
>>
>>
>> https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/#serving-files
>>
>> Create a directory somewhere on disk, and add it as a location alias
>> to your apache config, like so
>>
>> Alias /static/ C:/path/to/dir/you/made/
>> <Directory C:/path/to/dir/you/made>
>>    Order deny,allow
>>    Allow from all
>> </Directory>
>>
>> Set the following settings:
>>
>> STATIC_ROOT = "C:/path/to/dir/you/made"
>> STATIC_URL = "/static/"
>>
>> Run "python manage.py collectstatic".
>>
>> Cheers
>>
>> Tom
>>
>> --
>> 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.
>>
>
>

-- 
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