ZION
Hi everyone
I'm new to django and drf.
How can I implement an endpoint that allows all authenticated users to perform get requests only while authenticated users that are also members of the manager group can perform all the request methods?
Anonymous
Aby
https://pastebin.com/H3ccbsdw
but image is present at this url
absolute url - C:\Users\ABY\Desktop\project\points\media\team_logos\900px-Marcos_Gaming_2023_lightmode.png
relative - media\team_logos\900px-Marcos_Gaming_2023_lightmode.png
and the images are loading perfectly to html in other pages
but cant paste it to template image
ZION
Manually.
Can you guide me with the steps please?
ZION
Manually.
I have a permissions class that inherits from Base permission.
Then in the views class I'm using it in, I assigned the permissions class to permission_classes. However, it's still not working
Anonymous
Is (Django+SQLite3) good choose like Facebook, TikTok, YouTube large projects?
Eternity
Anonymous
Anonymous
isn't it enough?
Anonymous
Thanks bro!
Anonymous
Please send me links CRUD use PostgreSQL , MYSQL, MONGO projects
Q
Hi, I have a django project and a separate folder with one module, this module uses functions from the django project, how do I make these imports available to it? To be more precise, I am transferring data to celery from this module separate from the project.
ashu
Hey guys I know this is a basic question I seen the answer everywhere but I don't find answer like how I connect my contact form that when user fill information this is directly comes at my mail or click on news subscribe button the mail comes on us
AmirMohamad
Hello guys, I had a question. When I want to makemigrations in django, it doesn't work and I really want to know what's the problem with it, of anyone could help me with it?
Doragonsureiyā
khaled
Laxmi
How to start learning rest api
Karunakar
Anonymous
Breno
Has anyone here ever worked on a project with ANT+ communication? Were you able to communicate with any 'togle' that wasn't from Garmin?
Leon
Hello, everyone! Please help me with a problem. First time I am doing a django project deploy on ubuntu server. I use gunicorn and nginx as in the instructions. If I enter the IP address of the server in the search box, everything is fine, but if I enter the domain, it doesn't show me the page that jango is connected and working.
In ALLOWED_HOSTS I have specified server ip address and domain in different variations, both with www. and with http://. In the file /etc/nginx/sites-avaible/myproject in server_name I specified the domain.
Completely confused. Maybe you know something.
Leon
If you enter the domain in the search string, then opens the page namecheap that the domain is already registered. (The domain was registered at namecheap)
Leon
I rented a vps server and domain name on namecheap. Does anyone have experience with namecheap?
clouded
Sounds like you need to configure your DNS for the domain you've acquired.
Bekzod
Leon
Sree
create a CRUD(Create Retrieve Update Delete) api by using class based view and call 4 different methods (POST,GET,PUT,DELETE) in one view, do not use serializers to save, get,update and delete the data in database.
Doragonsureiyā
Leon
Leon
I spent all day looking for the problem. Thank you so much!
Bekzod
And thats all?!😳
thats all, and check with ping domain_name in terminal, which connected your vps
clouded
And thats all?!😳
Then you'll see if you've configured your web server correctly
clouded
Perhaps have to deal with a TLS certificate
clouded
And other necessary configuration
Anonymous
Can we use SQLite database for using django
Doragonsureiyā
Mr
Okay
Leon
All working, thank you guys
khaled
you can do
python manage.py makemigrations <myApp> if you have multi application project.
sometimes I do not know why it doesn't work for me when I try python manage.py makemigration alone if I have multiple applications
Sree
create a CRUD(Create Retrieve Update Delete) api by using class based view and call 4 different methods (POST,GET,PUT,DELETE) in one view, do not use serializers to save, get,update and delete the data in database.
Sarah
does anyone know how to fix the error "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
Maxim
khaled
khaled
khaled
khaled
AmirMohamad
What should I do for this problem?I'm stucking with it for a long time
khaled
Maybe if you delete the pycache too with the migrations
khaled
I tried it before and nothing happened
But if you are worried then don't do it
AmirMohamad
Balde
hello, if we upload the audio to a field of a template in an "audio/" folder, how do we configure settings.py so that we can access the audio in our views and template .
Anonymous
Anyone tried django-chutad so far ?
Doragonsureiyā
Anyone tried django-chutad so far ?
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
Dailin
Hello, I get Csrf token missing when I post new record but the thing is in the form the csrf_token is there. Plus for evoid reload I use JQuery
_//cleph💵🍕🇺🇸🔥
Hello how can i do pytest tests in django like cron job and test my drf api every hour
Anonymous
i have in template my base.html sheet and inside i have the nav and the footer, and some block tags of the content. in the content i only have a h1. what happens is that when i show by browser, the footer is shown as if it was h1, do you know why this happens, i have searched but i can't find the reason.
.
Is there a good way to always mask certain fields when a certain user is using the web app?
For example, when a username named “demo” is logged in, I wanna mask all values retrieved from app.models.Client.name, by replacing it with simply “Client {pk}”, for example.
Ideally, in a way that I won’t need to modify any existing fields, templates, and views. The value will be masked whenever and wherever it is retrieved.
khaled
_//cleph💵🍕🇺🇸🔥
Jamie
How to add all migration files in .gitignore
!**/migrations I have written
It's not working
ashu
Hey can any one share me tha how to create simple contact form where we collect user name etc and send them immediately thanks mail
khaled
Should i add it to thread?
No no need to do it it will take care of it as long the server is on, and even if the server is off or is having a problem it will perform the operation once it is on again
ashu
And normally ask how many user responses take by smtp servers
Anonymous
Hello everybody! Which Should I Use PyMongo or Djongo? Which of these is a good choice?
_//cleph💵🍕🇺🇸🔥
khaled
Anonymous
Okay man
Charly