Commit fad9614f authored by Dominik Rosiek's avatar Dominik Rosiek

jest ok

parents a368e8dc 020e7aaf
......@@ -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
......
......@@ -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">
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment