Виктор
read pls
nyctophile
read pls
should I choose 1 and ...
nyctophile
دانایی
Hello guys, does anyone know the reason for this error?
[UID:1322][535559] Child process with pid: 583928 was killed by signal: 15, core dump: 0
Виктор
Виктор
check process logs pls
Виктор
is django project?
دانایی
it is not error
I know, but it does not allow me to upload a file to the site, it gives me a request timeout error, and this text is also displayed in the log file.
دانایی
Виктор
Виктор
from systemd?
دانایی
from systemd?
I don't understand, do you mean running the project on localhost?
Виктор
Виктор
Виктор
Виктор
Anonymous
#help
The JS file 'drf-yasg\redoc-old\redoc.min.js' references a file which could not be found:
drf-yasg/redoc-old/redoc.min.map
there was such an error, please help
Pranjal
Obaida Aljarjary
core.Profile.user_id: (models.E006) The field 'user_id' clashes with the field 'user' from model 'core.profile'.
Obaida Aljarjary
how to fix it
Anonymous
Anonymous
Anonymous
Д.....
Hey! Where can I find a comprehensible explanation about how to configure pytest (django pytest) before running the tests ? Thanks !
Pranjal
of course
Did you encountered this error during deployment?
Hello
Hello, can you send me some resources from where I can start learning django
Vijaya
Hello, I am new to Django. I had an issue while creating a model. I am getting an error 'Django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?'. I had already installed mysqlclient, still, I am getting this error. Can anyone help me with this?
Kumar Shreyansh
Vijaya
i didn't install connector for python
Kumar Shreyansh
Mysql installation ships with a mysql python connector
Kumar Shreyansh
Yes, install that too
Vijaya
ok I'll try
Vijaya
Thanks
Kumar Shreyansh
Welcome ☺️
ali
Hi
how use a redis as a database in Django?
It's possible?
ali
Siddharth
I am not able to use machine learning algorithms with django
Kiarash
It's the best way for performance?
You have several options to improve the performance: optimize the queries, cache pages or some data inside it, sometimes use async codes and task ques.
Doragonsureiyā
Anonymous
They're used in cors settings.
Anonymous
so it will whitelist the ip or domains which are acceptable in backend.
Anonymous
ALLOWED_HOSTS = ['*']
Anonymous
This allows all the ip or domains to access to your django app.
AZAMAT 々
Example: ALLOWED_HOSTS=['elisha.com']
Anonymous
yes, in this case, only elisha.com can access to your django api.
Anonymous
You're welcome.
AZAMAT 々
Not at all
ali
Anonymous
We use cors settings when the domain is different between front end and backend.
Anonymous
If you haven't subscribed the domain, only same domain as your django app will access to the app.
Д.....
Hello! For which Django files are tests usually written ? I mean models.py, forms.py, etc. I also have a custom user manager, do people usually write tests for it as well or not?
Д.....
Ammar
If i want to send notification for some items after purchase complete ( which may take some time to get sended )
do i implement it usnig signals or as a background task ?
nyctophile
hi there
I was trying to create a superuser in a django project after overriding user model but I am getting this error
TypeError: UserManager.create_superuser() missing 1 required positional argument: 'username'
Can anyone help??
mahdi
Hello friends
I created a MySQL database and created a .proto file for it
Now I want to do three steps:
1 :write it (binary)
2parse it(1)
3save to data base
Does anyone have an example of this code or send me a similar example?
I will be grateful
Doragonsureiyā
Amin
Hi
I have a small problem in my project
I change AUTH_USER_MODEL to "accounts.User"
and now I want to make a comment for a product and it has problem
no such table: main.auth_user
It has error with this line
Comment.objects.create(comment=data['comment'], rate=data['rate'], user=request.user.id,product_id=id)
and I'm sure don't forget anything for comment.
How can I fix that?
Khyati
Hii I am a beginner and I am building a blogging website how long should it take? I need a deadline to complete it I guess and mentor too
Suryo Adhy Chandra
Dheekshith
Hi guys
I need to pass data or variables from templates to views in django
I tried using forms it is not so efficient and also tried using ajax it’s okay
Are there any other ways to do it
Light
Djano-admin is not recognised as an internal or external command, operable program or batch file
Light
I have written django-admin in command prompt
Light
Pranjal
Hello guys I had created an ML model and integrated with django rest framework now I want to deploy it can anybody provide me some help with that because I tried it on render.com but it's showing error regd tensorflow version, It's not accepting any version and I can't delete that library also, However my localhost is working fine just wanted to deploy that api so that I can make an application with that pls help me with that
👑 Dharmzeey
nyctophile
hello there!
I was trying to create superuser for my django project after overriding user model but I am getting this error
TypeError: UserManager.create_superuser() missing 1 required positional argument: 'username'
Please help me with that!!
@SamahTech
I have a problem with connect my django app to sql server database.
I used django-mssql and pyodbc.
Can any one help me please...
カカロット
def print(request):
if request.method == 'POST':
form = PrintForm(request.POST)
if form.is_valid():
password = make_password(form.cleaned_data['password'])
return render(request, 'print.html',{'password':password})
else:
form = PrintForm()
return render(request,'print.html',{'form':form})