I run python manage.py makemigrations and I get: No changes detected Then, python manage.py migrate and I get: No migrations to apply. Then, I try to p
I took almost unchanged guide from documentation there is my models.py from django.db import models class Country(models.Model): name = models.CharField(m
I'm using userena and after adding the following line to my models.py zipcode = models.IntegerField(_('zipcode'), max_length
I made a django OAuth server using Django OAuth Toolkit. I've setup the code right and when I use CURL in the following way: curl -X POST -d "grant_type=passw
date_ranges_values = request.POST['range'] ft = [df.index[-1] + DateOffset(date_ranges_values = lambda x:x) for x in range(0, 24))] Suppose I get value in
I have kiwi TCMS on docker through docker-compose.yml. And i have file json with database (old version of kiwi) To dump database from old serwer i use: docker
I've got these models: class Container(models.Model): ... class Meta: constraints = [ models.CheckConstraint( chec
I am trying to add multiple image files into my zip. I have searched around and knows how to add a single one. I tried to loop through multiple images then wri
I am new to Django. I am trying to make a simple form to match the password. However, when I enter different passwords and press the Save button I get a black v
We use kerberos for our authentication. Using request.META['REMOTE_USER'] I am able to get the authenticated user in my views.py however when I move this to
I have a script python for Reading biometric identity card with a card reader this script use this https://github.com/roeften/pypassport, i want to creat a web
I have a script python for Reading biometric identity card with a card reader this script use this https://github.com/roeften/pypassport, i want to creat a web
While trying to execute this command: (venv) sreekarsiddula@Sreekars-MacBook-Air bidgala % /Users/sreekarsiddula/piapps/venv/bin/python3 manage.py createsuperus
On upgrading to Django 1.7 I'm getting the following error message from ./manage.py $ ./manage.py Traceback (most recent call last): File "./manage.py", lin
I have a model with a field channel (JSONField). I'm strong an array of string in db with channel. By default, a JSONField is shown as a textarea in django-admi
I'm using Django ORM queryset for chart, and having difficulty with changing the format of output 'source': ActivityLog.objects.filter(requestType='add',doDat
What are the differences of these three static url? I am not sure if I am right, I am using the MEDIA_ROOT to store my uploaded photos (via models.ImageField(
I am working with configuring Django project with Nginx and Gunicorn. While I am accessing my port gunicorn mysite.wsgi:application --bind=127.0.0.1:8001 in Ng
Given the following model, does Django cache the related objects after the first time they're accessed? class Post(models.Model): authors = models.ManyToMa
Getting the strangest behavior. This fails in normal Django code (view): user = User.objects.get(...) uid = urlsafe_base64_encode(force_bytes(user.pk)) token =