The problem Im facing while trying to connect to database for mysql. I have also given the database settings that i have used. Traceback (most recent call las
When a user registers for my app.I receive this error when he reaches the profile page. The 'image' attribute has no file associated with it. Exception Type: V
django's User model has a last_login field, which is great if all the users were to log out each time they leave the site, but what if they don't? How can I tr
I am trying to save the zip file into one directory on my server. First, I am uploading a zip file using form and in python, I want to save it in one directory
I've been really enjoying the convenience of setUpTestData and --keepdb in Django 1.8! However, I am running into an issue keeping data consistent across multi
I'm starting gunicorn with the Django command python manage.py run_gunicorn. How can I stop gunicorn properly? Note: I have a semi-automated server deployment
I want to use Model.objects.filter(datetime_lte=datetime.datetime.now.date()) How exactly can I achieve this? I am using django 1.6.5. I want only records of cu
When I try to test any app with command (I noticed it when I tried to deploy myproject using fabric, which uses this command): python manage.py test appname
I have a test which involve multiple Django views It seems that the fakeredis isn't shared between multiple views I tried running the following code: import f
I am trying to put up a simple django app on elastic beanstalk. I thought I had the static parts of the app figured out as it works with heroku and on a server
For a Django App, each "member" is assigned a color to help identify them. Their color is stored in the database and then printed/copied into the HTML when it i
I have the following urls.py file in my project directory: from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodisco
I know this question was asked many times, but none of the answers i found and tried helped me. Those are my static files settings: STATIC_ROOT = os.path.absp
Hi im building a Django app with docker, gunicorn and nginx and having serious issues calling a post request from the django view. my login function - with sch
I have following unique constraint in my model. class Meta: unique_together = (('crop', 'order', 'sku'),) But sku may be null in some cases and in th
I've tried something like this, it does not work. class PostSerializer(serializers.ModelSerializer): class Meta: model = Post def save(self)
I created the django model "User" with "null=True" as shown below: # "myapp/models.py" from django.db import models class User(models.Model):
I just checked out a project with git. The project structure is project apps myapp settings __init__.py __init__.py manage.py
I am trying to realize a Class Based ListView which displays a selection of a table set. If the site is requested the first time, the dataset should be displaye
Is it possible to override an existing Django Template Tag or is it necessary to customize the template file and create a new Template Tag?