diff --git a/.gitignore b/.gitignore index f0323ce..d3088a0 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,6 @@ webpack-stats.json # Macos .DS_Store + +#visualstudio code +.vscode/* diff --git a/README.md b/README.md index 3127214..93abc2e 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ N.B. If for dev don't forget to create a superuser `$ python manage.py createsup ``` $ python manage.py migrate - $ python manage.py loaddata fixtures/init.json $ python manage.py runserver ``` @@ -34,6 +33,20 @@ Also don't forget to bundle the javascript. $ npm run build # For prod ``` +## troubleshooting + +1. If `RelatedObjectDoesNotExist: User has no member` after creating a superuser: +- open a django shell +- check if there is member: ```Member.objects.all()``` +- if there is a(or plus) members, for each member: +``` +a = Member() +a.user = User.objects._insert_selection_method() +a.save() +``` +Attention: you could have problems if you reuse the same variable. + + ## License This code is under the GPL license (Giant Penis License). The complete text is in the `LICENSE.txt` file. diff --git a/requirements.txt b/requirements.txt index 11bf4c3..bfb11cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,10 +3,10 @@ django-extensions raven Pillow -django-webpack-loader +django-webpack-loader #<0.6.0 # Payments -mollie-api-python +mollie-api-python<2.0 # For testing pytest @@ -21,7 +21,7 @@ coverage django-extra-views django-materializecss-form fuzzywuzzy -djangorestframework +djangorestframework<3.10 metron django-debug-toolbar django-sekizai @@ -33,7 +33,7 @@ django-tinymce django-recaptcha # Wiki -wiki>=0.3b3 +wiki>=0.3b3,<0.5 # Calendar icalendar