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

Django2friendly #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,6 @@ webpack-stats.json

# Macos
.DS_Store

#visualstudio code
.vscode/*
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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.
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,7 +21,7 @@ coverage
django-extra-views
django-materializecss-form
fuzzywuzzy
djangorestframework
djangorestframework<3.10
metron
django-debug-toolbar
django-sekizai
Expand All @@ -33,7 +33,7 @@ django-tinymce
django-recaptcha

# Wiki
wiki>=0.3b3
wiki>=0.3b3,<0.5

# Calendar
icalendar
Expand Down