Yusra
djoser
it's not supporting latest version of django 4.0
Yusra
I want to use django-allauth library but I'm nor sure if it's supporting rest framework
cj
djoser
that package looks abandoned, it was good, I even used it in a big project like 4 years ago, but now djoser is not updated
cj
guys I'm new with django and currently I've started learning and building end points, I'm in authentication process now and I want to know auth library that works with rest framework, do ypu know any reliable auth library that works fine with rest framework?
there are many listed in their webpage, did you read it? https://www.django-rest-framework.org/api-guide/authentication/#third-party-packages (yes, there's djoser there, but again, it was not updated in 1 year by now)
Rohit
Hello everyone , I m stuck in a problem I want to save the .json file which comes from javascript file and upload it on the database and when I fetch it from the database I want it to again send it to javascript file (from views to javascript file)
Anshu
How can I execute the function after loading the template?
Django template tags run on page load, you should use ajax and create a django view which returns a json
Anonymous
Can we use simple jwt for custom user model
IDK
yes you can
TheDoc
Yes it's work !
Bryan Pior
👍
Anonymous
God morning, does anyone know how I can achieve this in django: User: name = ...... bio = ....... package = ..... expire_date = models.DateField()''' The expire date is generated based on the package the user is registered to''' active = models.BooleanField(default= True) '''Now what I am trying to achieve here is that when the expire_date == today, I want active = False '''
Asadbek
You might need a cron
How can I do it ? I was going to use celery for that .
Himanshu
can we access cookieshtttponly in components of next.js?
Asadbek
Celery have sch task right?
Yeah it is for background tasks
Vaibhav
Yeah it is for background tasks
Yup.. we can simply configure that as per our requirement
Asadbek
Yup.. we can simply configure that as per our requirement
Did you use such feature before I mean scheduling for certain time ?
Asadbek
Yup ...
Could you share source code because I need to use this feature I mean scheduling for certain time in my application
Vaibhav
Could you share source code because I need to use this feature I mean scheduling for certain time in my application
https://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html#crontab-schedules You can go through this, plus celery have cron tab and periodic task function.. You can annotate any function with periodic task to make it scheduled
Python Guy
https://dpaste.org/SLWw I am trying to deploy using heroku but it's giving this error
Python Guy
after installing heroku cli, I am not able to activate my virtualenv. how can I access that
Jaya
hey how can i import my local sqlite db in deployed django app on heroku
Anshu
hey how can i import my local sqlite db in deployed django app on heroku
You convert your sqlite database to postgres and then upload postgres to heroku
Sanjarbek
Hi everyone, I can't update the #Django version that is on the #server how can I update
Anshu
Hi everyone, I can't update the #Django version that is on the #server how can I update
Use this command in your terminal "python -m pip install -U django"
Anshu
Did not work
Then try by specifically providing the django version
Jaya
You convert your sqlite database to postgres and then upload postgres to heroku
thank you for your reply but i tried loaddata and dumpdata and it worked for me thanks though😊
Anonymous
Hello everyone. I am having a little problem with django admin. Say I have a model and one of the fields is a charfield with choices. I created a form for each choice, and a default form which I want to be my default add form. I want to display a different change form based on the choices from the model field on the admin model change page. Thank you
Anonymous
When to use GenericApiView and when ApiView
Mirco
When to use GenericApiView and when ApiView
When you don't wanna repeat common code
Anonymous
I meant what's the difference between them
Mirco
I meant what's the difference between them
The Generic one contains useful methods that cover some common scenarios The GenericApiView inherits from the ApiView in which you have base methods
Anonymous
How i will be knowing which one is appropriate to use for my view
Mirco
How i will be knowing which one is appropriate to use for my view
It's up to your use case and experience 😊
Arsh
Hello everyone Is there angon free to help me I templating it's urgent.
Arsh
In templating*
Doragonsureiyā
Hello everyone Is there angon free to help me I templating it's urgent.
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
Arsh
How can I generate jinja2 templates
Arsh
With my own editing of templates
Mo Matin
Hi Why could not my urls of my app get found when I run my server? I have done all the things to define a url
Doragonsureiyā
Hi Why could not my urls of my app get found when I run my server? I have done all the things to define a url
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
Mo Matin
I'm using django Version 4.0 I'm trying to make a view: def home(request): return HttpResponse('Hi') And I have put the app name in setting file, Installed Apps. blog_app/urls: urlspatterns = [ path('home'/ views.home)] The project/urls: urlpatterns = [ path('blog/', include(blog_app.urls'))] I'm using python version 3.9 But the URLs could not get found, while in my tutors PC everything is working properly
hamed.j👨‍💻
Hello, good morning, I wanted to change the default admin page to another new template, how can I do this?
Doragonsureiyā
Hello, good morning, I wanted to change the default admin page to another new template, how can I do this?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Piyush
Please help me Show the error to me AttributeError : 'str' object has no attribute 'read'
Piyush
How to use group
Charly
How to use group
You are doing that
Piyush
You are doing that
Than why show the this type of error ??
Charly
Than why show the this type of error ??
I already told you, you are using a method that doesn't exist on a string
Dilibe
Hi, how can I create a DetailView after creating a form using Django inlineformset_factory
Juan
how to create api key on django rest api? i see this link https://florimondmanca.github.io/djangorestframework-api-key/guide/#creating-and-managing-api-keys but still don't know how to create api key and look my api key
Juan
anyone can you share link video or article give api key?
Juan
🙏
Juan
i just want my link protect from anonymous
Anshu
anyone can you share link video or article give api key?
You mean authenticating api using token
Juan
You mean authenticating api using token
I using token for user login can post data, but i want to a people not login can look list data
Juan
before I use like this "DEFAULT_THROTTLE_RATES": {"anon": "100/day", "user": "1000/day"}, for protect my link
Juan
I want api key protect my link url api
Mysterious
How to write django default log to a centralized server
Anonymous
If ur budget is high or ur working on enterprise level
Mysterious
If ur budget is high or ur working on enterprise level
I have three servers. One server using for database and the other two for django web app.so i want to write these two server logs in a common file.
Vijay
Hello guys can anyone tell me i am using paytm payment integration so paytm want any charges for ourside