Not preaching (as I often fall into this trap myself) but just copy&paste
from others' examples, without understanding what is the intent of the
code, can lead to problems.
In this case, the docs are useful (for understanding how to construct the
`app_label`, for example):
https://docs.djangop
Finally solved the problem!!!
At the end of each Model definition I had added:
class Meta:
managed = True
db_table = 'refer'
app_label = 'Refer'
I then commented those lines out and then the program worked like it
should. I saw another post where they had put those var
On Thursday, February 9, 2017 at 9:16:48 PM UTC+8, Florian Schweikert wrote:
>
> On 09/02/17 14:01, Gerald Brown wrote:
> > Because of this problem I am NOT able to proceed with my project so any
> > and all help will be appreciated.
>
> Maybe somebody could help you if you provide more inform
On 09/02/17 14:01, Gerald Brown wrote:
> Because of this problem I am NOT able to proceed with my project so any
> and all help will be appreciated.
Maybe somebody could help you if you provide more information about what
you are doing.
Following information could give some starting points for in
On Wednesday, February 8, 2017 at 7:09:12 AM UTC+8, Gerald Brown 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 the
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
Hi Gerald,
Have you added your new app in 'INSTALLED_APPS' in `settings.py`?
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?
Also, it would be much easier to find the issue if you can share the
trace
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
8 matches
Mail list logo