Hi,

You can start by entering the model url manually after logging to the admin 
interface, in your case it would be

http://[host name]:[port]/admin/django_admin/webapp/retailer

don't forget to set your DEBUG to True in the settings.py and if you are 
restart your server if you are running gunicorn or anything alike.

On Tuesday, August 12, 2014 5:50:21 PM UTC+1, Thomas Brightwell wrote:
>
> 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/9060568f-3aa1-46ea-a435-906bd236fe33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to