I was trying to create Django-based templates, which I found after a bit of searching on the Django CMS site. But then I went to install it an
i need to create url with this path graphs/<direction>. The direction should be a string because it's the name of some department. i've tried to do this k
I am trying to validate a password against CustomUser fields: email and full_name. All test validations are working except for UserAttributeSimilarityValidator,
I have "Category" model which has multiple parent/child relationship. class Category(models.Model): pass class CategoryParent(models.Model): parent_cat
I have a model like this: class User(AbstractUser): PERMISSION_CHOICES = [ (0, 'boss'), (1, 'leader'), (2, 'bro'), (3, 'sis'
I have a Region and SubRegion ForeignKey in the Country Model. My SubRegion model also has a Region ForeignKey for the Region Model. I am having a hard time dis
I implemented an upload and download button. The upload button functions properly, but when I click the download button it tells me that the file I want to down
I've created a custom user model using AbstractBaseUser. When I try to create a super user using terminal via createsuperuser command. I get in create_superuser
I install django_celery_beat app in Django settings.py file INSTALLED_APPS = [ ..., 'django_celery_beat', ] It has its own locale dir. As I understand I need
I'm writing a Django app to manage sales leads. From the template that lists a page of leads, I want to give the user the ability to search all leads using firs
I have a problem that I just can't figure out. After creating a work order I want to redirect to the detail page of that work order. Here is my models.py class
In my frontend i'm logging into another app's api in the browser, I'm then redirected back to my app, that hits a View in my backend which gets a code from the
models.py from django.db import models class Images(models.Model): def upload_path(instance, filename): return '/images/'.join([filename]) im
I am using react components and to test my code I wrote a quick custom authentication class and defined in the settings for the rest_framework as follow: DEFAUL
<table id="tabledata" class="tablecenter" style=" position: static; top:50%;"> <tr> <th>Username</th> <th>Email</th>
I've setup a relationship using django's ForeignKey against 2 unmanaged tables like so: class Product(BaseModel): publish_name = models.CharField(unique=Tru
I have seemingly redundant code in Django Views which evaluates the same query-set (Model.objects.all()) but with different field names: def overview_view(reque
I have a Django app that requests data from an external API and my goal is to convert that data which is returned as list/dictionary format into a new REST API
I'm writing tests for my djangocms app, first time using selenium to replicate the browser/user. I'm trying to test the login page, user simply fills out the us
I have a simple code like: subprocess.run( ["python3", "action.py", "--options"] ) In action.py I import some packages, perform a small script It