Let's say that in my urls.py I have a url like this: And in one of my templates I use the url tag: This of course outputs /support/ as expected. ...
Let's say that in my urls.py I have a url like this: And in one of my templates I use the url tag: This of course outputs /support/ as expected. ...
I newly started to develop Django. I want to connect my python algorithm and Django web ui so I tried to connect both of them in views.py but I encoun ...
Django problem views.py models.py index.html I try to make post like and unlike button and ı want to show page that how many users liked pos ...
I have two apps using same names in my django project. After configuring namespacing, I still get collision. For example when I visit localhost:8000/n ...
I want to get url parameters as list in django. Say for example, I will add each parameters to url as; mydomain.com/param1/param2/param3/.../paramx ...
This is the urls.py file for the main site in my Django project. Ive got a category table and a country table linked to a product table and I cant get ...
I'm trying to define 4 GET endpoints (max,min,sum,avg) to access by REST. I did this but making 4 views, and I want to know if I can define the 4 meth ...
my friends, this is my first question here. So, I follow the Django documentation and some questions here, but the problem keep happening. I did what ...
Im trying to render login and register view in a single template using variable assignment and if-else. I'm sorry if its a rookie mistake, Im pretty n ...
Code from template Here i extended from basic.html to my people.html Code from urls: code from views: i tried to fix but i got more issues ...
I have a detail view for categories and if i pass in the URL directly it works just fine. But if i want to pass it as a link in my template it gets an ...
I need my django application connect two different URLs to the same view. When I use regular expression, the result is different from what I expect: ...
I want to write a category detail view in order to do so i want to change this function based view into the class based view. My first question: 1. ...
I just discovered a probable BUG in my code that allows user to signup or login action attribute is blank. Here is what i mean login.html In the ...
I'm trying to allow serving files from my media directory, but the media url isn't getting included... here's my code: From a Django shell session: ...
`I have watched a tutorial. But that was an old version of Django 1.1 and now I am using Django 4.1.So there is a problem that is telling me about dja ...
So I have this detailview of Profile model (extended from django user model [onetoone]) in urls Now I wanna pass current logged in users pk in t ...
I want to get the id of a query set that is selected in the admin panel and want this custom action to redirect me to the url having the id in it. How ...
primary key is created automatically for every row in table right, but for users isnt it better to use their username as primary key? or defaults bett ...
Stumped with this one, I need to be able to call an article via a pk or slug, for example user can do https://www.website.com/1 or https://www.website ...