Виктор
U can try using django-chutad It provides a very efficient chutad-store for storing key value pairs... much like a python dict
Can i send custom objects like User() FROM template to view? I think if it is possible it is gonna be the best way
Muhammed
Can anyone sagest any Django-Channels tutorials
Muhammed
And I need it to connect with flutter
Anonymous
And I need it to connect with flutter
Beginner to development i guess
Akash
I have an error regarding the templates like "templates does not exists" But I gave the correct path anyone can solve my problem??
Nishanth Siraj
Akash
like error is coming
Dev
why joblib file is giving attribute_error in manage.py I can't find any reason for that. It's so messy framework
Dev
same thing working easily on jupyter notebook or in python
Akash
Your view render path is incorrect maybe
thank you bro for your response
Akash
yes bro
Forever
I'm confused! We use ModelForm to create a form from Model directly, and we also use generic CreateView to create form by providing the fields. The only difference I see is the first one use Meta class
pranav
Can anyone provide me that django-react boilerplate ?
HAJI MASTAN
Can anyone provide me that django-react boilerplate ?
search the same question in google and add github you will have lots of boilerplate with complete projects copy and edit as per your requirement
HAJI MASTAN
There are too many , that's the problem , if anyone knew the better one ?
thats the big question you have to check simple and clear one
cj
There are too many , that's the problem , if anyone knew the better one ?
use the one that fits your needs or create one yourself ¯\_(ツ)_/¯
Mahan
Hello, when the base view class is so easy, in what case should I use the function for the view? In fact, where should I use the base class view, where should I use the view?
pranav
So I learnt most of django rest framework and what I got to know is it can help create and protect API but what I'm confused about is how will we integrate DRF for a user to be able to log in to our website and not just protect our APIs?Or it just provides way to create and protect API endpoint?
Sourabh
I'm want google login feature in Django drf with react js can anyone suggest me any library?? Of drf
DeathLikeSilence
I'm want google login feature in Django drf with react js can anyone suggest me any library?? Of drf
first of all you have to create the user in model.py I mean create a class, next you should write some fields; like email, full_number, password, and so on. after that you have to create a Python file called "serializer.py" . this file converts your model to JSON. it is like a translator. You can write your serializer like this: Class see(serializer. Serializer): Class Meta: Model = your model name Fields=’’__all__’ But search on the internet and learn about it more Anyway, after that you should make some class in view.py you can use class base view or method(choose whatever u want, that depends on your project) but I recommend using class base view (APIView) The next item is URLs. URLs are so important because URLs are your endpoint. For React, you can use Axsio to connect Django. I don't have any experience with React but I know you should use Axsio. Finally, I highly recommend you to search on the internet and read articles or watch some courses about it if you don't understand what I write. I wish you could understand.
Hrishi S Vijayan
So I learnt most of django rest framework and what I got to know is it can help create and protect API but what I'm confused about is how will we integrate DRF for a user to be able to log in to our website and not just protect our APIs?Or it just provides way to create and protect API endpoint?
DRF actually used in project that need rest apis which might be having react or other frameworks comes in the front end. In order to create and protect apis want to test it you can make use of postman.
Ullysses Rosendo
Does anyone know if it is possible to filter fields in a Django admin inline table according to the model's primary key? Project(models.Model) … Category(models.Model) project = FK(Project) name = Character Alert(model.Model) project = FK(Project) categories = ManyToMany(Category) In the admin I have AlertaInline which is an inline tabular, only the categories with fk of the project must appear but I cannot filter, the categories of all projects appear
pranav
DRF actually used in project that need rest apis which might be having react or other frameworks comes in the front end. In order to create and protect apis want to test it you can make use of postman.
This is confusing, suppose, I created a frontend app in react , so authentication on that app will be validated through rest api that we created with drf? Something like this?
Believe
And you hosted a restapi that will interact with your frontend using json and will respond according to your need
pranav
And you hosted a restapi that will interact with your frontend using json and will respond according to your need
Okay , thankyou , got it Like if we want to be authenticated, it will respond with authentication api and if we want something else , it will respond with that?
bar
Somone used msal for jwt verify in django? I cant find almost anything about it in google 😕
Doragonsureiyā
Somone used msal for jwt verify in django? I cant find almost anything about it in google 😕
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
bar
Its for validateing my accessToken i recive from my front to my django backend
bar
Ok i got front and backend, I use microsoft login and recive in my front accessToken i send to my backend this accessToken is a jwt, I need to use msal to verify my accessToken, to know if the signature is good and the information inside is real. Somone told Me i can do it with msal maybe as middle war or just use msal to validate/verify the jwt but i didnt find alot of information about it.
Ahmed
Hi recommend me good serverless hosting for django better to be cheap
Charly
Hi recommend me good serverless hosting for django better to be cheap
Django is not emeant to be used as a serverless lirbary
bot
Plz help me doing django project
Doragonsureiyā
Plz help me doing django project
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Raja
Pls help me understand what django user I can only find syntax on internet but pls explain me what it really is what's happening inside those is.autenticate functions
Mahdiyeh
Hello, can anyone help me, I have a two-page Django project
Doragonsureiyā
Hello, can anyone help me, I have a two-page Django project
No one can help you until you explain your difficulties.
Jitxs
i just do a test driven project with Django but i don't get the testcase classes much, i want to learn more about it any recommendation?
Viper
Hallo,,anyone who can help me with a project I'm trying to implement,,a stock take system using 1D barcode reader
Viper
I'm trying to make the scanning process easy in a way that,,if I scan a product,it's added to the database automatically,,for now I have to click the add products then scan the barcode and save, which is a long process
2200090087_Shaik imran rasool
hi
2200090087_Shaik imran rasool
getting error while deploying project in python anywhere
2200090087_Shaik imran rasool
Something went wrong :-( Something went wrong while trying to load this website; please try again later. If it is your site, you should check your logs to determine what the problem is.
2200090087_Shaik imran rasool
There was an error loading your PythonAnywhere-hosted site. There may be a bug in your code. Error code: Unhandled Exception Debugging tips The first place to look is at your web app page to ensure that there are no errors indicated there. Next, check your site's server and error logs for any messages — you can view them here: imran13.pythonanywhere.com.error.log imran13.pythonanywhere.com.server.log You can find helpful tips on the PythonAnywhere help site: There's an ImportError in the logs "403 Forbidden" error or "Connection Refused" error in logs Database connection errors There are many more helpful guides on our Help pages If you get completely stuck, then drop us a line at liveusercare@pythonanywhere.com, in the forums, or using the "Send feedback" link on the site, with the relevant lines from your logs.
2200090087_Shaik imran rasool
what to do
Heisenberg
Hello, i need a help in rendering a template that contains two forms A login form and Register form. With a button that toggles visiblity of one of the form. I created this html template **im using tailwind css https://pastebin.com/FsMy3i42
Heisenberg
Here is the js for the html https://pastebin.com/hhireAaM
Muflone
what to do
Have you read the message?
Данил
Hello guys, I run asgi app in Django with Unicorn. But I have problem with my websockets when I use Nginx. After running docker I see that my websockets not found on client
Данил
Unicorn without Nginx works correctly but I need Nginx
Данил
Unicorn I use
cj
Daphne works perfect with Nginx to run Django using ASGI
Данил
May I ask you for project examples, because documentation Django channels seems poor?
cj
Unicorn I use
django-unicorn? https://www.django-unicorn.com/docs/ is that what you're using?
Данил
No , just Unicorn
cj
May I ask you for project examples, because documentation Django channels seems poor?
ah so you're using channels, then you meant Gunicorn, not Unicorn
cj
No , just Unicorn
send the link of that library
Muflone
There are too many *u*icorn packages
Данил
I use this library successfully without Nginx
cj
Yes , you are right
then again, if you want to use django with ASGI, use Daphne, it works perfectly with Nginx
Данил
Configuration more difficult
Данил
Do I need Daphne container for docker compose?
Данил
Supervisor