Chintu
Friends! What this error is? How to correct it?
Doragonsureiyā
Sravya
Chintu
Sending media is not allowed its showing
Doragonsureiyā
Sending media is not allowed its showing
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
cj
Sending media is not allowed its showing
why do you want to send media?
cj
bro images are restricted here
why do you need images here?
Sravya
why do you need images here?
i am not sending bro just telling him
cj
i am not sending bro just telling him
I'm not your bro... anyway, why does someone need images here?
Chintu
I'm getting error While running server. That error pic I want to share. So that u can get idea regarding eror
Loki
Hi there! I need help with django-mptt library, while I am using in template recursivetree its children context empty, Then for test purposes i went to source code of mptt_tags.py and write down some print codes, the crazy thing is node.get_children(method from django-mptt) returns no child while node.children.all() returns child mptt_tag.py - https://gist.github.com/shadowwa1k3r/65b94f1d54a1faac15028b7f9fd91497 manage.py shell - https://gist.github.com/shadowwa1k3r/6dfbee1cb51c63cf2ff9f64143f04430 logs-mptt_tag.py - https://gist.github.com/shadowwa1k3r/bf89885451c80cfbaf0d82f7ff9a818e models.py - https://gist.github.com/shadowwa1k3r/d03e3f48a0f7fb026e2117e330374723
Its me pistaboy
Hii guys
Its me pistaboy
I want to learn django
Its me pistaboy
How to start to learn...and I already know little basic of django
Doragonsureiyā
How to start to learn...and I already know little basic of django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Kiana
What should I do with runtime error? I think the problem is in migrate, that there’s no migrations to apply..
Iqrorjon
how to get selected item from charfield choices in django model
Samrah
Is there a field in django model that can store html? I'm using react with django and I want to send html data to backend and retrieve it too as html
~:$
Is there a field in django model that can store html? I'm using react with django and I want to send html data to backend and retrieve it too as html
html is just a string... You can send html as string from frontend to backend.... And save them in a text field. As a simple use case.
~:$
But on retrieval, it is still a string and the html tags also show up on the frontend
It can have two solutions.... 1) Escape the html or render the html on server side after getting the string from database, before sending to frontend... 2) Lookup a react module or package which can help you to render the html string to proper html which you can render in your dom.
drStrange
are question relating django deployment on linux vps accepted here? My basic django website seems not to work when I tried accessing it via browser
~:$
are question relating django deployment on linux vps accepted here? My basic django website seems not to work when I tried accessing it via browser
https://docs.djangoproject.com/en/4.1/howto/deployment/ https://docs.digitalocean.com/tutorials/app-deploy-django-app/ https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment Please take a look at these links. Hope it will help you.
drStrange
https://docs.djangoproject.com/en/4.1/howto/deployment/ https://docs.digitalocean.com/tutorials/app-deploy-django-app/ https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment Please take a look at these links. Hope it will help you.
I was trying to set up the django default webpage as simple as it sound but I just couldn't. The Steps I followed: 1. Login to my VPS 2. Allow access to port 8000 with "sudo ufw allow 8000" 3. update settings.py. I updated the allowed_host list to include my azure vps ip. 4.Later run command "python3 manage.py runserver 0.0.0.0:8000" Then try accessing the site with <server-ip:8000> on chrome but it keeps loading and show site is unreachable.
~:$
No I didn't this time.
kindly do that.. then try.
drStrange
Did you setup nginx and django server like gunicorn????
I didn't have intentions of keeping it running forever, just wanted to get started with django projects deployment with this basic task and I couldn't. As easy as it look
drStrange
kindly do that.. then try.
There is a tuts I followed, the person didn't setup nginx and gunicorn at first. He did after testing the django server as we would on development environment. But it didn't work on my end. I even followed other tuts that required nginx and gunicorn but site doesn't load on my browser.
drStrange
Follow the above mentioned guides/tutorials.... thank you.
I was having issues that was why I came here. It nice replying anyway
Fawaz
django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'django.db.backends.XXX', where XXX is one of:
Fawaz
yaa
Fawaz
don't use djongo :)
I just using latest versions of django,djongo,pymongo
Fawaz
don't use djongo :)
Then how to use orm of django with mongodb
Iskandar
Hello everybody! Which plugin for Django 4 is nice to use for Google reCaptcha?
Mirco
I just using latest versions of django,djongo,pymongo
Easy answer: Django hasn't been built for non relational databases, so don't use non relational databases with Django 😊
~:$
Then how to use orm of django with mongodb
Django Orm is specially for SQL like databases... not for NoSQL like databases like Mongodb.....
Delnold
Then how to use orm of django with mongodb
https://www.reddit.com/r/djangolearning/comments/v0j647/which_are_the_cons_of_using_mongodb_with_django/ Read this
Elexis
Hello Anybody know how to solve the issues below? Is it caused by the database *max_con* or it’s problem within the django rest frameworks? *FATAL: Too many connections for role ‘dbuser’* I already try to search for the answer on StackOverflow, Other django forum. But still nothing. My configurations: - rest frameworks - Hosted Postgres database - max_connections 500 - max_user_connections 250
Kim
I got this error IntegrityError at /signup/ (1048, "Column 'user id' cannot be null") Any help?
Sunil
Charly
Yes
Show it
Kim
User id unique and primary key must be
Yes i make sure its like this
Charly
Yes i make sure its like this
Show the code because it's clear is not the case
Doragonsureiyā
Yes i make sure its like this
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Charly
I can’t here
Just read the previus message
Kim
How?
Charly
How?
How to read?
Kim
No🥲
Charly
No🥲
https://t.me/django/226956
Charly
How make this
Click on any, paste the code there, then genreate a link and send it here
Kim
https://linkode.org/#21VHC7E7Hhbl4XglHDobd6
Kim
Here
Charly
https://linkode.org/#21VHC7E7Hhbl4XglHDobd6
Why do you added id fields instead if suing the default id fiels which are AutoFields?
Kim
So should I remove it?
Charly
So should I remove it?
Why do you added them?
Kim
I’m new to Django so i just add to have an id
Charly
I’m new to Django so i just add to have an id
models already have one you dont need to add one
Abhie
Hi guys, need some help I am using postgresql db for my project and I had set a random code for password but it showing the same code for every user, while using sqlite3 code was different for different users. What should I do? i need postgres inorder to use arrayfield.
Doragonsureiyā
I’m new to Django so i just add to have an id
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Abhie
https://dpaste.org/ur4Xt
Here's the code
Abhie
Do help me if u know only
Charly
Do help me if u know only
put the random value inside the view
Abhie
put the random value inside the view
Thts the passcode for u guyz,