django tag

257 questions


1 answers
92 views
0
When I deploy the Django app on AWS Elastic Beanstalk, I can't see the static directory.

I'm about to publish a project made with python 3.4, django 1.7 on AWS Elastic Beanstalk.The deployment was successful and I was able to access it with a browser, but the directory containing the stat...


1 answers
156 views
0
Results cannot be displayed in the web app created in Python (Bottle)

I'm a Python beginner.I would like to display the program I created in Python (simple calculation/mahjong library) in my web browser using the bottle framework.*Partial modificationsPython 3.8 and abo...


1 answers
75 views
0
I want to filter the parent value from the child model with Django reverse reference and extract the data.

I am currently doing a tutorial on Django, but I would like to filter out the values in views.py on the model below, but I don't know how to write the code.Could you please let me know the details?I w...

2 years ago

1 answers
89 views
0
Cannot display html file you want to view

When I access the upload_save method, only base.html is displayed.Visit view.py to default_save(request): photo_id = request.POST.get(p_id, ) if(photo_id): photoo_obj=Post.objects.get(id=photo_id) el...

2 years ago

1 answers
74 views
0
I want to reflect the JSON data that I got from the API created by Django in the actual TableView.

The URL where the following json data is returned is http://127.0.0.1:8000/api/v1/I got the response correctly on the simulator, but when I tried it on the actual machine, I couldn't get it. What shou...

2 years ago

1 answers
86 views
0
I don't know how to use Django's image input form.

I was able to display the image input form on the web page, but I don't know how to use the image attached to the input form.I would like to retrieve the information in the image#view.pyfrom django.sh...

2 years ago

1 answers
132 views
0
Python manage.py migration error in ssh environment

Working in ssh virtual environment. (Migrate and make migration are done in the first environment outside of ssh.)python 3.6.8pip21.3.1You are using virtualenv.In postgresql, roles and databases are a...

2 years ago

1 answers
97 views
0
How to debug javascript within the VisualStudio 2017 Django project

We are developing the Django project using VisualStudio 2017.I can't debug the javascript that I'm using.Could you tell me how to enable javascript debugging?I debugged the javascript code with a brea...


1 answers
102 views
0
How to Find Multiple Column Value Pairs in a Model of django

I would like to make the following query using the django model.Is it possible to do it in a model class?select *from table twhere (t.col1, t.col2) in ( (hoge, fuga), (foo, bar) )Quoted from https:/...

2 years ago

1 answers
81 views
0
What does join do in django's views.py?

Sorry for the amateur question, but in the code belowoutput=','.join([q.question_text for qin latest_question_list])I don't know what the part is doing.I thought question_text separated by This was th...

2 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.