Commit 77f4dedd authored by Daniel STAN's avatar Daniel STAN

django 1.4: STATIC_URL pour admin

parent 13c01178
......@@ -27,6 +27,8 @@ DATABASES = {
}
}
STATIC_URL='/static/'
#DATABASE_ROUTERS = [
# 'intranet.database.Router',
# ]
......@@ -55,12 +57,7 @@ MEDIA_ROOT = ROOT_PATH
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = 'http://127.0.0.1/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'
MEDIA_URL = 'http://127.0.0.1/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY='k5q7=k^)0(580foicgy%1)7*5s8oo1^1c^s%2#-s&lkt0929qc'
......@@ -108,6 +105,11 @@ AUTHENTICATION_BACKENDS = (
INTRANET_APPS = (
{
'name': 'locaux',
'category': 'Administration',
'test': lambda u: True,
},
# {
# 'name':'dummy',
# 'category':'Beta',
......
......@@ -15,8 +15,8 @@ server {
alias /home/dstan/crans/intranet/static;
}
location /media {
alias /usr/share/pyshared/django/contrib/admin/media;
location /static/admin {
alias /usr/share/pyshared/django/contrib/admin/static/admin;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment