Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango python can't set the admin default design to my interface
    primarykey
    data
    text
    <p>I have tried Django for a few days, and I'm trying to set up a production project with apache. I have followed the official tutorial at</p> <p><a href="http://docs.djangoproject.com/en/1.3/intro/tutorial01/" rel="nofollow noreferrer">http://docs.djangoproject.com/en/1.3/intro/tutorial01/</a></p> <p>Everything works just fine with the development server but with apache, I lose every admin style.</p> <p>I have read similar posts for this issue, without any success from now.</p> <p><a href="https://stackoverflow.com/questions/1833675/django-admin-has-no-style">Django admin has no style</a> <a href="https://stackoverflow.com/questions/3364070/django-ugly-admin-interface">Django: ugly admin interface</a></p> <p>It may be a rights issue, but I have copied the directory where the media files are stored</p> <p>/usr/share/pyshared/django/contrib/admin/media/</p> <p>to the site I server under /data</p> <p>/data/mysite/ /data/media/ /data/templates/</p> <p>I have tried different values for /data/mysite/settings.py</p> <p>/media/, /data/media/,</p> <p>with the Alias item in the apache configuration as well.</p> <p>Here is my apache configuration ` ServerAdmin webmaster@localhost</p> <pre><code>DocumentRoot /data/sites/accounts/ Alias /media/ /usr/share/pyshared/django/contrib/admin/media/ &lt;Directory /&gt; Options None AllowOverride None Order allow,deny allow from all &lt;/Directory&gt; &lt;Location /&gt; SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE accounts.settings PythonDebug On PythonPath "['/data/sites/accounts', '/data/sites/accounts/unix_accounts', '/data/sites', '/usr/lib/pymodules/python2.6/django'] + sys.path" &lt;/Location&gt; LogLevel warn ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined </code></pre> <p>`</p> <p>I have the intuition that this is a right issue, but /data/media/ and /data/templates have the same rights/owner and I can modify any template without any problem, and still no style for admin. Each file served by apache belongs to root:www-data, and 750 for the files, 710 for dirs.</p> <p>I really thank any of you for any idea helping me to solve this issue :)</p> <p>EDIT: I have used for apache the module mod_python. Don't hesitate to ask for any further details</p> <p>Thx a lot!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload