Closed ehmatthes closed 9 years ago
Started this in #43, continuing here.
After removing most pathway elements listed above, runserver lists a lot fewer issues than when I ran runserver in #43:
$ python manage.py runserver
Performing system checks...
System check identified some issues:
WARNINGS:
competencies.UserProfile.schools: (fields.W340) null has no effect on ManyToManyField.
competencies.UserProfile.subject_areas: (fields.W340) null has no effect on ManyToManyField.
System check identified 2 issues (0 silenced).
You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.
May 15, 2015 - 16:05:58
Django version 1.8.1, using settings 'opencompetencies.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Should just grep
pathway in the codebase.
Done. Can view entire system for a school. Haven't tried all aspects of the project yet.
I've been mentally debating whether to remove all the forking code while removing the pathways code. It's always hard to remove code you think you might use again, but it's pretty verbose. I'm confident the model can be greatly simplified, which would simplify the approach to forking I tried in the first edition of OC. That's what version control is for, anyway! If I want to use this old code, I can copy it back in.
Remove references to forking in:
Dropped database, rebuilt empty database.
$ manage.py makemigrations competencies
$ manage.py migrate competencies
Complains about contenttypes.
$ manage.py migrate
Worked.
Index page complains about school that doesn't exist. Not using the school anymore, so removing the query for sample_school in views.py for the index view.
Stepping away from this for a bit. Next steps: create a superuser, and at least try to make a school.
Try this before moving on. Not worth testing more, until focusing on the model further.
Sort out UserProfile issues when creating process for new account registration.
I think I went with 2.7 when I was doing the initial version of OC because I wanted to use reportlab, which required 2.7 when I started this work.
Plan: replace current venv with a Python 3 venv, and see if anything breaks.
Upgrade worked, with minor notes:
requirements.txt
, I installed django-toolbelt
. This updated the versions of all dependencies, and eliminated some dependencies. I made a new requirements.txt.print
statement.In a quick look, I didn't see anything obvious. But I'll keep an eye out for this as I'm working on the model, and maybe record some simplifications here.
Tracking these separately in #52.
Opening a separate issue for this, as this is likely to be more involved than I want to work with in this one issue. #51
This is mostly about whether to give users the option of making elements public at this point.
Easy decision: hold off for post-alignment, it's useful to our school right now.
Done!
This is the most significant issue of the alignment so far. We need to: