logout link fixed, add_category only for admin
This commit is contained in:
parent
2bbcc3050a
commit
4145694f2f
@ -10,7 +10,7 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% load account %}
|
||||
<!--Navbar-->
|
||||
<div class="navbar">
|
||||
<div class="container flex">
|
||||
@ -39,7 +39,9 @@
|
||||
<div class="container">
|
||||
<a href="{% url 'events' %}"><div class="btn btn-list">Zobacz Wydarzenia</div></a>
|
||||
<a href="add_event/"><div class="btn btn-list">Stwórz Wydarzenie</div></a>
|
||||
{% if user.username == "admin" %}
|
||||
<a href="add_category/"><div class="btn btn-list">Stwórz Kategorie</div></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
Binary file not shown.
@ -146,7 +146,9 @@ if DEBUG:
|
||||
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
|
||||
STATIC_URL = '/static/'
|
||||
LOGIN_REDIRECT_URL = '../../events'
|
||||
LOGOUT_REDIRECT_URL = '../../events/'
|
||||
ACCOUNT_LOGOUT_REDIRECT_URL = '../../events'
|
||||
|
||||
|
||||
SESSION_COOKIE_SECURE = False
|
||||
#STATICFILES_DIRS = [
|
||||
# os.path.join(BASE_DIR, 'events/highneed_react/build/static'),
|
||||
|
3
highneed_react/.vs/ProjectSettings.json
Normal file
3
highneed_react/.vs/ProjectSettings.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"CurrentProjectSetting": null
|
||||
}
|
BIN
highneed_react/.vs/highneed_react/v16/.suo
Normal file
BIN
highneed_react/.vs/highneed_react/v16/.suo
Normal file
Binary file not shown.
BIN
highneed_react/.vs/slnx.sqlite
Normal file
BIN
highneed_react/.vs/slnx.sqlite
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user