Questions tagged [django]

Lô đề online Django is an open-source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Paused on exception TypeError: document.getElementById(…) is null

Well Here I am creating commenting system. It works fine if there is at least one comment already but if there is no comment and try to create one than it shows me an error Paused on exception ...
0
votes
0answers
11 views

Django + AWS s3 can upload files but not access them

Following this tutorial I set up our system to use Amazons S3 file storage using boto3 and Django-storages. I ran the collectstatic command and it worked just fine, the files show up in the AWS ...
0
votes
0answers
6 views

Django - Certain Py Module doesn't work in IIS

This is my first time putting a question here. Some background, I started coding on Django this year and Python more than a year but less than 2 years so I don't much. This problem is a concern to my ...
0
votes
0answers
14 views

Django - What field or fields in model should I be indexing to speed up the following query?

What field or fields in model should I be indexing to speed up the following query? Note this is an existing table with data, if that changes your answer Query Subscriber.objects.filter(audience=...
-1
votes
1answer
8 views

Where are my environment variables in Elastic Beanstalk for AL2?

I'm using elastic beanstalk to deploy a Django app. I'd like to SSH on the EC2 instance to execute some shell commands but the environment variables don't seem to be there. I specified them via the ...
0
votes
0answers
4 views

Image is not showing in Django on Heroku server

The images I'm uploading in the model are showing in the localhost but not working on the Heroku server. I'm already using the white noise, and staticfiles(CSS, js, and images) which is stored in ...
-1
votes
2answers
15 views

ModelNotFoundError in Django

For some reason, VS code doesn't recognize some standard external Django modules. I keep getting the ModelNotFoundError. When I try to run pip or pip3 install on for example django.contrib I'm getting ...
0
votes
0answers
12 views

How to add a file upload progress bar with percentages in django and jquery

I want to create a file upload progress bar to my form, but am getting an error inside my console saying "jquery.min.js:4 POST http://localhost:8000/music/create/ 403 (Forbidden)" below is ...
0
votes
0answers
21 views

Form automatically downloading data from the user's profile

I would like to create a function that will automatically retrieve data from a user's profile by clicking the save button. I want to create a platform on which a user can sign up for a tournament and ...
0
votes
1answer
8 views

What the proper way of uploading an image in Django

I have a REST endpoint for creating certain resource, but now I want to add the functionality of uploading an image when creating the resource. What's the proper way of doing such feature? Do you need ...
0
votes
0answers
9 views

Django: multiprocessing: multiprocessing in a module with windows?

I am using multiprocessing inside one of my views.py #current module is someapp.views #current file is someapp.views.py from someapp.models import ModelA. ModelB getScore(args): --get some data ...
0
votes
1answer
15 views

How to url encode in Django views

In Django, I want to do this <a href="{% url 'firstapp:create' %}?next={{ nextos|urlencode }}"> but in my views.py, when I render a page return render(request, 'create' + parameter ...
0
votes
0answers
8 views

Can we make an android app using django and briefcae packaging?

Can we make an android app using django and briefcae packaging? I mean use django as its gui framework and make an android apk installer using briefcase.
2
votes
1answer
36 views

Django Models (dynamic?)

I am just starting Django Website; I have deciced to go with a model (with SQLite DB), which have the following properties: class Flow(models.Model): owner = models.ForeignKey(User, on_delete=...
0
votes
0answers
15 views

Invalid block tag on line 1: 'extend'. Did you forget to register or load this tag?

Invalid block tag on line 1: 'extend'. Did you forget to register or load this tag? My homepage code {% extend "mainApp/wrapper.html" %} {% block content %} <p> Darbibas parbaude! </...

15 30 50 per page
1
2 3 4 5
16587