Hi,
I'm encountering exactly the same problem as yours. Did you finally
find the solutions?
Thanks,
Dave

On Feb 17, 1:25 pm, Tipan <t...@ortengo.co.uk> wrote:
> I'm having some problems with the New Forms Admin that are giving me
> the error message " You don't have permission to edit anything." when
> I log into the Admin. I also lose the admin-media so that the page
> displays on a plain white background.
>
> I'm using the latest django release from the trunk r9844.
>
> Interestingly, I have another app that uses exactly the same database
> and this delivers full access for the same user (a superuser).
>
> I've checked through the urls/settings and admin.py files and both are
> identical except for the app name.
>
> On previous threads it suggests putting print statements in contrib
> \admin\__init__.py to check the apps loaded by autodiscover and it
> seems to be working as expected:
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.admin
> django.contrib.humanize
> django.contrib.flatpages
> hive.promotions
>
> where hive is my app.
>
> My urls.py looks like this:
> ------------
> from django.conf.urls.defaults import *
> from django.contrib import admin
>
> admin.autodiscover()
>
> js_info_dict = {
>     'packages': ( 'hive.promotions',),}
>
> urlpatterns = patterns('',
>     # Example:
>     (r'^', include('promotions.urls')),
>
>     (r'^hive/', include('promotions.urls')),
>     (r'^jsi18n/$', 'django.views.i18n.javascript_catalog',
> js_info_dict),
>
>     # Admin:
>     ('^hiveadmin/(.*)', admin.site.root),
> )
> --------------
> My admin.py looks like this:
>
> from django.contrib import admin
> from promotions.models import *
>
> class PointTypeAdmin(admin.ModelAdmin):
>         list_display=
> ('points_type','date_created','ranking','points_expire','description',
> 'cash_validity_period')
>         save_on_top=True
>         pass
>
> admin.site.register(PointType, PointTypeAdmin)
> ....plus other model classes..
>
> I seem to be going into blind alleys at the moment, can anyone suggest
> a troubleshooting direction for me to pursue?
>
> Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to