Code

Opened 2 years ago

Closed 2 years ago

#18010 closed Bug (invalid)

Can't access Admin CSS with Apache without ADMIN_MEDIA_PREFIX

Reported by: hyd415@… Owned by: nobody
Component: contrib.staticfiles Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,
First time django user. I had to manually add in this following line to the settings.py file for my admin css to be accessible.

ADMIN_MEDIA_PREFIX = '/static/admin/'

Here are my other settings for your perusal:
STATIC_ROOT = '/home/ubuntu/static/'
STATIC_URL = '/static/'

And my apache http.conf file has:
Alias /static/ /home/ubuntu/static/

<Directory /home/ubuntu/static>
Order deny,allow
Allow from all
</Directory>

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.