You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hello I am new in Django in Linux, I have already
config the apache2 server to run Django and it works but It does’nt load
me the static files, when I open the Django’s Admin it just plane text (just
html). I need to know how config it. thanks
Mike Dewhirst
unread,
Apr 28, 2016, 7:54:02 PM4/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Here is a working Apache 2.2 example.
NB: I cannot vouch for the security of this setup so I hope someone more
knowledgeable than me can comment.
# lock the public out
<Directory /var/www/xxdx/>
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# serve collectstatic stuff from here
<Directory /var/www/static/xxdx/>
AllowOverride None
Order deny,allow
Allow from all
</Directory>
# show apache where to find static files
<IfModule mod_alias.c>
Alias /static/ /var/www/static/xxdx/
</IfModule>