Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango Admin: not seeing any app (permission problem?)
    text
    copied!<p>I have a site with Django running some custom apps. I was not using the Django ORM, just the view and templates but now I need to store some info so I created some models in one app and enabled the Admin.</p> <p>The problem is when I log in the Admin it just says "You don't have permission to edit anything", not even the Auth app shows in the page. I'm using the same user created with syncdb as a superuser.</p> <p>In the same server I have another site that is using the Admin just fine.</p> <p>Using Django 1.1.0 with Apache/2.2.10 mod_python/3.3.1 Python/2.5.2, with psql (PostgreSQL) 8.1.11 all in Gentoo Linux 2.6.23</p> <p>Any ideas where I can find a solution?</p> <p>Thanks a lot.</p> <p>UPDATE: It works from the development server. I bet this has something to do with some filesystem permission but I just can't find it.</p> <p>UPDATE2: vhost configuration file:</p> <pre><code>&lt;Location /&gt; SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE gpx.settings PythonDebug On PythonPath "['/var/django'] + sys.path" &lt;/Location&gt; </code></pre> <p>UPDATE 3: more info</p> <ul> <li>/var/django/gpx/<strong>init</strong>.py exists and is empty</li> <li>I run python manage.py from /var/django/gpx directory</li> <li>The site is GPX, one of the apps is contable and lives in /var/django/gpx/contable</li> <li>the user apache is webdev group and all these directories and files belong to that group and have rw permission</li> </ul> <p>UPDATE 4: confirmed that the settings file is the same for apache and runserver (renamed it and both broke)</p> <p>UPDATE 5: /var/django/gpx/contable/<strong>init</strong>.py exists</p> <p>This is the relevan part of urls.py:</p> <pre><code>urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), ) urlpatterns += patterns('gpx', (r'^$', 'menues.views.index'), (r'^adm/$', 'menues.views.admIndex'), </code></pre>
 

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