Luis
thanks, i will try
़д।युषी। ✽
kancharla
Hi guys
In my project I have earlier used one DB now I have changed DB connection details in settings.py file but it is still returning data from old DB
kancharla
Can anyone help me fix this issue
kancharla
I have done both makemigrations and migrate
Ivan
hi, can somebody help me?
Ivan
I'm starting with django and I working with some httprequest with fetch
Ivan
How can I share code?
Ivan
https://codeshare.io/4e3yBj
Ivan
I have this code..... and I´m trying to get response from backend.
Ivan
https://codeshare.io/78DvBD
Ivan
I'm trying to detect when user send HTTP_ACCEPT and response a json, but I always get 302 response, url it's ok, because but I think is something around csrf_token
Adhil latheef
Is it possible to set default_storage to firebase.storage()......???
Maxim
Anonymous
Operation error at / admin /login
No such table auth user
Anonymous
IDK
Anonymous
dคv¡d
Anonymous
dคv¡d
have you try to do the new project? and still stuck in the same case?
Shadow
Have u try following this solution? It might be helpful, if cannot try recreating the superuser and makemigrations n migrate
Amady
Hello everyone
For educational purpose I'm making a clone of ask.fm/f3.com - website for asking anonimous questions to users. The problem is I need table of users to have a connection with table of questions. How can I achieve that? Do i need to extend User model somehow?
Витек*
Hello
You need to do a global full-text search for all indexes via elasticsearch. How do I make unique search settings for each index? Where to dig?
Anonymous
how to create a like/dislike btn
bala
Can someone kindly tell me the js script for dropdown menu box in django
Anonymous
if I run my app t faced a bug like this DoesNotExist at /detail/1
News matching query does not exist.
Anonymous
Shubhaam
Can anyone tell me how to host django project on heroku
Shubhaam
Or anyother platform
Raj
Hi, I have 3 models: Location, State and City. Location has two ForeignKey fields: state and city. When I select a particular state on the admin site, I want to select the cities that comes under the selected state only not the other state cities on the admin site. How to implement this?
Егор
M
Hello guys is there a way to edit timesince so it can be show only hours and if it 24h will be show only days.
Firdaus
Heet Raval
Hey how to solve not nul constraint failed error ......I have also tried using null = True
Doragonsureiyā
Hey how to solve not nul constraint failed error ......I have also tried using null = True
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
hm
how can I completely remove stripe from a project
hm
hm
ok lemme try it
Serghei
i have a problem, i dont know, how to activate enveronment django in vs code, help me
Serghei
Houston
Serghei
ssory, what means os?
Enes
cj
Serghei
windows
Houston
On linux it is source venv/bin/activate
On windows if im not mistaken was: venv/scripts/activate
Ivan
Enes
Activate the virtual environment
You can activate the python environment by running the following command:
Mac OS / Linux
source mypython/bin/activate
Windows
mypthon\Scripts\activate
You should see the name of your virtual environment in brackets on your terminal line e.g. (mypython).
Any python commands you use will now work with your virtual environment
Houston
windows
Have you created it yet?
Serghei
yes
Serghei
thanks everyone i get it
Ricardo
Hi, one question. I'm working with two forms, but from one form, I only want it to update me. Only one field recovers its value, but I don't know how to tell it to save it. When using form.save, it gives me an error.
M
M
i need to filter timesince tag
M
its show for me hours and days in the same time i need just hours
M
Yes
Д
Yes
so, what is the type of the variable when you have filtered it?
Д
python has many different types of ways to handle this problem
M
i dont realy understand because timesince is a tag ready to use in django
M
Want i need just to know where i can edit it or how i can edit it in views.py
M
Д
aaaaaaaa it's some kind of templating thing
M
Yes thats it html tag
Д
Yes thats it html tag
the docs say that if the first part is the midnight of the day, then it should return the number of hours only https://docs.djangoproject.com/en/4.0/ref/templates/builtins/#timesince
M
But after it will be show hours and days and when its been a week its gonna show weeks and days for me i want just only days or only hours ...
Д
Д
Д
because it doesn't make sense if it shows "4 hours ago" if it should say "3 days and 4 hours ago"