🏁 🏁 🏁
todo list
Shubham
i have deployed my django app on heroku but when i put debug = false! media images are nor showing
Mirco
i have deployed my django app on heroku but when i put debug = false! media images are nor showing
If this is looks strange for u, I strongly suggest you to go back studying Django documentation Especially the Deployment topic
Shubham
i tried! but I'm a newbie if anyone know s the soln please help
Mirco
i tried! but I'm a newbie if anyone know s the soln please help
When you put DEBUG to False, Django won't use anymore the staticfiles app that it's the one that allow u to handle statics when u develop for free When you deploy on Production, it's up to u to handle statics so you can use Whitenoise, a cloud storage or let your Webserver like NGINX handles them
Shubham
I'm having problem related to deployment on heroku in which my static files are not working though I have added static files setting in settings.py can any one help me to solve this problem?
xoxo
Hie guys I'm going to join as python web developer, I'm new to django development so guys can plzz help me in my own tasks. thankyou
Mirco
Hie guys I'm going to join as python web developer, I'm new to django development so guys can plzz help me in my own tasks. thankyou
When u are stuck with something, u can write here and if someone has free time and wanna help u, he/she will
xoxo
thank you mate
∆$¶u
What is the difference between urls.py in project and app
∆$¶u
What is the difference between urls.py in project and app
I meant to ask that, do we need to map views with URls.py in project or app?
Anonymous
What is the difference between urls.py in project and app
In project urls.py you can map app s urls.py
∆$¶u
In project urls.py you can map app s urls.py
So in general how many ever apps we have, we need to give path in urls.py inside the project directory only
Hi
Can we enable pictures in the group? I am able to create entries in my database using myregister view . But, when i use authenticate function, it gives None ser
Hi
I am pretty new to django rest framework. Just trying a login function withot any token
∆$¶u
There's no a general rule It depends on your project needs
Suppose if views.py is in project and we wrote some functions in it. Then can we map it into urls.py which is inside in the app?
mohammad
hello im want create a button at panel admin django How can I?
Mirco
Suppose if views.py is in project and we wrote some functions in it. Then can we map it into urls.py which is inside in the app?
Yes, you need to Include apps URLs in main urls.py If you did not understand this , go back studying better documentation
shashikant
Hii all..can anyone suggest me some drf tutorial beside it's official docs.
Kalik
Hello, I have a question I have my telegram bot that uses Django for working with a DB and the admin page. It starts with «python3 manage.py startbot» (custom command) Can I run on a same machine the Django server (python3 manage.py runserver) and the bot (python3 manage.py startbot)? For example I want to open the admin page while the bot is running
vikrant
the main thing is in my one project it is showing this kind of error in different project it is not showing Just can't understand is it postgres error or any other
vikrant
Can't able to share screen shot
Alexander
Check user name and password for postgres connection into settings
vikrant
Checked its correct
Upasana
i am following a tutorial and stumbled across this. the name in line 81 in settings.py isn't correct. how to fix it?
🏁 🏁 🏁
how to insert someone else's link to django site? If I write {% url 'link%} it goes to views.link, if I write' link.com 'then it goes to http://127.0.0.1:8000/link.com
🏁 🏁 🏁
<li><a href="{% url 'home' %}">Main</a></li> <li><a href="google.com">Link</a></li> Goes to this ==> http://127.0.0.1:8000/google.com
🏁 🏁 🏁
But need google.com
🏁 🏁 🏁
😲 Oh sorry. It was enough to add https://
Xudoyberdi
Anonymous
Hello! Is it possible to configure IntegerField in Django so that it only accepts numbers that have at least 6 digits and at most 12 digits?
Gkm
Hi django restful api how to add the react part as frond-end ?
Jacek
overs = models.PositiveIntegerField(default=10, validators=[MinValueValidator(1), MaxValueValidator(100)]
Jacek
You need to replace of course numbers
Majid
How can I authenticate (register and login) in api without using DRF?
Mirco
Ahh ok, I'll try it! Thanks!
Or you can use Constraints 🙂
Gkm
good evening everyone I'm looking for help I have my API restfull in django (back-end), I'm trying to display it in react frond-end or make my views in react !! how to do?
Gkm
Just create a React app and make calls to your APIs
an example, a tutorial or a link to better understand step by step 🙏
Mirco
an example, a tutorial or a link to better understand step by step 🙏
Do you know how to build a simple React app ? If not, just follow their tutorial
Anonymous
an example, a tutorial or a link to better understand step by step 🙏
https://www.digitalocean.com/community/tutorials/build-a-to-do-application-using-django-and-react
Anonymous
Hello, I'm having a problem... I'm using a NullBooleanField and when I define it in the model I set null=True but when I update this field in my Database it doesn't change
Anonymous
This field use null=True by default. Is like BooleanField(null=True). So, what are you trying to do?
Yes, I only define the field like authenticated = NullBooleanField() and in my get method I assign it a value (True or False) but When I see my DataBase this field is Null yet.
Anonymous
Ok. Can you please upload you class/function to pastebin and share the link?
of course .. Here I put the code https://gist.github.com/aarizat/103fa942a45ba579a47121029c48f8f1
Anonymous
Ok. Can you please upload you class/function to pastebin and share the link?
If you have any doubt about the code please let me know. Thanks!
Luis
Sure! I have not been using DJango for a while (1 year), but let me take a look :)
Luis
If you have any doubt about the code please let me know. Thanks!
I can't figure out how the client object is saving the authenticated attribute.
Luis
I think that you're not saving the attribute anywhere :/
Luis
Does this print print(client.authenticated) show True?
Anonymous
I just realized what was hapenning... I must execute client.save()
Anonymous
That's why the attribute was not being updated in the database
Luis
Yep :)
Anonymous
Yep :)
Thanks!
Luis
You're welcome!
Salima
Hello...please can anyone help me with the code to run a .env file holding an environment variable....
Salima
I keep getting a type error "expected a string value"
I ran "source.env" but I'm still getting the error
Prince
Hello, I need some advice. I have a AWS lambda function, which calls my Django Rest framework website to update data 30 times per minute. (Which will soon increase to 40-50 times per minute). Currently it is doing HTTP Post request. I want to know is there a better way to handle it? (Something like mqtt)? Or else? Because request load will increase day by day. There will be more than 200 request per minute soon.
^o^
Hi, I am working on a project that requires a DICOM receiver to receive DICOM files from the network. This is a Python-Django web app. Is there any python package available to integrate with Django to build a DICOM receiver?
L
hello all
L
How to create a post rest api in django if sample request and sample response is given? Can't understand from where to begin.
L
ok thanks
L
couln't find what i'm looking for
L
if anyone can tell me how to get started if this type of question is given
SHAKEEL
if anyone can tell me how to get started if this type of question is given
I think it just need to be created API for POST Request
L
maybe yes