I see that you have other routes beginning with ^admin/, this can some time 
cause the non inclusion of certain urls depending on the order in which 
they appear in the urls.py file. Can you comment the other ones and just 
keep

url(r'^admin/django_admin/', include(admin.site.urls))

to eliminate this possibility.

On Wednesday, August 13, 2014 7:27:57 AM UTC+1, Thomas Brightwell wrote:
>
> Chedi,
>
> Thanks for the quick response.
>
> http://localhost:8000/admin/django_admin/webapp/retailer
>
> Page not found (404)
> Request Method: GET
> Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
> Using the URLconf defined in webappconf.urls, Django tried these URL 
> patterns, in this order:
> ^$
> ^search/$
> ^product/(?P<source_id>\w+)/$
> ^accounts/login/$
> ^accounts/logout/$
> ^search/(?P<room>[-\w]+)/$
> ^search/(?P<room>[-\w]+)/(?P<cat_a>[-\w]+)/$
> ^search/(?P<room>[-\w]+)/(?P<cat_a>[-\w]+)/(?P<cat_b>[-\w]+)/$
> ^admin/cat/$
> ^admin/cat/unaccepted/$ [name='cat_unaccepted']
> ^admin/cat/deferred/$
> ^admin/cat/api/next_unaccepted/$
> ^admin/cat/api/next_deferred/$
> ^admin/cat/api/item/(?P<source_id>\w+)/$
> ^admin/cat/api/accept_item/$
> ^admin/cat/api/defer_item/$
> ^admin/edit/(?P<source_id>\w+)/$
> ^admin/scraping_stats/$
> ^admin/scraping_stats/details/(?P<spider_name>[A-Za-z0-9-_]+)/$
> ^admin/scraping_stats/api/load_all_spider_stats/$
> ^admin/scraping_stats/api/load_all_retailer_stats/$
>
> ^admin/scraping_stats/api/load_spider_stats/(?P<spider_name>[A-Za-z0-9-_]+)/$
> ^admin/scraping_stats/counts/$
> ^admin/django_admin/ ^$ [name='index']
> ^admin/django_admin/ ^login/$ [name='login']
> ^admin/django_admin/ ^logout/$ [name='logout']
> ^admin/django_admin/ ^password_change/$ [name='password_change']
> ^admin/django_admin/ ^password_change/done/$ [name='password_change_done']
> ^admin/django_admin/ ^jsi18n/$ [name='jsi18n']
> ^admin/django_admin/ ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$ 
> [name='view_on_site']
> ^admin/django_admin/ ^auth/group/
> ^admin/django_admin/ ^auth/user/
> ^admin/django_admin/ ^(?P<app_label>auth)/$ [name='app_list']
> ^style/
> The current URL, admin/django_admin/webapp/retailer, didn't match any of 
> these.
>
> On Wednesday, 13 August 2014 01:01:21 UTC+1, chedi toueiti wrote:
>>
>> 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/00c54b33-c8b2-4f8f-934b-3f65d0dcbb24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to