Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'python manage.py makemigrations' error #36

Open
gustavklopp opened this issue Jun 5, 2015 · 4 comments
Open

'python manage.py makemigrations' error #36

gustavklopp opened this issue Jun 5, 2015 · 4 comments

Comments

@gustavklopp
Copy link

Here's the error from the command python manage.py makemigrations :

Trying to run custom code at startup...
Loading apps and roles from configure.yaml
starting up
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    startup.run()
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/AuShadha/startup.py", line 77, in run
    autoload()
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/AuShadha/startup.py", line 73, in autoload
    load_modules()
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/AuShadha/startup.py", line 37, in load_modules
    import_module("{}.aushadha".format( app ) )
  File "/home/guido/.Envs/aushadha/local/lib/python2.7/site-packages/django/utils/importlib.py", line 45, in import_module
    __import__(name)
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/registry/icd10/aushadha.py", line 12, in <module>
    from .models import Chapter, Section,Diagnosis 
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/registry/icd10/models.py", line 14, in <module>
    from AuShadha.apps.aushadha_base_models.models import AuShadhaBaseModel
  File "/home/guido/BACKUP_guido/Documents/AuShadha/src/AuShadha/AuShadha/apps/aushadha_base_models/models.py", line 249, in <module>
    class AuShadhaBaseModelForm(ModelForm):
  File "/home/guido/.Envs/aushadha/local/lib/python2.7/site-packages/django/forms/models.py", line 274, in __new__
    "needs updating." % name
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form AuShadhaBaseModelForm needs updating.
@kanr
Copy link

kanr commented Sep 12, 2015

I am trying to build the app and running into this error. Any resolution?

@dreaswar
Copy link
Owner

@kanr Thats an issue with the latest Django. Try with Django 1.8 or Django 1.7x. Please let me know if you still run into the error. The latest Django requires us to explicitly set a fields attribute on the ModelForm Class.

@kanr
Copy link

kanr commented Oct 17, 2015

@dreaswar Thank you for the reply, I am only just now getting back to my experiementing with AuShada. I am slowly moving towards a working prototype but continue having configuration errors. Currently I am having trouble installing psycopg2 in my virtualenv. If you have any insights on how I can clear my error I would appreciate it.

@dreaswar
Copy link
Owner

dreaswar commented Dec 6, 2015

@kanr , What specific errors are you getting with psycopg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants