File tree 6 files changed +32
-16
lines changed
6 files changed +32
-16
lines changed Original file line number Diff line number Diff line change 10
10
/staticfiles /
11
11
12
12
# src
13
- * .sqlite *
13
+ # *.sqlite*
14
14
15
15
.env
16
16
node_modules
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ pip install -r requirements.txt
14
14
python manage.py collectstatic --no-input
15
15
16
16
# Migrate DB
17
- python manage.py makemigrations
18
- python manage.py migrate
17
+ # python manage.py makemigrations
18
+ # python manage.py migrate
Original file line number Diff line number Diff line change 14
14
< h2 class ="text-2xl font-bold text-gray-900 dark:text-white ">
15
15
Sign in to platform
16
16
</ h2 >
17
+ < p >
18
+ < span > ADMIN: admin / Pass12__</ span >
19
+ < br />
20
+ < span > USER: test / Pass12__</ span >
21
+ </ p >
17
22
< form class ="mt-8 space-y-6 " method ="post " action ="# ">
18
23
{% csrf_token %}
19
24
{% for field in form %}
@@ -24,7 +29,8 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
24
29
{% endfor %}
25
30
< div class ="flex items-start ">
26
31
< div class ="flex items-center h-5 ">
27
- < input id ="remember " aria-describedby ="remember " name ="remember " type ="checkbox " class ="w-4 h-4 border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600 ">
32
+ < input id ="remember " aria-describedby ="remember " name ="remember " type ="checkbox "
33
+ class ="w-4 h-4 border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:bg-gray-700 dark:border-gray-600 ">
28
34
</ div >
29
35
< div class ="ml-3 text-sm ">
30
36
< label for ="remember " class ="font-medium text-gray-900 dark:text-white "> Remember me</ label >
Original file line number Diff line number Diff line change 344
344
class ="z-50 hidden my-4 text-base list-none bg-white divide-y divide-gray-100 rounded shadow dark:bg-gray-700 dark:divide-gray-600 "
345
345
id ="dropdown-2 ">
346
346
< div class ="px-4 py-3 " role ="none ">
347
- < p class ="text-sm text-gray-900 dark:text-white " role ="none ">
348
- Neil Sims
349
- </ p >
347
+ {% if request.user.is_authenticated %}
348
+ < p class ="text-sm font-medium text-gray-900 truncate dark:text-gray-300 " role ="none ">
349
+ {{ request.user.email }}
350
+ </ p >
351
+ {% else %}
350
352
< p class ="text-sm font-medium text-gray-900 truncate dark:text-gray-300 " role ="none ">
351
- neil.sims @flowbite.com
353
+ guest.user @flowbite.com
352
354
</ p >
355
+ {% endif %}
353
356
</ div >
354
357
< ul class ="py-1 " role ="none ">
355
358
< li >
368
371
role ="menuitem "> Earnings</ a >
369
372
</ li >
370
373
< li >
371
- < a href ="{% url "signout " %}"
372
- class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white "
373
- role ="menuitem "> Sign out</ a >
374
+ {% if request.user.is_authenticated %}
375
+ < a href ="{% url 'signout' %} "
376
+ class ="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white "
377
+ role ="menuitem "> Sign Out</ a >
378
+ {% else %}
379
+ < a href ="{% url 'signin' %} "
380
+ class ="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-600 dark:hover:text-white "
381
+ role ="menuitem "> Sign In</ a >
382
+ {% endif %}
383
+
374
384
</ li >
375
385
</ ul >
376
386
</ div >
Original file line number Diff line number Diff line change 37
37
</ li >
38
38
{% if request.user.is_authenticated %}
39
39
< li >
40
- < a href ="{% url " profile " %}"
40
+ < a href ="{% url ' profile' %} "
41
41
class ="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 ">
42
42
< svg class ="w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white "
43
43
fill ="currentColor " viewBox ="0 0 20 20 " xmlns ="http://www.w3.org/2000/svg ">
67
67
</ button >
68
68
< ul id ="dropdown-dashboard " class ="hidden py-2 space-y-2 ">
69
69
< li >
70
- < a href ="{% url " tasks " %}"
70
+ < a href ="{% url ' tasks' %} "
71
71
class ="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 "> Tasks</ a >
72
72
</ li >
73
73
< li >
74
74
< a href ="# "
75
75
class ="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 "> Users</ a >
76
76
</ li >
77
77
< li >
78
- < a href ="{% url " charts " %}"
78
+ < a href ="{% url ' charts' %} "
79
79
class ="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 "> Charts</ a >
80
80
</ li >
81
81
< li >
82
- < a href ="{% url " datatables " %}"
82
+ < a href ="{% url ' datatables' %} "
83
83
class ="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 "> Datatables</ a >
84
84
</ li >
85
85
< li >
86
- < a href ="# "
86
+ < a href ="/api/product/ "
87
87
class ="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg pl-11 group hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-700 "> API</ a >
88
88
</ li >
89
89
</ ul >
You can’t perform that action at this time.
0 commit comments