Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
90 views

I'm working on a Django project (version 5.2.6) and facing an issue with the student registration view. The login and logout views work perfectly, but the registration view (StudentRegistrationView) ...
Alireza Mazaheri's user avatar
0 votes
0 answers
47 views

I’m using Django with django-tenants and django-tenant-users to manage multi-tenant accounts. I’m having an issue when creating a new tenant: When I try to create a new user + its tenant through my ...
Oumar Coumaré's user avatar
0 votes
1 answer
86 views

I have a Django 4.2 app with Postgres DB and REST API. My urls.py contains this path in urlpatterns: path('create/<int:pk>/<str:name>/', ComponentCreate.as_view(), name='create-component') ...
Paul Sandie's user avatar
3 votes
1 answer
99 views

I have a library website with a database of books and their copies. Book and BookInstance have a one-to-many relationship: each BookInstance has a foreign key to Book. I show detailed information ...
Artem's user avatar
  • 31
0 votes
1 answer
53 views

I am trying to omit the URL path for an action in a ViewSet like @action(detail=False, methods=['patch'], url_path='') def update_current_user(self, request): But when I give url_path as an empty ...
Emre Tapcı's user avatar
  • 1,938
0 votes
1 answer
70 views

I was creating my api using django restframework. I am using simple jwt for authentication. The tokens are generated after user login via his/her email and password but before login email must be ...
Benedicto macha's user avatar
1 vote
1 answer
46 views

Here is my forms.py code: from .models import User class userRegistrationForm(forms.ModelForm): password = forms.CharField(widget = forms.PasswordInput()) confirm_password = forms....
ADAN SHAHID's user avatar
0 votes
1 answer
144 views

Django 5.1 introduced the LoginRequiredMiddleware. This comes with the companion decorator login_not_required() for function-based views that don't need authentication. What do I do for a class-...
Zags's user avatar
  • 41.9k
0 votes
1 answer
35 views

I'm developing a Django project that sets user registrations to is_active = false with activation being controlled by an admin controller. I have a form that lists each un-activated user with 2 radio ...
Doug Conran's user avatar
1 vote
1 answer
56 views

I'm trying to be able to search chat groups by looking up the chatroom name. I'm using Django Q query... models.py class ChatGroup(models.Model): group_name = models.CharField(max_length=128, ...
Chris Harden's user avatar
0 votes
1 answer
38 views

I have module that responsible for update insurance data the module job : takes data from csv takes the values and validate it and then update for empty columns within the sheet it will keeps the old ...
Fady Essam's user avatar
0 votes
1 answer
31 views

View def work_entry(request): if request.method == "POST": form = WorkHoursEntryForm(data=request.POST) if form.is_valid(): form.save() return ...
ZaneColeRiley's user avatar
1 vote
1 answer
32 views

def index(request): game_data = GameDataEntry() update_progress = ProjectProgressEntry() work_hours = WorkHoursEntry() if request.method == "GET": form = ...
ZaneColeRiley's user avatar
0 votes
0 answers
62 views

I've inherited a project initially developed in Django 1.11.8. Unfortunately, the original team left without providing any documentation, and there are minimal comments in the code. I'm currently ...
Alejandro Mestre Argudin's user avatar
0 votes
0 answers
49 views

The problem is that i dont see any print or log messages in my views.py , which made me to a conclusion that that method is not method is not being called. What i want to is to cancel subscription of ...
Shahbaz Ahmad's user avatar
0 votes
3 answers
67 views

'm working on a Django To-Do app, and I'm trying to implement an edit feature where users can modify a task's category and importancy. I have an edit.html template that contains a form, and when I ...
REDA's user avatar
  • 1
0 votes
1 answer
47 views

I have a model with 3 Charfields with choices, I am struggling to render the choices in my html page. On the html page, I had a card color coded between 3 colors. Instead of rendering based on ...
menzi mabuza's user avatar
0 votes
1 answer
64 views

Hello I'm rebuilding my inventory application with the use of django forms and jinja template syntax I can't get the form to send a post request. here's my form in the template {% extends "...
Jacob Mutale's user avatar
2 votes
2 answers
127 views

so i am running this code def login_or_join(request): if request.method == "POST": option = request.POST.get("option") print('post request recieved') ...
CalebatWaterwash's user avatar
0 votes
0 answers
50 views

I'm trying to create a form that retrieves all objects for one table (students) in the database and let the user select which one of them they want to pick to send an email. Right now I'm not able to ...
mop's user avatar
  • 95
0 votes
1 answer
51 views

I have a simple Django project that consists of 3 datasets: Members --< mem_ev >-- Events such that any Member can go to any number of events and any event can have many members (ie a classic ...
Doug Conran's user avatar
2 votes
1 answer
88 views

Despite entering the correct credentials, I am consistently redirected back to the login page instead of being granted access to the Products page. This issue persists even though the credentials are ...
Hardik Jain's user avatar
1 vote
1 answer
43 views

I have a django project where I have some database tables. One of the database tables is designed to store messages and their titles. This helps me to create/alter these messages from my django-admin. ...
user3282758's user avatar
  • 1,493
0 votes
1 answer
118 views

I am using HTMX with Django to submit a contact form without refreshing the page. When the form has errors, my backend correctly returns the contact_messages.html template, but the errors do not ...
Eric Gutierrez's user avatar
0 votes
1 answer
106 views

I've been facing an issue with my Django login form. Despite providing the correct credentials, the form consistently returns as invalid. Here’s a detailed description of my setup and the problem I’m ...
Hardik Jain's user avatar

1
2 3 4 5
486