Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
51720f4c
Commit
51720f4c
authored
Aug 02, 2019
by
Kenzo-Hugo Hillion
♻
Browse files
Start cleaning backend and moving account to API
parent
802c9c13
Changes
10
Hide whitespace changes
Inline
Side-by-side
backend/metagenedb/ap
ps/accounts
/__init__.py
→
backend/metagenedb/ap
i
/__init__.py
View file @
51720f4c
File moved
backend/metagenedb/ap
ps
/accounts/
migrations/
__init__.py
→
backend/metagenedb/ap
i
/accounts/__init__.py
View file @
51720f4c
File moved
backend/metagenedb/api/accounts/migrations/__init__.py
0 → 100644
View file @
51720f4c
backend/metagenedb/ap
ps
/accounts/tests.py
→
backend/metagenedb/ap
i
/accounts/tests.py
View file @
51720f4c
File moved
backend/metagenedb/ap
ps
/accounts/urls.py
→
backend/metagenedb/ap
i
/accounts/urls.py
View file @
51720f4c
...
...
@@ -8,17 +8,17 @@ from rest_framework_jwt.views import (
urlpatterns
=
[
re_path
(
r
'^
auth/
obtain_token/'
,
r
'^obtain_token/'
,
obtain_jwt_token
,
name
=
'api-jwt-auth'
),
re_path
(
r
'^
auth/
refresh_token/'
,
r
'^refresh_token/'
,
refresh_jwt_token
,
name
=
'api-jwt-refresh'
),
re_path
(
r
'^
auth/
verify_token/'
,
r
'^verify_token/'
,
verify_jwt_token
,
name
=
'api-jwt-verify'
),
...
...
backend/metagenedb/api/urls.py
0 → 100644
View file @
51720f4c
from
django.contrib
import
admin
from
django.urls
import
include
,
path
urlpatterns
=
[
path
(
'auth/'
,
include
(
'metagenedb.api.accounts.urls'
)),
path
(
'catalog/'
,
include
(
'metagenedb.apps.catalog.urls'
))
]
\ No newline at end of file
backend/metagenedb/apps/accounts/apps.py
deleted
100644 → 0
View file @
802c9c13
from
django.apps
import
AppConfig
class
AccountsConfig
(
AppConfig
):
name
=
'accounts'
backend/metagenedb/apps/catalog/urls.py
View file @
51720f4c
...
...
@@ -4,7 +4,7 @@ from . import views
urlpatterns
=
[
re_path
(
r
'^
api/
genes/$'
,
views
.
gene_list
,
name
=
'genes'
),
re_path
(
r
'^
api/
genes/(?P<gene_id>.*)$'
,
views
.
gene_detail
),
re_path
(
r
'^
api/
gene_length$'
,
views
.
gene_length
,
name
=
'gene_length'
),
re_path
(
r
'^genes/$'
,
views
.
gene_list
,
name
=
'genes'
),
re_path
(
r
'^genes/(?P<gene_id>.*)$'
,
views
.
gene_detail
),
re_path
(
r
'^gene_length$'
,
views
.
gene_length
,
name
=
'gene_length'
),
]
backend/metagenedb/settings/django.py
View file @
51720f4c
...
...
@@ -10,7 +10,6 @@ environ.Env.read_env(root('.env')) # reading .env file
INSTALLED_APPS
=
[
'metagenedb.apps.catalog'
,
'metagenedb.apps.accounts'
,
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
...
...
backend/metagenedb/urls.py
View file @
51720f4c
...
...
@@ -18,7 +18,6 @@ from django.urls import include, path
urlpatterns
=
[
path
(
''
,
include
(
'metagenedb.ap
ps.accounts
.urls'
)),
path
(
'
api/
'
,
include
(
'metagenedb.ap
i
.urls'
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'catalog/'
,
include
(
'metagenedb.apps.catalog.urls'
))
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment