Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BeHub-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
BeHub-web
Commits
fad9614f
Commit
fad9614f
authored
Nov 22, 2015
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Plain Diff
jest ok
parents
a368e8dc
020e7aaf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
settings.py
BeHub/BeHub/settings.py
+4
-4
dashboard.html
BeHub/Hub/templates/user_panel/content/dashboard.html
+3
-2
views.py
BeHub/Hub/views.py
+1
-1
No files found.
BeHub/BeHub/settings.py
View file @
fad9614f
...
...
@@ -46,9 +46,9 @@ INSTALLED_APPS = (
MIDDLEWARE_CLASSES
=
(
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.SessionAuthenticationMiddleware'
,
#
'django.middleware.csrf.CsrfViewMiddleware',
#
'django.contrib.auth.middleware.AuthenticationMiddleware',
#
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.middleware.clickjacking.XFrameOptionsMiddleware'
,
)
...
...
@@ -57,7 +57,7 @@ REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES'
:
(
'rest_framework.permissions.AllowAny'
,),
'DEFAULT_FILTER_BACKENDS'
:
(
'rest_framework.filters.DjangoFilterBackend'
,),
'DEFAULT_AUTHENTICATION_CLASSES'
:
(
'rest_framework.authentication.SessionAuthentication'
,
#
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_PAGINATION_CLASS'
:
'rest_framework.pagination.LimitOffsetPagination'
,
'PAGE_SIZE'
:
10
...
...
BeHub/Hub/templates/user_panel/content/dashboard.html
View file @
fad9614f
...
...
@@ -53,8 +53,9 @@
<div
class=
"modal-body"
id=
"modal-content"
>
<form
action=
"/login/"
method=
"post"
class=
"form-signin"
>
<input
id=
"name"
type=
"text"
class=
"form-control"
placeholder=
"Nazwa projektu"
required
autofocus
name=
"name"
>
<textarea
class=
"form-control"
id=
"desc"
type=
"description"
id=
"article_content"
name=
"content"
placeholder=
"Zawartosc"
maxlength=
"140"
rows=
"7"
></textarea>
<input
type=
"text"
class=
"form-control"
placeholder=
"Nazwa projektu"
required
autofocus
name=
"name"
>
<textarea
class=
"form-control"
type=
"description"
id=
"article_content"
name=
"content"
placeholder=
"Zawartosc"
maxlength=
"140"
rows=
"7"
></textarea>
</form>
</div>
<div
class=
"modal-footer"
id=
"modal-footer"
>
...
...
BeHub/Hub/views.py
View file @
fad9614f
...
...
@@ -151,7 +151,7 @@ def main_page(request):
def
dashboard
(
request
):
context
=
RequestContext
(
request
)
user_projects
=
UserProject
.
objects
.
filter
(
author
=
request
.
user
)
user_projects
=
UserProject
.
objects
.
filter
(
author
=
request
.
user
)
data
=
{}
data
[
'user_projects'
]
=
user_projects
data
[
'user_id'
]
=
request
.
user
.
id
...
...
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