In installed apps you have s2.myapp, the traceback is just myapp.  Also you
have 's2.myapp, in the installed_apps, should it not be 's2.myapp', (ie
missing the end quote)?


Cheers, Nigel
07914 740972



On 24 October 2013 14:20, Derek <gamesb...@gmail.com> wrote:

> Yes, its there - the line after 'suit'.
>
>
> On Wednesday, 23 October 2013 19:22:54 UTC+2, Odin wrote:
>
>> Can't see the django.contrib.admin in INSTALLED_APPS.
>>
>>
>> 2013/10/23 Derek <game...@gmail.com>
>>
>>> I am trying to add a model entry, via the admin; I get this error (which
>>> has not happened before), running Django on Ubuntu 12.04 with the test
>>> server.  Not sure if there is an error with the model (which has worked
>>> fine up to now) or ...?
>>>
>>>
>>> Request Method: POST
>>> Request URL: 
>>> http://127.0.0.1:8000/admin/**myapp/mymodel/add/<http://127.0.0.1:8000/admin/myapp/mymodel/add/>
>>>
>>> Django Version: 1.5.4
>>> Python Version: 2.7.3
>>> Installed Applications:
>>> ('django.contrib.auth',
>>>  'django.contrib.contenttypes'**,
>>>  'django.contrib.sessions',
>>>  'django.contrib.staticfiles',
>>>  'django.contrib.messages',
>>>  'django.contrib.admindocs',
>>>  'django_nose',
>>>  'django_extensions',
>>>  'crispy_forms',
>>>  'autocomplete_light',
>>>  'admin_enhancer',
>>>  'smart_selects',
>>>  'selectable',
>>>  'massadmin',
>>>  's2.myapp,
>>>  'suit',
>>>  'django.contrib.admin')
>>> Installed Middleware:
>>> ('django.middleware.common.**CommonMiddleware',
>>>  'django.contrib.sessions.**middleware.SessionMiddleware',
>>>  'django.middleware.csrf.**CsrfViewMiddleware',
>>>  'django.contrib.auth.**middleware.**AuthenticationMiddleware',
>>>  'django.contrib.messages.**middleware.MessageMiddleware',
>>>  's2s.middle.middleware.**AdminSessionMiddleware')
>>>
>>>
>>> Traceback:
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/core/**handlers/base.py"
>>> in get_response
>>>   115.                         response = callback(request,
>>> *callback_args, **callback_kwargs)
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/contrib/**admin/options.py"
>>> in wrapper
>>>   372.                 return self.admin_site.admin_view(**view)(*args,
>>> **kwargs)
>>> File "/usr/local/lib/python2.7/**dist-packages/django/utils/**decorators.py"
>>> in _wrapped_view
>>>   91.                     response = view_func(request, *args, **kwargs)
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/views/**decorators/cache.py"
>>> in _wrapped_view_func
>>>   89.         response = view_func(request, *args, **kwargs)
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/contrib/**admin/sites.py"
>>> in inner
>>>   202.             return view(request, *args, **kwargs)
>>> File "/usr/local/lib/python2.7/**dist-packages/django/utils/**decorators.py"
>>> in _wrapper
>>>   25.             return bound_func(*args, **kwargs)
>>> File "/usr/local/lib/python2.7/**dist-packages/django/utils/**decorators.py"
>>> in _wrapped_view
>>>   91.                     response = view_func(request, *args, **kwargs)
>>> File "/usr/local/lib/python2.7/**dist-packages/django/utils/**decorators.py"
>>> in bound_func
>>>   21.                 return func(self, *args2, **kwargs2)
>>> File "/usr/local/lib/python2.7/**dist-packages/django/db/**transaction.py"
>>> in inner
>>>   223.                 return func(*args, **kwargs)
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/contrib/**admin/options.py"
>>> in add_view
>>>   1009.                 self.log_addition(request, new_object)
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/contrib/**admin/options.py"
>>> in log_addition
>>>   530.             action_flag     = ADDITION
>>> File 
>>> "/usr/local/lib/python2.7/**dist-packages/django/contrib/**admin/models.py"
>>> in log_action
>>>   18.         e = self.model(None, None, user_id, content_type_id,
>>> smart_text(object_id), object_repr[:200], action_flag, change_message)
>>>
>>> Exception Type: TypeError at /admin/myapp/mymodel/add/
>>> Exception Value: 'NoneType' object has no attribute '__getitem__'
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users<http://groups.google.com/group/django-users>
>>> .
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msgid/django-users/**CAF1Wu3PHp7FM8yge3YLRQuMFaCw24**
>>> ENzTOuuhYmW54QADXRg%2BA%**40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAF1Wu3PHp7FM8yge3YLRQuMFaCw24ENzTOuuhYmW54QADXRg%2BA%40mail.gmail.com>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/350f6701-7c49-4aee-9b4b-df9be42dc964%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADeX7vxiudD3QYa51LP%2BOJrX7azS%3DNUG%2Ba9b-fP2pnEPVi4rUg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to