Raghav
Does anyone know how to create a django rest api
Raghav
of a vending machine
Siddharth
Use django-storages
Yeah i do use it, its applied. Thats why on running collectstatic command files are stored in s3 storage.
Siddharth
Yeah it worked, since files are stored in bucket.
Mirco
Yeah it worked, since files are stored in bucket.
It's strange u still have 404 Try to access with S3 URL to the static to check if they are public
A
what is the type of forloop.counter . I stored forloop.counter in a variable count using {% with count=forloop.counter %}. Then I tried to access the list using list.count . It is not rendering anything. But when i used list.0, list.1 — manually, it is rendering the data. Can somebody tell me why am i not able to render it using forloop.counter .
Siddharth
It's strange u still have 404 Try to access with S3 URL to the static to check if they are public
No it shows access denied, but the media files i uploaded on s3 they are visible from django-admin without any issue.
Siddharth
Only admin static files do not work
Mirco
Or much better, use Cloudfront as CDN in front of S3
Siddharth
But why are media files working and admin static files are not working.
Siddharth
Even though both have same permissions
Siddharth
Could you please give example of how s3 bucket structure will be after doing collectstatic command, my structure is like : bucket > admin/ But I think it should be like: bucket > static/ > admin/ What am i doing wrong.
Siddharth
Yeah that's what i was thinking too but i dont know what is happening.
Siddharth
I did included STATIC_ROOT variable but it did not changed anything.
Siddharth
I did a mistake on first collectstatic command that i forget to include STATIC_ROOT, on next collectstatic command execution (even when i included this static_root variable) it is no considering this variable.
Joseph
Please want to know if its safe to host django project in c-panel
Nariman
I have a newbie question. There are reviews and pictures, which can refer to both OBJECTS and NEWS. Obviously in that case the PHOTO or REWIEWS table would need two keys, the object id and the table. Django has a ContentType for this purpose. The questions are. 1) How do I display this correctly in the diagram? 2) Where can I find out more about this? Googling "django ContentType" didn't help, how do I find out more about the relationship between objects of any type
The
I am not able to point out difference between class Foo: and class Foo(): Can sumbody help me
The
both aren't giving error
Anonymous
Dears how to run django project in my Pycharm to another computer's Pycharm
Stealth
I have a doubt, x = request.query_params.get("userId") what will be the value of x if the request passed doesnt consist of userId as a query parsmeter?
Najim patel
Django-admin startproject (project name) I use this commend in vs code terminal But django files not create Anyone's solve this problem
Najim patel
🙅‍♂no
Ravindu
🙅‍♂no
Then how you suppose to run that command . First you have to activate your virtual enviroment first
Jean C.
Hello, please can we help me, connection to channel Django return HANDSHAKING and DISCONNECT
Anonymous
I am looking for any e commerce working repository
Anonymous
Apart from Oscar plugin
Najim patel
Then how you suppose to run that command . First you have to activate your virtual enviroment first
I installed some extension prettier, dhang, react , JS I active all virtual environment Before this problem I work 4 projects
Najim patel
Are you activate virtualenv?
Yes I activated virtual env But I am not understandings ..Why not creating django project files... Like setting.py Urls.py
William
Django-admin startproject (project name) I use this commend in vs code terminal But django files not create Anyone's solve this problem
Open Vscode and open the folder (eg. If you want to create a django project in Local Disk D: then first open that folder in vs code. Then open terminal now your current path will be Disk D:\ enter the command Django project folder will be created in Desk D:)
William
Then use cd for changing the directory to the "project_name"
William
Let me know if its working
William
For reference purpose
Najim patel
For reference purpose
Error Not solve Does Not create django file Settings.py Url.py Manage.py
sid
Error Not solve Does Not create django file Settings.py Url.py Manage.py
Once try to create project using CMD.there are any error or not??
Anonymous
Can anyone help me with my django reach pro shop project. I am not able to merge my react and django files for deployment.
Manal
Hi, how can I use local storage with django? I tried to use it but I think it's not work with me
Dev
There is a project of Electrical Aliances with someone
Riswandi
how to fix this error ?
Ted
Hi so I'm wondering if I wanna include fields like email or national ID for my users do I have to change database in settings to postgres
Peter
Hi so I'm wondering if I wanna include fields like email or national ID for my users do I have to change database in settings to postgres
No, Django sorts out that you'll only need to define NULL=True so as to avoid any errors for the case of users that had been in the database before introducing the above mentioned fields
Peter
I am looking for any e commerce working repository
Building one 😅, In two weeks time it'll be fully complete
Abdul Shakoor
https://stackoverflow.com/questions/67550242/how-to-verify-users-email-with-token-generator-link-for-signup-in-django-webapp
William
Error Not solve Does Not create django file Settings.py Url.py Manage.py
What is the error after entering the django-admin startproject project_name?
William
Did you got any errors or no errors?
William
If no error means django_project folder was created successfully and you might not don't know how to change to the correspo ding directories
Rohan
Can anyone tell me any telegram channel for html templates
Rohan
?
William
You can search in google itself HTML templates
Rohan
I want a specific template which I am not able to get
Rohan
Html template for atransport company
Rohan
* a transport
Rohan
http://preview.themeforest.net/item/transport-logistics-transportation-business-html-template/full_screen_preview/19369852?_ga=2.106295168.2086102118.1620810028-414896824.1620810021
Rohan
Like this one
SriSreedhar
Hi, Good day to all, is there a way I can define workflows in django? Like sending for approvals and all?
William
why?
Anonymous
##Request: Django for Professionals
The
I am not able to point out difference between class Foo: and class Foo(): Can sumbody help me both aren't giving error
Anonymous
#REQUEST can anyone provide me the pdf of Django For Professionals??
Anonymous
By William S. Vincent
Dev
hii i am find to work any hire python developer other freelancer
Charanpreet Singh
Hello, while I was working with Django rest framework, I figured out something silly while working with serializers. When: serializer=SomeSerializer(data=request.data,many=True) I needed to call serializer.is_valid() before accessing serializer.data BUT WHEN: I make, serializer=SomeSerializer (request.data,many=True) I do not need a serializer.is_valid() before accessing the serializer. data Can someone explain the reason behind this?
William
You need to check the serializer is valid or not. You can't skip
William
Else check django-rest-framework.org
dsuo
This error arises due to several things... Better Google it
Islom
Hi guys, currently working on tinder-clone app. Any suggestions on developing like-skip functionalities? I have an profile model with all info about person, idk how to retrieve it on feed like on tinder (one person each box, so that others would not be available until you liked or skipped that one).
Islom
How-to get an age of a person, if you're given datefield (birthdate) in model.py def get_age(self): today = date.today() return ?
Islom
Return today - birthday
hah, I tried this one, but it returns <bound method Profile.get_age of <Profile: @mark>>
Slam!
How could I disable all receiver decorators when manage.py loaddata is doing?