This is what I done for activate my admin site: in Urls.py I write this: from django.contrib import admin admin.autodiscover()
urlpatterns += patterns('', (r'^' + PROJECT_URL + '/media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), (r'^' + PROJECT_URL + '/admin/(.*)', admin.site.root), ) which PROJECT_URL = 'mywebSite' In models.py class Task(models.Model): id = models.AutoField(primary_key=True, db_column='id') calendar = models.TextField(db_column='Calendar') class Meta: db_table = 'tasks' and in admin.py: class TaskAdmin(admin.ModelAdmin): list_display = ("id","calendar","task","taskType") search_fields = ['task'] admin.site.register(Task, TaskAdmin) I also place admin.py in mywebSite_app near models.py. I didn't add anything to views for admin. what is wrong you think? On Dec 20, 5:02 pm, samira <sh_samir...@yahoo.com> wrote: > I checked my source code alot, but nothing is wrong in it. Also as I > mentioned it is work on my local.Shall I set something on site for it? > > On Dec 17, 8:43 pm, "Jeremy Dunck" <jdu...@gmail.com> wrote: > > > > > On Wed, Dec 17, 2008 at 11:34 AM, samira <sh_samir...@yahoo.com> wrote: > > > > I activeadminsitefor Django 1.0.2, it is correct on my local, but > > > I > > > see below error on server: > > > > emplateSyntaxError at /mywebSite/admin/ > > > > Caught an exception while rendering: Tried activateAccount in module > > > mywebSite.mywebSite_app.views. Error was: 'module' object has no > > > attribute > > > 'activateAccount' > > > > can anu body knows about activeAccount attribute? > > > That must be in your source code. > > Within mywebSite_app.views, do you, in face, have an activateAccount > > object (usually a function)? > > > If you think you do, please paste your views module to dpaste.com and > > share the link so we can further troubleshoot.- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---