On Wednesday, February 8, 2017 at 6:08:44 PM UTC+8, Pankaj Singh wrote:
>
> Hi Gerald,
>
> Have you added your new app in 'INSTALLED_APPS' in `settings.py`? No, 
> because "province" is the name of a MODEL, not an app.
>
> Can you tell more about context of ther error, e.g. this error occurs on 
> `python manage.py runserver` or when you access a page on django admin?
>
When I run "runserver" 

>
> Also, it would be much easier to find the issue if you can share the 
> traceback of error.
>
> On Tue, Feb 7, 2017 at 6:19 PM, Gerald Brown <gerb...@gmail.com 
> <javascript:>> wrote:
>
>> I have just started an app on Ubuntu 16.04 Server using Python 3.5 and 
>> Django 1.10.5.
>>
>> When I do "@admin.register(Province)" in my admin.py file I get the error 
>> that is the subject of this post.
>>
>> Of course there is NO app with label of 'province' as that is the label 
>> of a 'Model'.
>>
>> Why is Django trying to register an app instead of the Model?
>>
>> Thanks,
>>
>> Gerald
>>
>>
>> -- 
>> 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 <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5e94b0d3-c6cd-4b24-b323-544d10e97923%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/5e94b0d3-c6cd-4b24-b323-544d10e97923%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Regards,
> Pankaj Kumar Singh
>
> Mobile: +91 9618754327
> Skype: psjinx
> Emal: psj...@gmail.com <javascript:>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/30903d95-d689-42d7-bb64-d14c5df60aa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to