Anonymous
Hi I have customized the authentication and user model by phone number and I want to create multiple users (employees, for whom the admin creates accounts, and students, who create their own accounts) Who can I create multiple user
Anonymous
Tell me the steps plss, thanks
python -m pip freeze > requirements.txt
jūdê
python -m pip freeze > requirements.txt
Make sure your terminal is in the base directory of your Django project
Nastaran Akbari
Hi I’m trying to deploy my Django project but at first, I should add a Nextjs project as its frontend. I got the “build” of Nextjs and added it to the frontend folder in Django. Then point to its index.html in urls.py. Now, I got these errors in the browser:
Nastaran Akbari
“Hydration failed because the initial UI does not match what was rendered on the server”
Nastaran Akbari
“There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering” Thank you for your attention!
مراد
Hi everyone Where can i deploy my django project ( for study purpose) for free I have celery + redis that must run in background
S.A
Hi everyone . I have a doubt. While using bulk_update method. For selected table . I m getting an error str object has no attribute pk anyone pls let me know how to handle it.
Andrej
Hi everyone Where can i deploy my django project ( for study purpose) for free I have celery + redis that must run in background
You can use cheap cloud services (Hetzner cloud instance starts at 2,50€ or so per month). I don't think there are solutions for free.
Andrej
i use vdsina.ru, cheaper server ever what about heroku?
At the current exchange rate it's 480RUB makes 4,85€ Can I rent their servers and pay from Germany?
Shivam
How to perform parallel processing in Django??
.
How to perform parallel processing in Django??
I haven’t done that before, but I think you can look up about Django’s async functionalities. There seems to be a lot about it in the official documentation.
Vigneshwaran
Hi, I want to build a project that is task management system website, I have a confusion that is django is best or node.js for backend of this project
Andreas
At the current exchange rate it's 480RUB makes 4,85€ Can I rent their servers and pay from Germany?
https://vdsina.ru/pricing/standard 198rub i remember like it was possible. but if you are in germany hetzner will be better i guess
Andreas
How to perform parallel processing in Django??
do you think about queues? like with celery?
Helin
i want to do registration via jwt using async method, i need to register user by email and password, in that order, am i right? from the frontend I get mail and password then I need to add a user to the database with the flag not verified and send him a confirmation code by mail, after I receive the code from the front, check for validity and give jwt? I'm new and can't figure out how to do it right
ZeroCool
Hi everybody, I need to make reports in pdf but I would like to do it from an html file, that is, rendering, which library do you recommend?
Bakhodir
Hello every body I need help with rest api permissions
Doragonsureiyā
Hello every body I need help with rest api permissions
No one can help you until you explain your difficulties.
Helin
my_app/:view.py from ..responses import Response ImportError: attempted relative import beyond top-level package responses.py and manage.py - ONE DIR
Bakhodir
No one can help you until you explain your difficulties.
How I control permissions by routes and actions? I also trying default auth and permissions. There are generated add, change, view and delete permissions for each application models. I want to add new method for example report via route /report.
Helin
don't use relative imports
I don't want to create the same class in every application, what should I do?
Charly
Non-relative imports are fine
Helin
Non-relative imports are fine
how can i import from file next to manage.py to your application?
cj
how can i import from file next to manage.py to your application?
take in mind which is the root folder when you run your application, use absolute imports using that folder as reference, be happy
Charly
dont work
Show what you have done and the error then
Helin
from HANS.helper.responses import Response from HANS.helper.status_codes import HttpStatusCode i create app helper i import other app import from helper
Charly
pycharm - alert ERRROR tag, but django run - ok
I dont have idea of what specific error shows pycharm, but if code runs okay then you should setup properly your IDE
Kumar
Can anyone help me
Kumar
What happens if I convert charfield to intgerfield
Xusrav
What happens if I convert charfield to intgerfield
you can only enter numbers, and if you try the text, you won't succeed
Krupa
Hello I started learning django I want to make my website fully dynamic and reusable components with admin panel please can you suggest good YouTube source to learn this. Please guide me
مراد
Heroku allows u free deployment
Heroku stoped that long time ago
Flam
Hello I started learning django I want to make my website fully dynamic and reusable components with admin panel please can you suggest good YouTube source to learn this. Please guide me
Django documentation, google, and of course youtube are the answer. No single source can give you all you need. Take it step by step and research on each feature you are working on to get the best approach possible. "Two scoops of Django" book comes in handy
zmod
how can I create a preview for an article entry in django admin site
zmod
also any body has sample code on django view pagination for a content
𝔸𝟙𝕕𝕪𝕟
Roshan Rajak
I'm using Celery Aio and by Celery worker only running 1 tasks concurrently
Roshan Rajak
Event I have set -c 10
Roshan Rajak
How can I share screenshot here ?
Mirco
How can I share screenshot here ?
paste code instead of screenshots via pastebin.org
loki
Hello iam new to django how do I get rid of this page not found (404) error
Flam
Hello iam new to django how do I get rid of this page not found (404) error
Go to settings.py and check if debug is set to False. Change it to True for easy debugging. Check your app url to ensure the page view is registered
.
Hello iam new to django how do I get rid of this page not found (404) error
By actually visiting a page that exists. Maybe check the urls.py if there is any url pattern that matches the one you entered in your browser.
Oxytocin
Hi Anybody knows or have a good public django or DRF project? I wanna know what a good project is like for resume and learn new things
chowmin
I'm facing some issue on django rest API with stripe integration anybody please help me 🙂.
Doragonsureiyā
Oxytocin
Hi Would you please check this link and say what you think about the project? I mean is it a good project for resume? https://github.com/AtefehKazemi/TODoList_API
chowmin
Ok l, I'm creating a django api that perform a stripper subscription so I'm creating a plan on stripe so my api acept all of currencies but in case of INR I'm getting this error Amount must be at least ₹0.50 inr. But i am creating inr plan almost 61000 inr but it still shows Amount must be at least ₹0.50 inr,it's working for every currency except inr
jūdê
Yeah
Create a permissions.py file Or you can put the code anywhere From rest_framework import permissions Class MyCustomPermission(permissions.BasePermission): def has_permission(self, request, view): If your checks: return True return False