ƑѦⴽⵊⵠƲƝ
I like it really so much but as i go deeper it getting so bad
ƑѦⴽⵊⵠƲƝ
Like i don't know what to do
Charly
I like it really so much but as i go deeper it getting so bad
Sorry dude if you don't like programming there is nothing to do
ƑѦⴽⵊⵠƲƝ
No that's not about programming i like it
Charly
No that's not about programming i like it
Is it, because programming will involve to go deeper on something and many times it will be unkown for you
ƑѦⴽⵊⵠƲƝ
but i don't know what to do next... how backend and frontend work on a project 😅
Charly
Charly
is not like you are permanently tied to something
Brook
but i don't know what to do next... how backend and frontend work on a project 😅
go through it on a step by step basis. first work on how you manage your data (Models) then how you manage requests. basically as far as structure is concerned mostly have to worry about models, urls and views. so do these step by step?
experes
i have deleted the migration folder and now django cant recognize any changes i make in my models. whats the solution?
experes
every time i command makemigrations terminal returns no changes detected
Maxim
it's not gonna work please do not give advice based on assumptions with such a low level of confidence
Maxim
nope
Maxim
so whats your solution
i didn't say i had a solution
Deleted Account
i have deleted the migration folder and now django cant recognize any changes i make in my models. whats the solution?
python3 manage.py makemigration appname That's would work, make sure you've added the right app name , you can also add as many apps as possible in that one command just separate with a space, let me know if that helps
Deleted Account
Karunakar
It's not mine I also had given same solution for fhis
experes
i used to dont write app name
Karunakar
yes :)
Ok the way he said I am not sure about myself for a second
Deleted Account
yeah it worked when i specified the app name end of the command
Nice one 👍 that's Django version 4 for you
ERMIA
Hi, there! Where i can use Django as a backend? Cuz backend developers make APIs for frontend and they use it. But i don't wanna use API? 😅
WTF, there is not choice, api is communication protocol between two applications. So two ways, Make api or use pure django
Deleted Account
Hi, there! Where i can use Django as a backend? Cuz backend developers make APIs for frontend and they use it. But i don't wanna use API? 😅
We use them in postman , let's say frontend guys just display the JSON but in a prettier manner than postman
Achmad
start does connect for you
Doragonsureiyā
start does connect for you
What are you talking about?
Doни
I have question
Doragonsureiyā
I have question
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Karunakar
Can anyone suggest me a hosting service that gives custom domain and accept sqlite database
Karunakar
Because I don't find any hosting service for django+sqlite with custom domain hosting
Anonymous
Once try it in render
Karunakar
Do render support sqlite like have you ever hosted your django project with sqlite on render?
Deleted Account
Because I don't find any hosting service for django+sqlite with custom domain hosting
You can easily host your dB postgresql on render , they give you the external URL to connect to your Django project , it's not that hard , so some research, it's always good to go live with postgresql, SQLite is used for development https://youtu.be/AgTr5mw4zdI?si=ofVl_I3Zo_7y5Tw2 That guy will help
N.Gamani
I mean you
Are you joking 😂😂 iam always available
.
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. how can i solve it
.
who know about iit
Артем
Hello. I cant solve problem with 502 bad gateway. My code is very slow. How dont get 502 with slow code?
Sameer
Django project how to upload
Vishnu
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
Vishnu
how to fix this
Nerd
have you added it in the installed apps?
Vishnu
Still showing same error
Nerd
how are you running your app
Vishnu
If I add django setup I get different error of admin not labelled
Vishnu
how are you running your app
Backend is django and front end is react
Vishnu
how are you running your app
When I'm trying to run the server I'm facing the error
Nerd
am talking about django how are you running the server
Nerd
okay
Nerd
let me see your settings.py
ERMIA
Django project how to upload
Google.com/search?q=Django+project+how+to+upload
Anonymous
Hello is it need to learn oop advance before learn Django?
~
why django-registration-redux REGISTRATION_AUTO_LOGIN = False not work in settings?
Doragonsureiyā
why django-registration-redux REGISTRATION_AUTO_LOGIN = False not work in settings?
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
Q
Hi, I have a django project and a separate folder with one module, this module uses functions from the django project, how do I make these imports available to it? To be more precise, I am transferring data to celery from this module separate from the project.
Balde
hello, if we upload audio to a field of a model in an "audio/" folder, how to configure settings.py so that we can access the images.
Артём
Hello. How do I implement password reset functionality in Django not using email, but phone number? I have User model, which doesn’t have email field (email in Profile model). When I changed the reset form nothing works…
T
Hello. How do I implement password reset functionality in Django not using email, but phone number? I have User model, which doesn’t have email field (email in Profile model). When I changed the reset form nothing works…
Verify it first then from django.contrib.auth.models import User from django.contrib.auth.hashers import make_password # Get the user instance by some criteria (e.g., username or email) user = User.objects.get(username='username_to_change') # Set the new password (plain text) new_password = 'new_password' # Hash the plain text password using make_password hashed_password = make_password(new_password) # Assign the hashed password to the user's password field user.password = hashed_password # Save the user instance to update the password user.save()
T
So here instead of username I can use phone number field?
Yeah if you have field of phone number there
Артём
Make password is a function that changes users password in model automatically?
𝘴𝓲ꪀꪖ​
Make password is a function that changes users password in model automatically?
It hashes the password before saving it to database ...
T
Make password is a function that changes users password in model automatically?
No. Password is saved in Hashformat so to convert it into hash
T
from django.contrib.auth.models import User # Get the user instance by some criteria (e.g., username or email) user = User.objects.get(username='username_to_change') # Set the new password (plain text) new_password = 'new_password' # Update the user's password using the set_password method user.set_password(new_password) # Save the user instance to update the password user.save()
T
Make password is a function that changes users password in model automatically?
You can use above code also. setPassword will hash the password and save it automatically
Артём
But it uses basic user model, but I used ti customized my user model (from AbstractBaseUser)