S
dimmmmmma
Hi everyone,
My task is to implement a form in which the choice of the value of the second field depends on the value of the first field. (For example, if the value of the first field is Cars, then the second field should show sedan/SUV, etc., if the value of the first field is Commercial vehicles, then the second box should show truck/bus, etc.)
Here is the question in more detail
https://stackoverflow.com/questions/73344227/django-how-to-set-foreignkey-relation-in-forms-modelform
yusof
hey
i wanna delete a django app.
if i delete the model and make the migration and then migrate it and delete all the app files.
when i send it to server whats gonna happen ? i think there are no migrations to delete the app table in server.
anyone know how can i delete the app ?
Nav
Ilhom Rustamov
Hi all! Iʼm beginner in django. I need your help. Can anyone understand this code: request.POST['something']
Stéphane
my images refuse to display on my pass
Stéphane
http://djservice.herokuapp.com/
Sanjarbek
Stéphane
so the image cannot be displayed?
Sanjarbek
Stéphane
but how to display the images ??
Sanjarbek
or find another server
Sanjarbek
if you are going to use free try pythonanywhere.com
Stéphane
but how does it work
Stéphane
Ok
Ilhom Rustamov
Stéphane
and I am denied access to the admin part
Stéphane
http://djservice.herokuapp.com/admin/login/?next=/admin/
Sanjarbek
i think your project does not work well
Stéphane
can you help me
Dave
can you help me
Check your application's logs. You can identify there the root of the problem.
G4st0n
but how does it work
U need to set static files directory on django and manage the static files from s3, or another object storage with boto
G4st0n
U can't use absolute path on heroku
G4st0n
Stéphane
Ok
Stéphane
G4st0n
G4st0n
how to do that
Add boto to dependencies of project and config static files on settings.py
Stéphane
G4st0n
please give me an example
I already give u all the help needed, it's your project or main ? You have to build your app. Google can't do that for you
Matheus
Hi guys, someone can help me?
Matheus
my intention is, i have authenticated user and i want limited acess a object in DB.
Matheus
"OnlyMy" can acess what was created by heself.
"Read All" only can read all but doesn't can edit.
"ChangeAll" can change all of course.
Matheus
Name is auto-explaned
Matheus
here is my code
Doragonsureiyā
here is my code
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Monkey
Matheus
Matheus
my code
name
Is there any easy to understand tutorial on entire django framework?
name
also any tutorial on RESTful API development using python
S
S
what web server are u using ?
Jerome
Also what is the page error code number when it fails?
Monkey
Monkey
Михаил
Hello everyone I'm mastering the django framework, and I want to upload xls files to models via the admin panel. After that, I need to process the xls file table and upload them to the new model. I want to perform all actions through the admin panel so as not to engage in layout. I figured it out. how to upload a file through the fields of the FileField model, but I can't figure out how to find the path to it and proceed with subsequent processing and uploading data to the model. Please advise me what to read on this topic.
S
Linode
Linode is the platform right ?
What is the web server - apache, nginx ?
A.M.A
Please is there someone who can help me
G4st0n
G4st0n
G4st0n
Ask your question here
S
Irrelevant
wat do u find irrelevant in a question ?
S
Go read the qs again !
S
may be u need to read doubly to understand !
S
The original issue was django related.
If u cant help urself , at least let others !
G4st0n
Of course
Hi. When I try to send template message email I receive below error in my fake SMTP server
Message parse error: Malformed MIME message.No headers found.
Of course
Navroz
django.db.utils.OperationalError: connection to server at "127.0.0.1", port 5432 failed: Connection refused
Help
Bekhruz
rich
Django is better than node?
down
Good morning guys, I made a test e-commerce site for education purposes. I’m tryna make catalog page and products was added from admin panel and all work good. But then I want to make pop up windows to each individual product(made it with bootstrap modals) but for some reason it output all the modals of all products not for each individual. Can someone help me? Here is code: http://pastebin.com/aahxx8Wh
mehrdad
hey im new to django can some one explain whats happening in this part of documentation code
mehrdad
import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
# ...
def was_published_recently(self):
return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
Yazan
error after fetching from django running by gunicorn
to display videos on an android flutter app
javax.ssl.sslhandshake
Muhammed
new update fixes this ig
Muhammed
Muhammed
https://docs.djangoproject.com/en/4.1/releases/4.1/
Monkey
Rupesh
Hello
Rupesh
How to create two connected table using foreign key
One table is purchase_master and 2nd is temp_purchase_details
Record Id of purchase_master table should be stored in temp_purchase_details as foreign key
Data should be inserted from frontend