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?
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?
Anonymous
Eternity
Is good SQLite3 choose?
Not for large projects
Anonymous
isn't it enough?
Eternity
isn't it enough?
Yeah, it's database for smaller projects
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?
Laxmi
How to start learning rest api
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.
Leon
you must add vps ip address on namecheap DNS manager
I need to open Advanced DNS and add record?
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ā
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.
So, why don't you do it yourself first? When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you. 😉
Bekzod
I need to open Advanced DNS and add record?
yeah exactly, you need set A Record, Host=@, IP Address=<your_vps> and save)
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
AmirMohamad
What is the error?
Well, the terminal write to me no changes detected
AmirMohamad
Impossible to help without details.
The terminal write to me no changes detected
Anonymous
Can we use SQLite database for using django
Mr
Okay
Leon
All working, thank you guys
khaled
Well, the terminal write to me no changes detected
Did you try to delete the migrations folder and the makemigrations?
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.
Doragonsureiyā
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.
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
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."
AmirMohamad
Did you try to delete the migrations folder and the makemigrations?
Yes sir but it didn't work, did you have this problem like me too?
AmirMohamad
Did you try the next solution?
Yeah but it didn't work too
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
AmirMohamad
Maybe if you delete the pycache too with the migrations
Are you sure about it?because I read somewhere that doing this may ruin the project
khaled
I tried it before and nothing happened But if you are worried then don't do it
AmirMohamad
I tried it before and nothing happened But if you are worried then don't do it
Agree but than what should I do about the problem I have than?
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.
_//cleph💵🍕🇺🇸🔥
Jamie
How to add all migration files in .gitignore !**/migrations I have written It's not working
Gordey
Question about google oauth 2 Hello, I am trying to exchange Google authorization code for access and refresh tokens using my localhost django development server. I keep getting "redirect_uri_mismatch" error. I checked my Authorized redirect URIs with the URI that I'm sending. Looks like problem is not there. Why I can't exchange authorization code for token if my redirect_uri exactly matches one of my existing Authorized redirect URIs? List of my Authorized redirect URIs as follows: Frontend http://localhost:8080/en/home/third_party_apis Backend http://localhost:9090/api/v1/calendars/google_app_client/ http://localhost:10000/api/v1/third_party_apis/google_app_client_id/ http://localhost:10000/api/v1/third_party_apis/google_app_client_id http://localhost:10000/api/v1/third_party_apis/google_app_client_id_second http://localhost:10000/api/v1/third_party_apis/google_app_client_id_second/ redirect_uri I used: 1) http://localhost:10000/api/v1/third_party_apis/google_app_client_id/ 2) http://localhost:8080/en/home/third_party_apis All URIs are accessible from the browser.
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?
Anonymous
Okay man
Charly
Hello everybody! Which Should I Use PyMongo or Djongo? Which of these is a good choice?
No one, because django is made with the relational model in mind
_//cleph💵🍕🇺🇸🔥
Sorry it is APScheduler
Thanks about help and if i had problem can you give some help?