I'm using drf-yasg to add swagger auto schema to my endpoints. The swagger-ui is being visible at /api/v1/swagger/ At my local setup this link is working fine a
I am trying to filter data on based of UUIDAutoField in an API using Django. I am using PostgreSQL but while sending data from mobile app I have a string and th
i looked at other questions regarding this issue and their problems were in the REST_FRAMEWORK = ... values in settings.py file . is there any error in mine ? I
I would like to create a custom queryset for my User model. However, I cannot simply use objects = UserQuerySet.as_manager() since the standard Django User mode
I have a checkboxselectmultiple on an m2m model field in an ModelForm that is required - meaning at least one of the choices must be selected. I am using the b
Anyone know what could be causing this error I'm getting? Most of the other code, which works the exact same way, works perfectly. However, this button doesn't
This is my code. I want the items to be displayed horizontally. I've tried changing the col-md-3 and still no luck. <title>Document</title> <
So i want to upload file but only sent to locals storage NOT DATABASE too. But i don't know how to make custom forms. suddenly, here's my models.py : from djang
I'm making a web app that keeps tracks of a small business. For that purpose I have two models designed in my app. One of which is all the storage information a
I've created a custom admin view as documented here. class MyAdmin(admin.ModelAdmin): def get_urls(self): urls = super().get_urls() my_urls
How do i solve the above error which shows up not during the makemigrations but during migrate in Django. class Comment(models.Model): #comment_id=models.I
I have been looking for information on the web about how set values in forms of django but it has been really difficult. I need to put "Inicio" in the field "Or
Code: {% if request.session.message %} <div class="alert alert-warning alert-dismissible fade show" role="alert"> <i class="bi bi-check2-circle">
In admin all CKEditor option is showing and working properly. I can upload image in main admin dashboard. But in App in Image "Uoload" option is not showing. Pl
I keep getting this traceback (pythonApp) D:\task_trackv2>python manage.py makemigrations D:\task_trackv2\apps_config\settings.py D:\pythonApp\lib\site-pack
I have a view inheriting from LoginRequiredMixin, TemplateView, which renders some data using the admin/base_site.html template as the base. I treat it as a par
I am new to web frameworks and I have designed small website using DJango-3.1.7. I am trying to deploy DJango website on Apache server in Windows 10 platform bu
I am trying to access a Jupyter Notebook created with the shell_plus command from django-extensions in a Docker container. docker-compose -f local.yml run --rm
How can I make a Django User email unique when a user is signing up? forms.py class SignUpForm(UserCreationForm): email = forms.EmailField(required=True)
That's my user settings in vscode { "python.pythonPath": "/Users/cristiano/miniconda3/envs/django-rest-2/bin/python", "python.linting.pylintEnabled": true,