Jwalant
vikram
hi I am facing an issue with django ... view.py
Updates done in the database or file level is not getting reflected on the website without restart of django services ....while no buffering has been configured?
any clue?
vikram
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',
],
},
},
]
vikram
and my hosting is done on shared server
vikram
and the views.py is function based. (no SQLALCHAMY)
Ray_Beast
Danil
Hello, I'm working for a project where users profiles are involved and advanced seraches are performed over them. Aside from the search itself, the goal is to make a history of these searches, corresponding to each user, so the website is able to remember individual past searches and learn from them. The logic is the same you find in Amazon when you read "who buy ProductA also buy ProductB".
For the history, I could use a multidimensional array where each row corresponds to a single user's search and which will contains flags mapping to the actual data. If a profile contains 5 fields, location, age, eyes color, hair color and gender, I could define an array where each element maps to each one of these elements and if they appear in a search they are set to 1. Or I could perhaps put the actual values in the search_history array and, when finished, save it in a database table named serach_history.
What is the best way to do it? Putting the same values that a profile accepts in serch_history would maybe result in duplicate or redundant data. Is there a better/faster way to do it?
Since I never worked on this kind of problem, I would like to investigate a little before proceding to figure out the solution myself from scratch. But I have no idea about where I could find this kind of documentation. Do you have any idea?
Ameer
Hii
Ameer
I have a one question can anyone help me
Ameer
I want to create a new user registration page and when user fill the all details it will store in n Excel sheet is it possible
1
Any one can give django course from basic I'm beginner please
👑 Dharmzeey
👑 Dharmzeey
Ameer
Alejandro Alomia
How can I do something like this in my API?
"films": [
"https://swapi.dev/api/films/1",
"https://swapi.dev/api/films/2",
"https://swapi.dev/api/films/3",
"https://swapi.dev/api/films/4",
]
Sravya
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 62: ''vote'', expected 'elif', 'else' or 'endif'. Did you forget to register or load this tag?
https://pastebin.com/kTbvZdMQ
Sravya
Sravya
that is in my urls.py bro
💻
Hello ,
I have a question that I hope you will solve. I need to make my django view to be accessible by user again in the same browser 10 days after he submit it. In the view it is represented a form with POST method.
Jonny
Abhie
How to update imagefield from views.py
Jonny
Abhie
Dude i just asked general ques
Alejandro Alomia
Django with rest_framework
Jonny
Abhie
Like i was using objectname.fieldname = cv2.imread(path,img)
objectname.save(update_field=['fieldname']))
Abhie
Didn't wrk tht
So i ask
Jonny
send screenshot
Maxim
send screenshot
don't give bad advises
screenshots are forbidden here
Jonny
Maxim
why?
because the code is text
𝖇𝖎𝖌𝖟𝖟𝖍
And use codeblocks 😭
𝖇𝖎𝖌𝖟𝖟𝖍
Stop sending as plain text
You can also upload on pastemyst and other services like that
𝖇𝖎𝖌𝖟𝖟𝖍
But yeah screenshots are bad
Hasan
hi
what's the best way to stor list of string in django models?
I dont need other table
just want to store tags of article
Abhie
https://linkode.org/#zJvNPHTNrjYFiMGYIE4Ar7
Abhie
{% Mohammed ALKHAFAJI %}
Hi
Can i add a button in model
and see this button in admin panel with each line ?
Deleted
Radzivon
I have a Django app and want to load data from a URL, but I have a problem:
"...
Cannot assign "99": "Photo.albumId" must be a "Album" instance.
Cannot assign "100": "Photo.albumId" must be a "Album" instance.
"
My code: https://dpaste.org/vj5ts
Shubham
I have added a new field in a model but this field is not getting added into the database (postgresql) after doing makemigrations and migrate,
I have searched on internet and most of people recommending to either delete the database or reset it, but do not want to deletion or resetting
So, does anyone have other solution for this because when the app will be in production, deletion is not good
{% Mohammed ALKHAFAJI %}
Maybe you should make
Null=True , blank=True for new field
and try again
The Inspired
littlepanda
Charly
DM
Why are you sending DMs? Help is provided in the group, please read the rules
Morteza
Vlad
Can I recover data of db after command
manage.py flush?
Charly
Vlad
Probably not
If my server is ubuntu, do you happen know, can I recover postgres?
Charly
Ritesh
How to remove T in datetime format in django
Ritesh
Model
unknown
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\local\lib\libgdal.so' (or one of its dependencies). Try using the full path with constructor syntax.
unknown
can anyone please tell me for this
Charly
Wiz99
Wiz99
Dev
Cant loaded js and css files in front.
Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. (style and js).
my css:
<link rel="stylesheet" type="text/css" href="{% static 'css/adminlte.min.css' %}">
my js:
<script type="text/javascript" src="{% static 'js/adminlte.js' %}"></script>
How can I fix ?
Dev
Igor
Dev
show me your error.
Dev
Dev
show me your error.
I have no error now. Because i changed Debug=true in setting.py and all works fine.
But at this time django 404 not found page doesnt show, cause of DEBUG=True.
Igor
Dev
Ok
0x
z
.
Enock
Is it a custom ad?
You can try the link out. I guess they will test good when tested
gadghimuradm
I'm trying to set up the admin panel for the ManyMoManyField. I need the search bar to be both left and right when using filter_horizontal. By default, it is only on the left. Stumbled upon two six year old solutions that don't work now (https://djangosnippets.org/snippets/10560/). Maybe someone has fresh solutions?
True
Hi
When I'm sending otp it takes a while, eg. 5sec what should I use to notify user that sending process has been started so user don't stay idle, which one should I use
Celery
Asyncio
Multiprocess
Multithread
?
Radzivon
Rutuja
Django learners🙏
Going for a django interview and don't have project😔.
I have a basic shopping website made with django as backend, frontend with bootstarp, html, css code.
1.product display (CRUD)
2.add to cart(CRUD)
3.display details of product
4.payment gateway
5. Accepting orders by owner
6. Sign up and signin
Above are the features
I am opening its code for sale for very cheap price💸.
You can use it for your interview as a project.
🌍For deploying it charges are different.
📔If you want to understand the code then the charges will be on hourly basis.
Note:If want to learn django contact me on this profile.
Linus
Hi guys I would like to ask a question about tkinter. I have created a web app in django and some printing functions are performed by tkinter on the client's PC. What I would like to ask is: for handling concurrent requests what should I use with tkinter? I was looking around the web and I didn't find much. I apologize if the question may sound idiotic but I only have web and web server experience. Thanks in advance
Adam
Hadoop if its large
Abhie
How can I stream my video in browser/html page