2020欧洲杯手机版注册

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [django]

2020欧洲杯手机版注册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
8 views

How to specify custom command in docker-compose

I'm using docker for testing my django application. I want to run custom command which runs the test cases from my django application.Here's my docker-compose file:version: "3"services: app: ...
0
votes
0answers
6 views

How to update a default value of boolean for notification on and off in django rest framework

class NotificationOnOffSerializer(serializers.ModelSerializer): """ To create class for get account function """ is_allow_notify = serializers.BooleanField(required=True) class ...
-2
votes
0answers
10 views

Django Rest Framework simplejwt

how to use rest_framework_simplejwt with email for token?I tryedclass EmailTokenObtainSerializer(TokenObtainSerializer): username_field = User.EMAIL_FIELD
0
votes
0answers
8 views

CKEDITOR CONFIGS issue

I've added this config CKEDITOR_CONFIGS = { "default": { "removePlugins": "stylesheetparser",}as in http://github.com/django-ckeditor/django-ckeditor#if-you-want-to-use-allowedcontentbut ...
0
votes
0answers
9 views

Django: how to manage/prevent back arrow event

I know this topic has been already discuss but none of solutions resolve my problem.I have 3 forms that update the same models.I would like to manage/prevent user going back using back arrow.I ...
0
votes
3answers
24 views

How to output in HTML all objects from Django database?

I just started learning Python and Django.Trying to output on HTML data from the database, I can do it if I set a id, but I wanna have a page where I list all the data from the database in a table....
0
votes
2answers
20 views

Django login required middleware not working

I'm new to Django and I'm trying to implement the django-login-required-middleware in my project to be able to direct all the users who are not logged in to the index page with login view. I ...
0
votes
0answers
15 views

I want to display python opencv video on django html page how can i achive it

I need to display video frame on web browser in django html page please guide me how to achieve it@gzip.gzip_pagedef home(request): try: return StreamingHttpResponse(home_video(), ...
0
votes
0answers
22 views

Nested Inline in Django?

I have a Teacher model:class Teacher(models.Model): """ The Teacher model. """ INITIALS = ( ("MR", "Mr."), ("MRS", "Mrs."), ("MS", "Ms."), ) ...
0
votes
0answers
19 views

Appending retrieved data to python dictionary in django views

So I am trying to append data to the below mentioned dictionary d, and I am getting confused about where to begin. Given below is the segment of the code I am referring to. d={} ...
0
votes
0answers
10 views

Django - How to interact with GitHub with permissions?

I'm trying to create Django app with below functionality. User A owns several GitHub organizations. A connects my app and give access permission to all the organizations he have.My app registers ...
0
votes
1answer
25 views

Django : how to use multiple databases?

I'm building a website with Django and I need to have a gps coordinate attribute in my User model. I will be using GeoDjango, which needs PostgreSQL and, since my website is already working with the ...
0
votes
3answers
31 views

Running web application on specific port

I have django and angular web application.It's my first deployment, sorry about this question.I have server that I can use it by ssh and I want to create script file on server to execute my app on ...
0
votes
1answer
14 views

Django custom error handling when the url supplied does not match with any URL in ROOT_URLCONF

How can I send a custom error message to front end when the endpoint coming from front end does not match with any URL in ROOT_URLCONF in settings.py. Currently if URL is not found in ROOT_URLCONF, a ...
0
votes
0answers
13 views

“Model class myproject.models.MyModel doesn't declare an explicit app_label during” During Django test

With Django 2.2.9 I'm getting the following error when I try to run ./manage test File "/home/simernes/workspace/myproject/myapp/test/test_functions.py", line 3, in <module> from .....

15 30 50 per page