.
Hi guys is there any way to Separate numbers form each other Example X = 155 Separate1 = 150 Separate2 = 5
Cyber Worm
Hello guys
Cyber Worm
I'm using Django for web app. I want to deploy the site to AWS with eb but I can't do it. I take "bad request" and "server Error". Why? I'm gonna be crazy really...
Cyber Worm
Where you deploy the your sites?
Cyber Worm
What's the billing on VLS?
hydrozzen
https://dpaste.org/hVM9b
hydrozzen
This is git bash,I want to upload one django folder from my pc to GitHub,but it shows error,do have a look Can i please share screenshot of my d-drive where django folder is ,there will be no code in that screenshot
hydrozzen
Actually when I write git add . At that moment all files should be uploaded ,but it doesn't happens
Rohan
You pasted incorrectly in your terminal. Read the input and output you gave at adding remote stage.
hydrozzen
You pasted incorrectly in your terminal. Read the input and output you gave at adding remote stage.
Ok, actually I am trying to upload my code on GitHub from lasst 2 days so if you see there are 2 repositories I.e
hydrozzen
https://github.com/hydrozzen/jhgf.git https://github.com/hydrozzen/djangowebsite.git
Rohan
This is not related to django.
Rohan
Add 2 remotes
Rohan
And push to both
Krunal
Hi Guys, How to check post request received multiple json or single json in django rest framework?
Shubham
I need to deploy django app on ec2 instance. My application is running on ASGI server because I am having websocket connection. The app is running on ec2 instance in development server but I want to deploy it for production. I find it on Google that i should use daphne and nginx to deploy for production but I am not able to deploy. Anyone, please provide your help because I am stuck since 4 days😔
Mahmood
Hi everyone I'm using aws as storage for my Django project I want to ask if it possible to use media files with static files in the same bucket, and have private access to media files and public access for the static files
Rk
django-admin is not recognised as internal or external command.....how to solve this...I have installed django
Rk
Django installed successfully
Rk
I tried to open in vs code...still not working
Jay
I have a very long input like 10000 char +, python can not support big inputs any solution for this problem?
Alex
Django installed successfully
what's your os? is the environment variable correct and updated?
Rk
Windows 10..i check on google its showing install on virtual environment ...how to do it
Rk
How to add django admin path in environment variables ?
Rk
It worked with following commands Python -m venv venv venv\scripts\activate
Rk
Thanks.. .but do I need to type these commands whenever I need to use django ???
Rk
Thanks alex
hydrozzen
🧔🏻Taufik
Helo guys... Please help me for simple case (maybe 😅) How to handle file upload for split BE and FE ? Using API or someelse ?
🧔🏻Taufik
i got example https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html but this using form n models in same project
Figure
Solved thnx
How did you solve it?
Manny
How did you solve it?
I removed if statements . And just wrote a for loop
Alex
I removed if statements . And just wrote a for loop
include if, otherwise there will be junk code and error incase of no message.
Manny
include if, otherwise there will be junk code and error incase of no message.
Really ? I think your right some messages are showing twice
Manny
[<AuctionPrices: mani>, <AuctionPrices: matin>] what is the type of this ? is it a query set or a list ?
Manny
Queryset
this is how i wrote it : watchlists_query = auction.watchlist.all() watchlists = list() for i in watchlists_query: watchlists.append(i) now watchlists is a query set or a list ? cause i said that it needs to be a list()
Manny
so i wrote this in my template: {% for watchlist in watchlists %} {% if 'mani' == watchlist %} <h1>True</h1> {% endif %} {% endfor %} and i couldn't see the result
Manny
Manny
why are you comparing a string to a model?
So what should i do !? I need to check if the request.user is one of the names in “watchlists” or not.
Alex
so i wrote this in my template: {% for watchlist in watchlists %} {% if 'mani' == watchlist %} <h1>True</h1> {% endif %} {% endfor %} and i couldn't see the result
'mani' isn't object or model itself, you need field for comparison or conditional, something like >{% if 'mani' == watchlist.name %}
Alex
sure
☺
Hey..I want to add a function in django website that will run on scheduled times and activate camera...how can I do that?
Matwey
Hi. I am using Django rest framework to implement some Rest API. Unfortunately, some of my Models inside the API have to be TTLed objects (10-15 min). They are kind of cache. Is there a way to gracefully solve this in Django? Something like in-memory database backend?
Pradeep
Which db using
Matwey
I use postgres to store persistent objects, currently.
Anton
Hello everyone! Pls help. I have 2 models Serial and Model. They have slug fields. How i can create one url path to both models? Like /view/slug Check for unique slug for models i allready made
Saddam
How to create button to form submit and file download..... Here two action should run at one click ..... Plz tell me if anybody know
Тимур
Anton
In what way?
Rohan
What do you need celery to do in this case?
Ilnar
who can help with google maps api? I can't add my card to my payment profile, but I need to do my graduate work
Oumaima
hello i need help
Oumaima
Can't get attribute 'iforest' on <module '__main__' from 'app.py'>
Oumaima
Iforest it class contain my model and methods
karakurt
Why can't we just write @property def url(self): return reverse("...") instead of def get_absolute_url(self): return reverse("...")
Morteza