Виктор
read pls
nyctophile
read pls
should I choose 1 and ...
Виктор
should I choose 1 and ...
its very common step, u need to learn it from documentation
دانایی
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.
دانایی
Виктор
Yes
how u start project?
Виктор
from systemd?
دانایی
from systemd?
I don't understand, do you mean running the project on localhost?
Виктор
I don't understand, do you mean running the project on localhost?
the error output will be in the program that runs the project
Виктор
I don't understand, do you mean running the project on localhost?
u start project with command python manage.py runserver ?
دانایی
u start project with command python manage.py runserver ?
Yes, when I run the project with the run server command and on the local host, there is a problem, but when I ran it on the host I bought and tried to upload the file, no file was uploaded.
دانایی
how u start project on host?
I just used cPanel to run the project, which ran the project itself
Виктор
I just used cPanel to run the project, which ran the project itself
oh, i dont know how looks process logs in cpanel, u can google it
دانایی
oh, i dont know how looks process logs in cpanel, u can google it
Thankful I will try to talk to the support of the host I bought tomorrow
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
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
Виктор
of course
In installed apps too?
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
Doragonsureiyā
Hello, can you send me some resources from where I can start learning django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
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?
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?
Kiarash
Hi how use a redis as a database in Django? It's possible?
Hi, Yeah it is possible. First you should set it up based on your need to work with django.
Maxim
Hi, Yeah it is possible. First you should set it up based on your need to work with django.
one of two things happened: either you misunderstood the question, or the OP failed to formulate his question
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.
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
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.
It's true But I want find the best performance for database In my project the database requires a lot of i/o
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?
Naggafin
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?
the way I write my tests is I'll make a submodule and then make a python module for everything worth testing. depending on how thoroughly you want to test, you may or may not end up redundancies. for example, often times you can get away with thoroughly testing your views as a sort of "integrated unit test". I usually test everything though. example of my test module folder structure: |-- tests | |-- __init__.py | |-- admin.py | |-- api_views.py | |-- forms.py | |-- models.py | |-- serializers.py | |-- util.py | |-- views.py
Naggafin
Thank you so much!!!
you're welcome!
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ā
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
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
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
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
have u try to create "Hello World" with django? try first, and u can see how long u will finish your project
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
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
Khyati
have u try to create "Hello World" with django? try first, and u can see how long u will finish your project
Actually I already started the project. I did make a project in php so I am not a complete beginner but still need a lot of guidance which is not available here
Khyati
Depending on how complex it is
Posting a blog,editing it, liking it, deleting it, commenting on it.
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})