Closed rnegron closed 6 years ago
@rnegron I was not expecting this at all, thank you! Will test it out now. Hopefully we can make it to v2.* 😄!
We should probably be able to use django.contrib.postgres.search
to get rid of djorm_pgfulltext
Yes, Django 2 compatibility shouldn't be too hard to accomplish! I was thinking that getting notaso running on 1.11 would make it easier to work on important bug fixes and other stuff (i.e. testing) without worrying about working on an unsupported platform.
I'm not too familiar with postgres features, but I'll take a look soon and report back.
@rnegron made some improvements in #101. Check them out if you like.
WIP Django 1.11 update (#71)
I got notaso running on Django 1.11 on my local machine using
docker-compose up
. The hardest part of the process was finding the right package compatibility. I manually tested the "core" features: Creating model instances from the Admin site and from the frontend, site navigation and hyperlinks, static file serving, account registration and login/logout.Notable changes made to the codebase:
Removed
django.conf.urls.patterns
importsRemoved
admin.autodiscover()
from root urlconfRemoved
{% load url from future %}
from all templates that had itRemoved
south
fromINSTALLED_APPS
Removed
'allauth.account.context_processors.account'
and'allauth.socialaccount.context_processors.socialaccount'
fromTEMPLATE_CONTEXT_PROCESSORS
Changed
urlpatterns
on all apps to lists ofdjango.conf.urls.url()
instancesChanged
ACCOUNT_USER_MODEL_USERNAME_FIELD
in settings from 'email' to NoneMigrated template settings to the new TEMPLATE settings format
Changed
rest_framework_swagger
url imports methodFixed small typo in
universities.models
Added
'debug_toolbar.middleware.DebugToolbarMiddleware'
toMIDDLEWARE_CLASSES
Added adminer to
docker-compose.yml
Modified
docker-entrypoint.sh
syncdb
withmakemigrations
andmigrate
collectstatic
step before migrationsModified
README.md
to reflect new database migration commandsUpdated migration files to new ones created from the
makemigrations
commandNotable Package changes
Updated
Django
from 1.6.5 to 1.11.5Updated
djangorestframework
package from 3.2.5 to 3.6.3 (did not update further due to compatability issues)Updated many other django related packages
Changed
psycopg2
package topsycopg2-binary
Removed
argparse
packageRemoved
South
packageNotes
List of incompatabilities and deprecations from Django 1.7 to Django 1.11: