Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
38c77c97
authored
6 years ago
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add djangorestframework
parent
a9706f9c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
7 deletions
+24
-7
.gitignore
+3
-0
Pipfile
+1
-0
Pipfile.lock
+12
-4
recircle/recircle/settings.py
+4
-1
recircle/recircle/urls.py
+4
-2
No files found.
.gitignore
0 → 100644
View file @
38c77c97
.vscode/
recircle/db.sqlite3
This diff is collapsed.
Click to expand it.
Pipfile
View file @
38c77c97
...
@@ -8,6 +8,7 @@ verify_ssl = true
...
@@ -8,6 +8,7 @@ verify_ssl = true
[packages]
[packages]
django = "*"
django = "*"
django-rest-framework = "*"
django-rest-framework = "*"
djangorestframework = "*"
[requires]
[requires]
python_version = "3.6"
python_version = "3.6"
This diff is collapsed.
Click to expand it.
Pipfile.lock
View file @
38c77c97
{
{
"_meta": {
"_meta": {
"hash": {
"hash": {
"sha256": "
a09bc82eaaa2063ffbde673f331dae628eab05409fa7e4c1f298126c72da1569
"
"sha256": "
399c1ec4a42646cf3dc5fbc740bf87ef769275684d2a23790208f3689e5c2c3f
"
},
},
"pipfile-spec": 6,
"pipfile-spec": 6,
"requires": {
"requires": {
...
@@ -18,11 +18,11 @@
...
@@ -18,11 +18,11 @@
"default": {
"default": {
"django": {
"django": {
"hashes": [
"hashes": [
"sha256:
275bec66fd2588dd517ada59b8bfb23d4a9abc5a362349139ddda3c7ff6f5ade
",
"sha256:
7c3543e4fb070d14e10926189a7fcf42ba919263b7473dceaefce34d54e8a119
",
"sha256:
939652e9d34d7d53d74d5d8ef82a19e5f8bb2de75618f7e5360691b6e9667963
"
"sha256:
a2814bffd1f007805b19194eb0b9a331933b82bd5da1c3ba3d7b7ba16e06dc4b
"
],
],
"index": "pypi",
"index": "pypi",
"version": "==2.
1.7
"
"version": "==2.
2
"
},
},
"django-rest-framework": {
"django-rest-framework": {
"hashes": [
"hashes": [
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
"sha256:8a435df9007c8b7d8e69a21ef06650e3c0cbe0d4b09e55dd1bd74c89a75a9fcd",
"sha256:8a435df9007c8b7d8e69a21ef06650e3c0cbe0d4b09e55dd1bd74c89a75a9fcd",
"sha256:f7a266260d656e1cf4ca54d7a7349609dc8af4fe2590edd0ecd7d7643ea94a17"
"sha256:f7a266260d656e1cf4ca54d7a7349609dc8af4fe2590edd0ecd7d7643ea94a17"
],
],
"index": "pypi",
"version": "==3.9.2"
"version": "==3.9.2"
},
},
"pytz": {
"pytz": {
...
@@ -44,6 +45,13 @@
...
@@ -44,6 +45,13 @@
"sha256:d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c"
"sha256:d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c"
],
],
"version": "==2018.9"
"version": "==2018.9"
},
"sqlparse": {
"hashes": [
"sha256:40afe6b8d4b1117e7dff5504d7a8ce07d9a1b15aeeade8a2d10f130a834f8177",
"sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873"
],
"version": "==0.3.0"
}
}
},
},
"develop": {}
"develop": {}
...
...
This diff is collapsed.
Click to expand it.
recircle/recircle/settings.py
View file @
38c77c97
...
@@ -25,7 +25,9 @@ SECRET_KEY = 'xhe8=w50lz82gjb6+z%(rwk2c+1kd!%(iv_s^!tp)*5cnb=-^t'
...
@@ -25,7 +25,9 @@ SECRET_KEY = 'xhe8=w50lz82gjb6+z%(rwk2c+1kd!%(iv_s^!tp)*5cnb=-^t'
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
DEBUG
=
True
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
'vm.niif.cloud.bme.hu'
,
]
# Application definition
# Application definition
...
@@ -37,6 +39,7 @@ INSTALLED_APPS = [
...
@@ -37,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'rest_framework'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
This diff is collapsed.
Click to expand it.
recircle/recircle/urls.py
View file @
38c77c97
...
@@ -14,8 +14,9 @@ Including another URLconf
...
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
,
re_path
,
include
urlpatterns
=
[
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
]
re_path
(
r'^api-auth/'
,
include
(
'rest_framework.urls'
))
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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