forked from wadobo/decide
-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from wadobo/master
Decide 2019/2020 merge
- Loading branch information
Showing
41 changed files
with
1,147 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,3 +99,5 @@ ENV/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
dist: xenial | ||
|
||
services: | ||
- postgresql | ||
addons: | ||
postgresql: "9.4" | ||
before_script: | ||
- psql -U postgres -c "create user decide password 'decide'" | ||
- psql -U postgres -c "create database test_decide owner decide" | ||
- psql -U postgres -c "ALTER USER decide CREATEDB" | ||
language: python | ||
python: | ||
- "3.6" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install codacy-coverage | ||
script: | ||
- cd decide | ||
- coverage run --branch --source=. ./manage.py test --keepdb --with-xunit | ||
- coverage xml | ||
- python-codacy-coverage -r coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
from django.urls import include, path | ||
from rest_framework.authtoken.views import obtain_auth_token | ||
|
||
from .views import GetUserView, LogoutView | ||
from .views import GetUserView, LogoutView, RegisterView | ||
|
||
|
||
urlpatterns = [ | ||
path('login/', obtain_auth_token), | ||
path('logout/', LogoutView.as_view()), | ||
path('getuser/', GetUserView.as_view()), | ||
path('register/', RegisterView.as_view()), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.voting { | ||
margin-top: 20px; | ||
margin-left: 40px; | ||
} |
Oops, something went wrong.