Alfred 🐾
Check timeout settings
I get this error: No space left on device
Sharayu
Hello , django is not able to go through my urls when I give localhost :8000/challenges/ January it's shows that its working but I try with localhost :8000/challenges/ february it's showing error 404 page not found , the current path didn't match
Sharayu
Plz slow this problem
Imean
Do you have a django book
Imean
I need a book
Yathish
on amazon
Koen de
There are some free ones here https://ebookfoundation.github.io/free-programming-books/
Chathura
Mk
Emmanuel
Or status code
Doragonsureiyā
Mk
What are you talking about?
Muhammad
Hi dear! I hope you're doing well! I'm working on a system where user can upload videos of large size. Anyone recommend me a good source which help me to develop this system. The only requirement is system must be scalable and can deal with large files easily. Your help means a lot for me Thank you
Sharwin
Hi so I have a doubt. I am extending django's textarea widget. And I see in my widget, in the header, there is this insert link popup. And that has a close button which is not keyboard accessible. How would I make it keyboard accessible
Deepak
Any one tell me why Paymentintent created with post request and save data in db when I reload page in custom payment. Is this right or wrong??
Deepak
I follow strip docs for checkout page js and api
soMandla
Hi everyone, Im new , Im working on my models , ran some migrations and migrated successfully, but after that I made a slight change to my models Now when I stopped the server to run some migrations they asked me for a default value(please enter a valid default value as valid python ), what value they talking about? Thanks
soMandla
Fixed it, thanks to whoever was gonna help
mohammad
Friends, does anyone have a sample project from Django?
Cute
Are there any websites to find the project's bug? It is for an online shop with Django.
Charly
Are there any websites to find the project's bug? It is for an online shop with Django.
What do you mean by finding the project's bug? You have an issue in your project and want someone to look at it?
Charly
Not someone, just some where such as an ai platform or other websites.
you can try to ask ChatGPT but we don't recommend that
Cute
you can try to ask ChatGPT but we don't recommend that
It wasn't useful for this code.thanks🙏
Error
Where can I host Django for free if not heroku or aws
Charly
AZ
Azure, GCP, Pythonanywhere, render
Do i need to configure the server?
Charly
Do i need to configure the server?
Depends on the specific option, cloud servers yes, you need to configure them
.
I’m considering to use django-activity-stream and django-notifications-hq because I need activity stream and notifications in my project. However, they both seem too similar to be implemented both separately, so I was thinking to go for notifications-hq alone because its features seems more encompassing. I seek advice from those who have considered these 2. Would you consider just choosing notifications-hq generally the wiser choice?
Kasem
Hello, if i want to give account type for frontend developer how can I do that help me please?
Kasem
What are you talking about?
To make problem clear can i send images?
Charly
To make problem clear can i send images?
No, better explain with words
Kasem
No, better explain with words
Whan I create user the password is not hashed although I used user.set_password in srializer, please ,help Thanks everyone the problem is solved
realme
Who here has a an experience of workflow(continuos deployment of django to pythonanywhere) please help 🥹
Doragonsureiyā
Who here has a an experience of workflow(continuos deployment of django to pythonanywhere) please help 🥹
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Charly
Show your code
@NompumeleloGreen what's your issue?
satish
Anyone have django course
Doragonsureiyā
Anyone have django course
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Kasem
Show your code
Thanks the problem is solved, set password under meta class so password is not hashed
インメルマン
Hey, guys! I'm beginner in django and I have some issue. I located templates login.html and logged_out.html in /myapp/registration folder and used this urls: path("", include("django.contrib.auth.urls")), Currently django recognize only login template, others take from defaults. I can change this by only setting it like this: "DIRS": [BASE_DIR / "myapp/templates"], in the settings.py. Could you explain why is it prioritize built-in templates except "login"?
Alexander
Hey, guys! I'm beginner in django and I have some issue. I located templates login.html and logged_out.html in /myapp/registration folder and used this urls: path("", include("django.contrib.auth.urls")), Currently django recognize only login template, others take from defaults. I can change this by only setting it like this: "DIRS": [BASE_DIR / "myapp/templates"], in the settings.py. Could you explain why is it prioritize built-in templates except "login"?
Hey! Django uses built-in templates for authentication pages by default if they are not overridden in your project. When you include django.contrib.auth.urls, Django looks for custom templates in the registration folder within your app. The issue might be that your logged_out.html template is not located where Django expects it by default. By default, Django looks for templates in a templates/registration folder inside the root of your app or in directories specified in the DIRS setting in settings.py. If you set DIRS to BASE_DIR / "myapp/templates", Django will search for all your templates there. It’s possible that only the login.html template is correctly placed or overridden, while other templates like logged_out.html are not being found. So, when you add the path to your templates in DIRS, you’re explicitly telling Django where to look for custom templates, which resolves the priority issue with the built-in templates.
Doragonsureiyā
Please don't ask meta questions like: - Any user of $x here? - Anyone used technology $y? - Hello, I need help on $z! Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
Divine
How can I achieve dynamic rendering on different sections of a page using Django template Example: I have a home page with different categories of product, and it should update to the clicked/selected products category without affecting the entire page data
E
Greetings. I would be grateful if someone could explain it to me. There is session based authentication and jwt. In the book "Django for APIs", it is claimed "And tokens can be shared among multiple front-ends: the same token can represent a user on the website and the same user on a mobile app. The same session ID can not be shared among different front-ends, a major limitation." Question: why can't session id be common for different interfaces, but jwt can?
Mirco
Greetings. I would be grateful if someone could explain it to me. There is session based authentication and jwt. In the book "Django for APIs", it is claimed "And tokens can be shared among multiple front-ends: the same token can represent a user on the website and the same user on a mobile app. The same session ID can not be shared among different front-ends, a major limitation." Question: why can't session id be common for different interfaces, but jwt can?
https://dzone.com/articles/cookies-vs-tokens-the-definitive-guide hope this can clarify your doubts A session ID is only valid within the browser where log in was performed; it will not work across multiple domains. This is an obvious problem when an API needs to support multiple front-ends such as a website and a mobile app. The session object must be kept up-to-date which can be challenging in large sites with multiple servers. The cookie is sent out for every single request, even those that don’t require authentication, which is inefficient.
محمد
"Thank you When allowing the user to send an email to reset their account password, I used the following code: path('password-reset/', auth_views.PasswordResetView.as_view( template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html', success_url=reverse_lazy('account:password_reset_done'), ), name='password_reset'), However, the 'email.html' page is not being sent to the console for testing purposes. Please note that the settings are configured to use 'console.EmailBackend'."
محمد
path('password-reset/', auth_views.PasswordResetView.as_view(     template_name='registration/password_reset_form.html',     email_template_name='registration/password_reset_email.html',     success_url=reverse_lazy('account:password_reset_done'), ), name='password_reset'),
А
Help me install witch pypi citie field in model
А
Install and importing pack cities witch pypi
А
Field: City = citiesfield()...
Charly
Field: City = citiesfield()...
Which package is it? Why you need a field specific for that? why not just a textfield?
А
Pip install django-cities
Charly
Pip install django-cities
So whats the issue then?
А
how to write the city field and import the library
Charly
how to write the city field and import the library
read the documentation: https://github.com/coderholic/django-cities?tab=readme-ov-file#configuration
А
through the text of the field I have I want to reduce the code
Charly
through the text of the field I have I want to reduce the code
Please rephrase this, I can't understand
А
thanks
А
I want to reduce the load on the code and use the library to speed up the process
roman
Hi, I hope someone can understand and help me. I want to use a GeoGjango PointField with an OSMWiged to display a map(for selecting user location) in my authentication form, but for some reason the map is not displayed, and in the browsers JavaScript console I get the following warning(“No map visible because the map container’s width or height are 0”). Despite this in the admin where I use GisModelAdmin, which uses the same widget (OSMWidget) the map is displayed properly. Maybe someone knows the reason why the map is not displayed correctly or the elements I need to consider watching into?
Komomi
please suggest django course for complete beginner ,, who never touched web-d before !!!!!!
Tony
please suggest django course for complete beginner ,, who never touched web-d before !!!!!!
Don't go for a framework immediately Go thru fundamentals and u should get ur hands dirty with the basics before jumping into a framework
Doragonsureiyā
please suggest django course for complete beginner ,, who never touched web-d before !!!!!!
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Hayes $CFI
Good day Sorry please I am trying to migrate in my terminal but it is showing errno 2
Dark
I want to learn about django-channels. Can someone provide some good resources for it ?