Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
segmentation fault while deploying django app using cpanel
I am having issues in deploying the Django app using cPanel. I am using Python 3.6 and Django 3.1, created my virtualenv, ran pip install -r requirements.txt inside my directory, configured my settings.py for production. After running python manage.py makemigrations, I am getting the following error OpenBLAS blas_thread_init: pthread_create failed for thread 32 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 33 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 34 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 35 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 36 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 37 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 38 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: pthread_create failed for thread 39 of 56: Resource temporarily unavailable OpenBLAS blas_thread_init: RLIMIT_NPROC 35 current, 35 max OpenBLAS blas_thread_init: … -
Safely move model from one app to another in django
How to move django models from one app to another without affecting any data? If possible, provide a step-by-step approach to it. -
datetime picker in django without using forms.py
I want to add a datetime picker input field in my django project. I found this tutorial that offers a few ways but all of them are using forms.py as following: from django import forms class DateForm(forms.Form): date = forms.DateTimeField( input_formats=['%d/%m/%Y %H:%M'], widget=forms.DateTimeInput(attrs={ 'class': 'form-control datetimepicker-input', 'data-target': '#datetimepicker1' }) ) But I am not using forms in my project. I am using the function views. I can't find an example of how to implement a DateTime picker in this way?! any help is appreciated. -
Check if Django model exists in an array
So, i have a set off models in my database. Now i have made a script to webscrape certan items form a website. Now i wanted to delete all items from my database which are deleted inn the website. So what i mean is if an item that i have webscraped is deleted inn the website i want to do the same in my database. How do i check for this using a loop? I was thinking of doing this: items = ItemModel.objects.all() for item in items: if item.tite not in webscrape_item[0]: item.delete Im checking based on the title and deleting if the title does not exist inn the webscrape array. -
django Login page does not load
I am trying to make a login page using built-in Django login features. I created a button on the main page, which should redirect the page to login.html where I can log in. Once I click on the button, the URL changes accordingly(http://127.0.0.1:8000/account/login/), but the page itself(login.html) would not load. Please regard the codes below. Codes for urls.py in the created app ''' from django.conf.urls import include, url from django.contrib import admin from mainApp import views urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^test/', views.test), url(r'^book/', include(('book.urls', 'book'), namespace="PB")), url('', views.mainIndex, name='mainIndex'), url('account/', include("django.contrib.auth.urls")), ] ''' Codes for settings.py ''' import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = ( 'mainApp', 'book', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ) MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', ) ROOT_URLCONF = 'mainApp.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'mainApp.wsgi.application' # Database # https://docs.djangoproject.com/en/1.8/ref/settings/#databases DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.8/howto/static-files/ STATIC_URL = '/static/' LOGIN_URL = '/account/login/' LOGOUT_URL = '/account/logout/' LOGIN_REDIRECT_URL = '/' ''' Finally, this … -
How to deploy Django repository from Github to cpanel for automatic changes
I want to deploy my django website from github to cpanel for automatic update,I have managed to clone the repository in cpanel,The issue is that how do I deal with static files? as I know the static files settings are different from local development to a live server since in cpanel we have to keep them on the folder public_html.So how do I deal with this. -
error when saving data in admin user interface in django
when I enter data into the admin interface to an app in Django using sqlite3 database I got this error OperationalError at /admin/products/product/add/ no such table: main.auth_user__old -
django database is not saving data of contact from details which i have entered
I'm new to dajngo projects and I have created a blog which has app named as "blog".Everything went all right and I stuck at conatct from.when I sumbmit details in contact from and go to djando admin database the contact details are not saved here. This is my contact.html code <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous"> <title>contact us</title> </head> {% load static %} <body style="background-image: url('{% static " img/contact.jpg" %}');background-size: cover;"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script> <div class="container my-3" style="padding:70px 0"> <h3>Contact Us</h3> <form method="post" action="{% url "contact" %}" > {% csrf_token %} <div class="form-group"> <label for="name">Name</label> <input type="text" class="form-control" id="name" name='name' placeholder="Enter Your Name"> </div> <div class="form-group"> <label for="name">Email</label> <input type="email" class="form-control" id="email" name='email' placeholder="Enter Your Email"> </div> <div class="form-group" > <label for="name">Phone</label> <input type="tel" class="form-control" id="phone" name='phone' placeholder="Enter Your Phone Number"> </div> <div class="form-group" > <label for="desc">How May We Help You?</label> <textarea class="form-control" id="desc" name='desc' rows="3"></textarea> </div> <button style=" margin-top: 25px;" type="submit" class="btn btn-success">Submit</button> </form> </div> </body> </html> This is post_detail.html {% extends 'base.html' %} {% block content %} {% load crispy_forms_tags %} <div class="container"> <div class="row"> <div class="col-md-8 card mb-4 mt-3 left top"> <div … -
Can I use variables in crontab in Celery?
I'm using Django + Celery to schedule tasks dynamically. The time for scheduling tasks will be queried from the user database or will be provided by the user dynamically. I'm trying to pass variables to the arguments in the crontab schedule type, but it shows invalid syntax. def clean_time(time): time = time.get("created_at") hh = time.strftime("%H") mm = time.strftime("%M") ss = time.strftime("%S") dd = time.strftime("%d") mnth = time.strftime("%m") yy = time.strftime("%Y") return hh, mm, ss, dd, mnth, yy @app.on_after_configure.connect def start_time(sender, schedule_start_date, **kwargs): hh, mm, ss, dd, mnth, yy = clean_time(schedule_start_date) sender.add_periodic_task(crontab((hour='{}'.format(hh), minute='{}'.format(mm), day_of_month='{}'.format(dd), month_of_year='{}'.format(mnth)), test.s("hello")) @app.task def test(arg): print(arg) -
How to write python script to run run existing task scheduler in Window?
As I see ,I presume that pywin32 is closest to do this task. https://github.com/mhammond/pywin32 but I didn't see a sample in the document Please guide me to use library to run window task scheduler? I am interested in pywin32. I am going to use it to run the window task scheduler through the Django web application ? Or else , is there any package to do for this scenario? Does pywin32 provide some features or method to run window task scheduler? I would like you to guide sample code to do as the following requirement. My job has been created on Window task scheduler already My job is responsible for executing a python file. 2.I would like you to run the job of window task scheduler in view.py on the Django web application I have sent email to ask this https://mail.python.org/mailman/options/python-win32 but no clear answer. -
How to make it such that the block system goes both ways?
I realised that there is a limitation in the blocking system. Basically based on the codes discussed, I have made it such that when I block a user, I will not be able to see his posts in the home feed, in the detail page. I won't be able to add comments or submit anything to his post. But then I realised that the users that we blocked are still able to see my post, my detail page, and add comments/submit things to my posts. This would kind of defeat the purpose of the blocking system. How do I make it such that from the perspective of the person that i blocked, he also cannot view my posts, comment on my post, or submit anything to my post too? models.py class Account(AbstractBaseUser): email = models.EmailField(verbose_name="email", max_length=60, unique=True) username = models.CharField(max_length=30, unique=True) blocked_users = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, related_name='blocked_by_user') views.py where I tried to do the implement block functionality type_of_post = TypeofPostFilter(request.GET, queryset=BlogPost.objects.exclude((Q(author_id__in=request.user.blocked_users.all()) | Q(author = request.user))).order_by('date_updated')) if blog_post.author in user.blocked_users.all(): return redirect(reverse('HomeFeed:detail', kwargs={'slug': slug})) if comment.name in comment.post.author.blocked_users.all(): return redirect(reverse('HomeFeed:main')) views.py for block system: def block_user(request, pk): user = request.user user_to_block = Account.objects.get(pk=pk) user.blocked_users.add(user_to_block) if user_to_block == user: return HttpResponse("You can't block … -
Form in Django does not submit anything
I have an issue that is my form does not submit and because django thinks that it is not valid.... all the things in my html file is matching my forms.py and my model fields .. but I can`t figure out why it is not valid and do not create object. here`s my models.py file : class Profile(models.Model): name = models.CharField(max_length=100) email = models.CharField(max_length=100) phone = models.CharField(max_length=100) summary = models.TextField() degree = models.CharField(max_length=100) school = models.CharField(max_length=100) university = models.CharField(max_length=100) experience = models.TextField() skills = models.TextField() image = models.ImageField(upload_to='images/profile', blank=True, null=True) def __str__(self): return self.name here is my forms.py: from django import forms from .models import Profile class ProfileFormItem(forms.ModelForm): class Meta: model = Profile fields = '__all__' and also my html form: <div class="card-body"> <form method="POST" enctype="multipart/form-data"> {% csrf_token %} <div class="form-row"> <div class="name">Full name</div> <div class="value"> <input class="input--style-6" type="text" name="name"> </div> </div> <div class="form-row"> <div class="name">Email address</div> <div class="value"> <div class="input-group"> <input class="input--style-6" type="email" name="email" placeholder="example@email.com"> </div> </div> </div> <div class="form-row"> <div class="name">Phone number</div> <div class="value"> <input class="input--style-6" type="text" name="phone"> </div> </div> <div class="form-row"> <div class="name">Degree</div> <div class="value"> <input class="input--style-6" type="text" name="degree"> </div> </div> <div class="form-row"> <div class="name">school</div> <div class="value"> <input class="input--style-6" type="text" name="school"> </div> </div> <div class="form-row"> <div class="name">University</div> … -
Django - MySQL Server has gone away
I'm using Django version 1.7 and quite a few times I see the error below: OperationalError: (2006, MySQL server has gone away) I've defined CONN_MAX_AGE = 200 in settings and wait_timeout = 300 in MySQL's config. Now as per my understanding from the doc, Django should drop the connection after 200 seconds and establish a new one, and therefore I should not get this error. I have seen a lot of discussion around this error but couldn't find an answer for why Django is not taking care of this. Am I missing something? -
Pycharm regex to replace Django's statics
I'm trying to use Pycharm's regex find and replace to turn all links such as <link rel="apple-touch-icon" sizes="180x180" href="assets/images/favicons/logo1.png"> into <link rel="apple-touch-icon" sizes="180x180" href="{% static 'assets/images/favicons/logo1.png' %}"> I tried the answer by Willem: \b(src|href)="([^"]*)"\b and as patttern to replace: $1="{% static '$2' %}" but it's not working EDIT: I'm using Pycharm version 2020.1 -
Why list data turned to str in form validator in Django?
I'm using FBV in django like below: def handle_recipient(request, pk): ... if request_method == "PATCH": recipient_data = request.json recipient = recipient_query.first() print(recipient_data['sale_name'], type(recipient_data['sale_name'])) # [12, 2333] <class 'list'> f = BaseMdRecipientForm(recipient_data) if f.is_valid(): ... And my forms defined as: def validate_char(char_value): print(char_value, type(char_value)) # [12, 2333] <class 'str'> if not isinstance(char_value, str): raise ValidationError( message="not a valid string value", code="invalid" ) class BaseMdRecipientForm(forms.Form): sale_name = forms.CharField(required=True, max_length=128,validators=[validate_char]) abbreviation = forms.CharField(max_length=64, required=True) My confusion is that the type of sale_name I submitted {"sale_name":[12,2333],"dsds":"" } as a format of application/json is always different in form validator. Can you help telling me where django make this transformation? -
Monkey patch all the request from Django to verify=false
I am making a request using sendgrid API but unfortunately internally sendgrid API use verify=True I want to monkey patch all the outgoing request from my Django application and set verify=False -
Django save method is not working as expected
I overrode Django save method. On saving new Discount item, print statements are executed but update_discount method is not called. I'm using Admin panel to save Discount items. I want to call same update_discount method on Django update method too. CODE: class Discount(models.Model): start_date = models.DateField(default=now) end_date = models.DateField() product = models.ForeignKey(Product, on_delete=models.CASCADE) disc_per = models.PositiveIntegerField(default=None) class Meta: unique_together = ('start_date', 'end_date', 'product') def __str__(self): return str(self.start_date) + '-' + str(self.end_date) + '-' + str(self.product) def save(self, *args, **kwargs): print('saved.') Discount.update_discount() print('updated discount.') super().save(*args, **kwargs) @staticmethod def update_discount(): discounts = Discount.get_all_discounts() products = Product.get_all_products() today = date.today() # Reset discounted prices of all products products.update(disc_price=None) # Apply discount on products if today is sale for discount in discounts: product = Product.get_product_by_id(discount.product.id) if (today >= discount.start_date) and (today <= discount.end_date): per = discount.disc_per price = discount.product.price disc_price = Discount.cal_disc_price(per, price) product.update(disc_price=disc_price) else: product.update(disc_price=None) OUTPUT: saved. updated discount. -
Django check array inside array and change template
i have array line this setime = ["00:00", "00:30", "01:00", "01:30", "02:00", "02:30", "03:00", "03:30", "04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00", "18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00", "23:30"] and i want check in view myListTime= checkDateTime.objects.all().filter(Teacher_id = 1) i tried in template {% for i in setime %} <ul> {% for j in myListTime %} {% if j in i %} <li class="active">{{ i }}</li> {% else %} <li>{{ i }}</li> {% endif %} {% endfor %} </ul> {% endfor %} i need result like this matched li have active class -
Django template datatableview stopped working: datatableview is not defined, property assignment expected
I am upgrading a django app: Django==1.8.6 django-datatable-view==0.8.2 the app compiles and I can login into it but all tables are empty and in the console I can see the error: Uncaught ReferenceError: datatableview is not defined at (index):409 Here my code: the error on the console is generated by the following line in datatable_inint.html: datatableview.auto_initialize = false; From the picture you can see that there are also several compiler's warning. If I hover on the '{%' symbol I can see the javascript warning: Property assignment expected Any idea why my code stopped working? -
How to upload a file from local machine to a particular directory in aws EC2 instance?
I am developing a web app that takes csv files and stores them in my aws instance. I am using django to create my web app. I am having trouble connecting to aws instance from my django app. -
How can I automatically add the blogpost author into the member list?
Everytime a blogpost is added, a memberlist will be generated. How do I automatically make it such that the author of the post will be included in the member list? models.py class BlogPost(models.Model): chief_title = models.CharField(max_length=50, null=False, blank=False, unique=True) body = models.TextField(max_length=5000, null=False, blank=False) members = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, related_name="members") author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) class Account(AbstractBaseUser): email = models.EmailField(verbose_name="email", max_length=60, unique=True) username = models.CharField(max_length=30, unique=True) views.py from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin class MemberListView( LoginRequiredMixin, UserPassesTestMixin, BlogPostMixin, DetailView ): login_url = 'must_authenticate' template_name = "HomeFeed/membersof_yourpost.html" def test_func(self): post = self.get_object() return self.request.user in post.members.all() -
Django Rosetta wont translate the whole page
I am using Django Rosetta to translate from en-us to Ar(Arabic), everything seems translated just some strings are missing but I cannot find what is wrong. The .po document generates in the beginning this lines with the fuzzy and the empty string # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr ""` After that start to appear the correlation of everything and just are missing those not translated obviously but neither appear the strings so I guess that not even try to translated because are not there. Those are the logs of the ones untranslated, and this is a section of the code .htm for the first form in the django Rosetta page taht is not translated {% extends "views/forms/base.htm" %} {% load i18n %} {% block form_content %} <!-- Resource Type CRUD Form --> <hr class="divider arches-RDM-divider"> <div id="site_ID-section"> <!-- Name CRUD Form --> <div class="row"> <div class="col-xs-12"> <div class="padding-left-10"> <dl> <!-- Title --> <dt> <h5 id="arches-names-form" class="section-headline">{% trans "National ID" %}</h5> </dt> <!-- Form --> <dd> <div class="row"> <div class="col-xs-12 hidden-xs"> … -
serializer.save is not update in django
I am using django rest frame work. I made a bulk create function, but it doesn't update automatically. just it create works. This is my code serializers.py from rest_framework import serializers from .models import Stock class StockSerializer(serializers.ModelSerializer): listedDate = serializers.DateTimeField(format="%Y-%m-%d",input_formats=['%Y%m%d']) class Meta: model = Stock fields = '__all__' model class Stock(models.Model): code = models.CharField(max_length=64, primary_key=True) name = models.CharField(max_length=128) cnt = models.BigIntegerField() construction = models.CharField(max_length=64) listedDate = models.DateTimeField() lastPrice = models.CharField(max_length=64) state = models.CharField(max_length=64) class Meta: db_table = 'stock' def __str__(self): return self.name viewsets.py from rest_framework.response import Response from rest_framework import viewsets, status from util import setEnvironment from . import models, serializers class StockViewset(viewsets.ModelViewSet): queryset = models.Stock.objects.all() serializer_class = serializers.StockSerializer def create(self, request, *args, **kwargs): stock_data = request.data.get("data") auth = request.META.get('HTTP_AUTHENTICATION') api_key = setEnvironment.get_secret("API_AUTH_KEY") if auth != api_key: return Response(status=status.HTTP_401_UNAUTHORIZED) serializer = self.get_serializer(data=stock_data, many=True) serializer.is_valid(raise_exception=True) self.perform_create(serializer) headers = self.get_success_headers(serializer.data) print(serializer.data) return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers) def perform_create(self, serializer): serializer.save() I think if you call perform_create in viewsets.py, you need to save or update it. As a result, i get an error saying that the same code value exists. Why doesn't the update automatically work even though I have a primary key in db? -
Best way to assign a list of integers to a key in redis using Django
I'm completely new to redis using django. All I want to do is store a list of IDs from DB into the redis server in the format: name@example.com : [100, 99, 98, 97, 96] The above key value pair should be accessible by any api in the same project. Can we use LPUSH methodologies of redis in django to achieve the above goal? I referred the below links and I'm still confused and stuck on the approach that I should take. https://realpython.com/caching-in-django-with-redis/ https://docs.djangoproject.com/en/3.1/topics/cache/ I've read somewhere that we cannot store array of integers in redis. They need to be strigified. What is the best way to achive the above goal? using StrictRedis inside utils.py or using the django's built in cache library? Please guide me through the best doable way. -
Dropdown menu is side navigation not working in React.js component
I'm trying to create a Side Navigation Component from a bootstrap template called Admindek. But it is not working when it comes in Dropdown Menu. Sample Dashboard with Side nav Here's my code: SideNavComp.js: require('../../config'); import React , { useState, useEffect } from "react"; import ReactDOM from "react-dom"; function SideNavMain(props){ return ( <nav className="pcoded-navbar"> <div className="nav-list"> <div className="pcoded-inner-navbar main-menu"> <ul className="pcoded-item pcoded-left-item"> <li className="pcoded-hasmenu"> <a href="#!" className="waves-effect waves-dark"> <span className="pcoded-micon"> <i className="feather icon-pie-chart"></i> </span> <span className="pcoded-mtext">Charts</span> </a> <ul className="pcoded-submenu"> <li> <a href="/" className="waves-effect waves-dark"> <span className="pcoded-mtext">Google Chart</span> </a> </li> <li> <a href="/" className="waves-effect waves-dark"> <span className="pcoded-mtext">ChartJs</span> </a> </li> </ul> </li> </ul> </div> </div> </nav> ); } ReactDOM.render(<SideNavMain/> , document.getElementById('side_nav')); config.js: // popper window.Popper = require('popper.js'); // jquery window.$ = window.jQuery = require('jquery/src/jquery'); // bootstrap require('bootstrap'); Base Html: <!DOCTYPE html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> {% load static %} <head> <title>AFD PORTAL | Dashboard</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="icon" href="{% static 'images/sra_logo_old.png' %}" type="image/x-icon"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Quicksand:500,700" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="{% static 'admindek/css/bootstrap.min.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'admindek/css/waves.min.css' %}" media="all"> <link rel="stylesheet" type="text/css" href="{% static 'admindek/css/themify-icons.css' %}"> <link rel="stylesheet" type="text/css" href="{% static 'admindek/css/font-awesome.min.css' %}"> <link rel="stylesheet" …