Andreas,
Thank you for the help. It turned out my __init__.py file was missing in my
migration directories. Once added, everything ran great.
Jim
On Monday, August 7, 2017 at 3:33:18 PM UTC-4, jjander...@gmail.com wrote:
>
>
> I have been working on a django application for several months,
As far as I know you also need to declare the app_label for each model
class Meta:
app_label = 'your_app_name_here'
On Mon, Aug 7, 2017 at 4:15 PM, Andréas Kühne
wrote:
> Ok,
>
> Regarding point 2 there - have you added the models to the __init__.py
> file?
Ok,
Regarding point 2 there - have you added the models to the __init__.py
file? Imported them as in:
from .model1 import Model1
As far as I have seen, this is needed to make sure the migrations can
detect the models.
Regards,
Andréas
2017-08-07 22:09 GMT+02:00 :
Andreas,
The apps are included in the INSTALL_APPS in settings.py
With regard to the models file, I'm not sure what you are referring to. In
my application there is a driectory 'models' and in that directory, there
is a separate file for each model and inside each of those files there is a
Have you added the application your models belong to to the INSTALLED_APPS
part of settings.py? And have you added the models file in that application?
Regards,
Andréas
2017-08-07 21:33 GMT+02:00 :
>
> I have been working on a django application for several months,
I have been working on a django application for several months, learning as
I go. I have run into a problem now and I'm not sure what I should be doing
next.
Up until now my admin has worked, but I had a problem and a colleague told
me he was pretty sure it was a pycharm bug. He suggested
6 matches
Mail list logo