I am trying to manage the data in a model through the default django admin 
site. I have several apps, which have all been included in INSTALLED_APPS, 
and I am registering the model with the default django admin. I have 
included the django admin app in urls.py and have verified that I am the 
superuser with all permissions. I know the model is importing because it is 
included in the permission settings, but the option to edit / create new 
model objects for Retailer is not available on the admin home page. 

Any pointer in the right direction would be appreciated. 

===================

*webappconf/settings.py*

## APPLICATION DEFINITION
INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'webapp',
    'scrape',
    'style',
)

[...]

ROOT_URLCONF = 'webappconf.urls'

*webappconf/urls.py*

from django.contrib import admin
[...]
url(r'^admin/django_admin/', include(admin.site.urls)),

*webapp/models.py*

# Retailers
class Retailer(Model):
    display_name = CharField(max_length=50)
    source = CharField(max_length=50)
    logo = CharField(max_length=100)
    basic_descripion = TextField(max_length=2000)

    class Meta:
        db_table = 'retailer'

*webapp/admin.py*

from django.contrib import admin
from webapp.models import Retailer

class RetailerAdmin(admin.ModelAdmin):
    pass
admin.site.register(Retailer, RetailerAdmin)

*From the permission options for superuser (who has all permissions)*

webapp | retailer | Can add retailer
webapp | retailer | Can change retailer
webapp | retailer | Can delete retailer

-- 
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/fcf0c28a-4fbc-4733-a203-3c4df9177186%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to