2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences any time.

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
4 views

Graphene says field name is invalid keyword

I'm using ModelFormMutation and Graphene says a field keyword is not valid, when itself is looking for those fields. I delete the field and error changed to another field 😬. I tested it in graphiql ...
0
votes
0answers
5 views

DRF How to restrict (permissions) user by companies?

I mean User have a company and restrict views by companies. If user in company A he can't look on same view on company B. Any help with this? thx class Company(models.Model): name = models....
0
votes
0answers
4 views

Django model method returning correct response when called from shell but not when called from template

models.py class player(models.Model): name = models.CharField(max_length = 100) rounds_played = models.IntegerField() rounds_missed = models.IntegerField() date_joined = models....
0
votes
1answer
7 views

NameError: name 'ProductTag' is not defined

models.py from django.db import models from django.contrib.auth.models import User class ActiveManager(models.Model): def active(self): return self.filter(active=...
0
votes
0answers
5 views

Getting info from django-debug-toolbar when using manage.py run_method?

Is there a way to get the information that django-debug-toolbar collects/compiles, namely the sql queries and their times, when running code via manage.py run_method? I can construct an artificial ...
0
votes
0answers
5 views

Register two models with one form

I'm looking for the best way to register two related models with one django form or model form. e.g. User and Profile models. An user has onetoone Profile. Actually django CreateView allows select ...
0
votes
0answers
3 views

Website Template and Admin panel template, work synchranously in different two apps, in one project in Django problem

I want to make process in front end and admin panel together as two apps in a project. I can easily get website content. But I cannot get admin panels interface. I get 404 error. I put static folder ...
0
votes
0answers
8 views

How to create a dropdown navbar which is automatically updated (Django)

Hey guys how are you doing? I'm creating my portfolio and I'd like to do it using Django and now i need some help. I'm trying to create a navbar with a dropdown list that contains my projects and it ...
0
votes
1answer
14 views

pip can't find django 3.x

When I run: pip install django==3.0.5 I get the error Could not find a version that satisfies the requirement django==3.0.5 (from versions: 1.1.3, ... 2.2.11, 2.2.12) I need to update some ...
0
votes
0answers
7 views

django id foreagin key

I have client model and contact model with foreign key relation, i want to know to can I create the client and hist contact in the same time, I mean that how to get the client id which is the foreign ...
0
votes
0answers
13 views

django - models.ForiegnKey to the same model, to self

Peace be upon you! Currently, I'm working on my first django project, of course as all django developers, I have stumbled upon so many bugs, my current problem is that I want to set up comments system ...
1
vote
1answer
8 views

Django Translation Internationalization and localization: forms, models, tables

I have two questions. How can I translate in forms: a) labels b) Form ValidationErrors ? forms.py from django import forms from django.db.models import Max, Min from .models import Application, ...
0
votes
0answers
11 views

Monkey Patch Django Components

Suppose we have a django component django.views.generic.base.ContextMixin I Want to replace it with my own ContextMixin without changing any imports. How to that in django ? I have tried it many ways,...
0
votes
0answers
6 views

Template Language for Django which does not silently fail on exception?

I like django, the ORM, the admin, the community. But I don't like the handling of exception in the template language, like documented here: invalid template variables. Is there an alternative ...
-1
votes
1answer
9 views

How can i use django groups for specific model?

does any body can help me to use Django groups for a specific model ? for example for blog app,in Entry model, can i add a field like this to have groups like sport,news and etc ? group = models....

15 30 50 per page
1
2 3 4 5
15000