menu

Recent questions tagged django

1 vote
2 answers
How to fix incorrect request.user output in django? Good afternoon, when creating authorization I gave up on the LoginView bike, because redefining and remaking it for what I need will take much more time than if I write ...
by Andrei1penguin1
asked Sep 24, 2021
1 vote
1 answer
Why create add-ons in DJANGO? Why create additional applications in a jango when you can make do with one main application? ...
by HermanZuiakov
asked Sep 24, 2021
1 vote
2 answers
How do I store tracebacks in models? I make a control panel which shows web site statistics. I want to count how many 500 errors were on the site (I can easily do it myself) and save their tracebacks in th ...
by Shporsoft
asked Sep 24, 2021
1 vote
1 answer
How do I write the days counter in the jango model? Good afternoon! I'm trying to make a counter in the model. How else can I do it? It is necessary to add a number to the current day and get the final date of the end o ...
by ooker
asked Sep 24, 2021
1 vote
2 answers
How do I register? There is a user model: class Client(AbstractBaseUser, PermissionsMixin): '''Кастомная модель пользователя''' email = models.EmailField('Почта', max_length = 60, u ...
by reqww
asked Sep 24, 2021
1 vote
1 answer
Ошибка: ...uses parameter name '...._id/' which isn't a valid Python identifier. Что делать? I have applications-posts. When a user clicks on a post, he must go to a page whose URL ends with the post number. In views.py I wrote: def specific_post(request, po ...
by lazyvasya228
asked Sep 24, 2021
1 vote
1 answer
image
How to process Django form data? I'm making my own project and studying Django at the same time. Project goal: Make a convenient mechanism for slicing IP-networks for the necessary masks. Keep a record ...
by 0ldn0mad
asked Sep 24, 2021
1 vote
1 answer
How do I access the last row in a sqlite table with django? Good afternoon, I need to access the last item in the sqlite database through django by using User.objects.values()-1.get(id), but negative indexing is not supported i ...
by Andrei1penguin1
asked Sep 24, 2021
1 vote
1 answer
How to properly output ForeingKey DJANGO? Good afternoon! Question for the experts. There is a model model.py class User(models.Model): name = models.CharField(max_length=25) def __str__(self): re ...
by ooker
asked Sep 23, 2021
1 vote
1 answer
image
How do I fix the django file mapping? When I started writing the forms in create.html, the display of the page as an html document changed to displaying document code. please help views.py file from djang ...
by ever4st
asked Sep 23, 2021
1 vote
1 answer
How to pass self to filter for Django views? models class Product(models.Model): article = models.CharField('Артикул', max_length=100) name = models.CharField('Наименование', max_length=100) poster = mode ...
by Yzurgzd
asked Sep 22, 2021
1 vote
1 answer
Why doesn't the command find the attribute? I'm trying to get additional fields. a = Article.objects.get(id = article_id) a.articleadd_set.all() But django says it didn't find the articleadd_set attribute. Artic ...
by sortfact333
asked Sep 21, 2021
1 vote
1 answer
How do I get rid of the shielding? Good afternoon, encountered a problem with screening(adds html tags, scripts when sending them from a form). Honestly googled, but mostly advise to add safe filter or {% ...
by gromyko21
asked Sep 21, 2021
1 vote
4 answers
Which is better the original or the translated django documentation? Hi all, I want to read the django documentation, but I don't know English very well. Can you tell me which is better, to read the original but with google translator or ...
2 votes
1 answer
image
How do I add unlimited images in the admin panel? How do I add unlimited images in the admin panel? To add image after image by clicking the button. ...
by Peterson_s
asked Sep 21, 2021
1 vote
1 answer
image
How to output the sum of all fields in Django Admin? Hi all)) in general, such a problem - there is a table with deposits from users (contains user ID and amount of deposit) and need somewhere here print the amount of al ...
by Kate_7z
asked Sep 21, 2021
2 votes
1 answer
How to avoid the 502 Bad Gateway error? Deployed server with NGINX -> uWSGI -> Django stack on Debian. When the number of requests increases to 150 requests per second, a 502 Bad Gateway error occurs. No ...
by Gramor
asked Sep 20, 2021
1 vote
1 answer
How do I bind in Django? How do I bind social networks? Can I do it with Django? ...
by Askhat00
asked Sep 20, 2021
1 vote
1 answer
How to implement Filter in Django models.ForeignKey? models class Product(models.Model): name = models.CharField('Наименование', max_length=100) poster = models.ImageField('Постер', upload_to='products/posters/') ...
by Yzurgzd
asked Sep 20, 2021
1 vote
1 answer
How do I define a relationship object for a model in django? Two models are available: from django.db import modelsclass Category_item(models.Model): name_category = models.CharField('Название категории', max_length=100)class Ite ...
by bituke
asked Sep 20, 2021